index.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>REST</title>
  6. <link rel="stylesheet" href="https://bootswatch.com/slate/bootstrap.min.css">
  7. <link rel="stylesheet" href="css/style.css">
  8. </head>
  9. <body>
  10. <div class="container">
  11. <div class="page-header">
  12. <h1>RESTful API</h1>
  13. </div>
  14. <div class="row">
  15. <div class="col-xs-4">
  16. <div class="panel panel-primary">
  17. <div class="panel-heading">All students</div>
  18. <div class="panel-body">
  19. <div class="list-group" id="students-list">
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="col-xs-4">
  25. <div class="panel panel-info">
  26. <div class="panel-heading"> Students info</div>
  27. <div class="panel-body">
  28. <form id="form-edit-student">
  29. <input type="hidden" name="id">
  30. <div class="form-group">
  31. <input type="text" id="clear-form-edit" name="firstname" placeholder="Firstname" class="form-control">
  32. </div>
  33. <div class="form-group">
  34. <input type="text" id="clear-form-edit" name="lastname" placeholder="Lastname" class="form-control">
  35. </div>
  36. <div class="form-group">
  37. <input type="email" id="clear-form-edit" name="email" placeholder="Email" class="form-control">
  38. </div>
  39. <div class="form-group">
  40. <input type="text" name="group_id" placeholder="Group ID" disabled class="form-control">
  41. </div>
  42. <div class="form-group">
  43. <input type="text" id="clear-form-edit" name="gitlab" placeholder="GitLab" class="form-control">
  44. </div>
  45. <div class="form-group">
  46. <textarea type="text" id="clear-form-edit" name="description" placeholder="Description" class="form-control"></textarea>
  47. </div>
  48. </form>
  49. </div>
  50. <div class="panel-footer">
  51. <button type="submit" form="form-edit-student" class="btn btn-warning">Update</button>
  52. <button type="button" id="delete-student" class="btn btn-danger pull-right">Delete</button>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="col-xs-4">
  57. <div class="panel panel-success">
  58. <div class="panel-heading">Create student</div>
  59. <div class="panel-body">
  60. <form id="form-create-student">
  61. <div class="form-group">
  62. <input type="text" id="clear-form-create" name="firstname" placeholder="Firstname" class="form-control">
  63. </div>
  64. <div class="form-group">
  65. <input type="text" id="clear-form-create" name="lastname" placeholder="Lastname" class="form-control">
  66. </div>
  67. <div class="form-group">
  68. <input type="email" id="clear-form-create" name="email" placeholder="Email" class="form-control">
  69. </div>
  70. <div class="form-group">
  71. <input type="text" id="clear-form-create" name="gitlab" placeholder="GitLab" class="form-control">
  72. </div>
  73. <div class="form-group">
  74. <textarea type="text" id="clear-form-create" name="description" placeholder="Description" class="form-control"></textarea>
  75. </div>
  76. </form>
  77. </div>
  78. <div class="panel-footer">
  79. <button type="submit" form="form-create-student" class="btn btn-success">Create</button>
  80. <button type="button" id="add-field" class="btn btn-default pull-right"><span class="glyphicon glyphicon-plus"></span></button>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <script src="lib/jquery/dist/jquery.min.js"></script>
  89. <script src="js/service.js"></script>
  90. <script src="js/script.js"></script>
  91. </body>
  92. </html>