1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>REST</title>
- <link rel="stylesheet" href="https://bootswatch.com/slate/bootstrap.min.css">
- <link rel="stylesheet" href="css/style.css">
- </head>
- <body>
- <div class="container">
- <div class="page-header">
- <h1>RESTful API</h1>
- </div>
-
- <div class="row">
- <div class="col-xs-4">
- <div class="panel panel-primary">
- <div class="panel-heading">All students</div>
- <div class="panel-body">
- <div class="list-group" id="students-list">
-
- </div>
- </div>
- </div>
- </div>
- <div class="col-xs-4">
- <div class="panel panel-info">
- <div class="panel-heading"> Students info</div>
- <div class="panel-body">
- <form id="form-edit-student">
- <input type="hidden" name="id">
- <div class="form-group">
- <input type="text" id="clear-form-edit" name="firstname" placeholder="Firstname" class="form-control">
- </div>
- <div class="form-group">
- <input type="text" id="clear-form-edit" name="lastname" placeholder="Lastname" class="form-control">
- </div>
- <div class="form-group">
- <input type="email" id="clear-form-edit" name="email" placeholder="Email" class="form-control">
- </div>
- <div class="form-group">
- <input type="text" name="group_id" placeholder="Group ID" disabled class="form-control">
- </div>
- <div class="form-group">
- <input type="text" id="clear-form-edit" name="gitlab" placeholder="GitLab" class="form-control">
- </div>
- <div class="form-group">
- <textarea type="text" id="clear-form-edit" name="description" placeholder="Description" class="form-control"></textarea>
- </div>
- </form>
- </div>
- <div class="panel-footer">
- <button type="submit" form="form-edit-student" class="btn btn-warning">Update</button>
- <button type="button" id="delete-student" class="btn btn-danger pull-right">Delete</button>
- </div>
- </div>
- </div>
- <div class="col-xs-4">
- <div class="panel panel-success">
- <div class="panel-heading">Create student</div>
- <div class="panel-body">
- <form id="form-create-student">
- <div class="form-group">
- <input type="text" id="clear-form-create" name="firstname" placeholder="Firstname" class="form-control">
- </div>
- <div class="form-group">
- <input type="text" id="clear-form-create" name="lastname" placeholder="Lastname" class="form-control">
- </div>
- <div class="form-group">
- <input type="email" id="clear-form-create" name="email" placeholder="Email" class="form-control">
- </div>
- <div class="form-group">
- <input type="text" id="clear-form-create" name="gitlab" placeholder="GitLab" class="form-control">
- </div>
- <div class="form-group">
- <textarea type="text" id="clear-form-create" name="description" placeholder="Description" class="form-control"></textarea>
- </div>
- </form>
- </div>
- <div class="panel-footer">
- <button type="submit" form="form-create-student" class="btn btn-success">Create</button>
- <button type="button" id="add-field" class="btn btn-default pull-right"><span class="glyphicon glyphicon-plus"></span></button>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- </div>
- </div>
- <script src="lib/jquery/dist/jquery.min.js"></script>
- <script src="js/service.js"></script>
- <script src="js/script.js"></script>
- </body>
- </html>
|