asimryu

restful template

Nov 12th, 2018
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.67 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>SIMPLE RESTful API</title>
  6.     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
  7.     <link rel="stylesheet" href="http://code.jquery.com/ui/1.12.1/themes/start/jquery-ui.css">
  8.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.2/css/all.css" integrity="sha384-/rXc/GQVaYpyDdyxK+ecHPVYJSN9bmVFBvjA/9eOB+pb3F2w2N6fc5qB9Ew5yIns" crossorigin="anonymous">
  9.     <script src="http://code.jquery.com/jquery-3.3.1.min.js"></script>
  10.     <script>jQuery.noConflict();</script>
  11.     <script src="http://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
  12.     <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.5/angular.min.js"></script>
  13.     <style>
  14.         .display-none { display: none; }
  15.  
  16.     </style>
  17. </head>
  18. <body>
  19.     <!-- container // -->
  20.     <div class="container">
  21.         <!-- header // -->
  22.         <div class="jumbotron text-center">
  23.             <h1>Simple RESTful API Example</h1>
  24.             <p><a href="#!" class="btn-add btn btn-primary"><i class="fas fa-user-friends"></i> Add Friend</a></p>
  25.         </div>
  26.         <!-- // header -->
  27.  
  28.         <!-- view json // -->
  29.         <div style="margin: 20px 0;">
  30.             <textarea id="getalljsondata" rows="5" class="form-control display-none"></textarea>
  31.             <p class="text-right" style="margin-top: 10px;"><a href="#!" class="get-all-data btn btn-info">View JSON</a></p>
  32.         </div>
  33.         <!-- // view json -->
  34.    
  35.         <!-- list and search // -->
  36.         <div>
  37.             <!-- search // -->
  38.             <div>
  39.                 <form>
  40.                     <div class="form-group">
  41.                         <input type="text" class="form-control" id="search" placeholder="Search...">
  42.                     </div>
  43.                 </form>
  44.             </div>
  45.             <!-- // search -->
  46.  
  47.             <!-- list table // -->
  48.             <table id="friendstable" class="table table-bordered table-hover">
  49.                 <tr class="active">
  50.                     <td>id</td>
  51.                     <td>name</td>
  52.                     <td>city</td>
  53.                     <td>Phone</td>
  54.                     <td>Email</td>
  55.                     <td>&nbsp;</td>
  56.                 </tr>
  57.                 <tr>
  58.                     <td>1</td>
  59.                     <td>Kim</td>
  60.                     <td>Seoul</td>
  61.                     <td>010-1234-5678</td>
  62.                     <td>[email protected]</td>
  63.                     <td>
  64.                         <a class="btn-del btn btn-danger btn-sm" href="#!"><i class="fas fa-trash-alt"></i></a>
  65.                         <a class="btn-modify btn btn-warning btn-sm" href="#!"><i class="fas fa-pen"></i></a>
  66.                     </td>
  67.                 </tr>
  68.             </table>
  69.             <!-- // list table -->
  70.         </div>
  71.         <!-- // list and search -->
  72.  
  73.     </div>
  74.     <!-- // container -->
  75.  
  76.  
  77.     <!-- write form dialog // -->
  78.     <div id="write-form-dialog" class="display-none">
  79.         <form id="write-form">
  80.             <div class="form-group row">
  81.                 <label for="friendName" class="col-sm-2 col-form-label">Name</label>
  82.                 <div class="col-sm-10">
  83.                     <input type="text" class="form-control" id="friendName" placeholder="friend's name">
  84.                 </div>
  85.             </div>
  86.             <div class="form-group row">
  87.                 <label for="friendCity" class="col-sm-2 col-form-label">City</label>
  88.                 <div class="col-sm-10">
  89.                     <input type="text" class="form-control" id="friendCity" placeholder="friend's city">
  90.                 </div>
  91.             </div>
  92.             <div class="form-group row">
  93.                 <label for="friendPhone" class="col-sm-2 col-form-label">Phone</label>
  94.                 <div class="col-sm-10">
  95.                     <input type="text" class="form-control" id="friendPhone" placeholder="friend's phone number">
  96.                 </div>
  97.             </div> 
  98.             <div class="form-group row">
  99.                 <label for="friendEmail" class="col-sm-2 col-form-label">Email</label>
  100.                 <div class="col-sm-10">
  101.                     <input type="text" class="form-control" id="friendEmail" placeholder="friend's phone email">
  102.                 </div>
  103.             </div>
  104.         </form>
  105.     </div>
  106.     <!-- // write form dialog -->
  107.  
  108.  
  109.     <script>
  110.     </script>
  111. </body>
  112. </html>
Advertisement
Add Comment
Please, Sign In to add comment