daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <% include partials/header %>
  2. <% include partials/nav %>
  3. <% include partials/alert %>
  4.  
  5. <% if (typeof foundUser != "undefined") { %>
  6. <div class="card gray">
  7.     <h3 class="card-header"><i class="fa fa-sign-in"></i> Edit user <%= foundUser.username %></h3>
  8.     <div class="card-body">
  9.         <form action="/" method="POST">
  10.             <fieldset>
  11.                 <div class="form-group">
  12.                     <label class="quaver-beautiful-white-text">User ID</label>
  13.                     <input type="text" class="form-control" name="userId" value='<%= foundUser.userId %>' disabled>
  14.                 </div>
  15.                 <div class="form-group">
  16.                     <label class="quaver-beautiful-white-text">Username</label>
  17.                     <input type="text" class="form-control" name="username" value='<%= foundUser.username %>'>
  18.                 </div>
  19.                 <div class="form-group">
  20.                     <label class="quaver-beautiful-white-text">Email</label>
  21.                     <input type="text" class="form-control" name="email" value='<%= foundUser.email %>'>
  22.                 </div>
  23.                 <div class="form-group">
  24.                     <label class="quaver-beautiful-white-text">Country <%= foundUser.country %></label>
  25.                     <select class="form-control" name="country" selected="<%=utils.isoCountries[foundUser.country] %>">
  26.                         <% for (var property in utils.isoCountries) { %>
  27.                         <%  if (utils.isoCountries.hasOwnProperty(property)) { %>
  28.                             <option><%= utils.isoCountries[property] %></option>
  29.                         <% } %>
  30.                         <% } %>
  31.                     </select>
  32.                 </div>
  33.                 <div class="form-group">
  34.                     <label class="quaver-beautiful-white-text">Userpage</label>
  35.                     <textarea class="form-control" rows="10"><%= foundUser.profilePage %></textarea>
  36.                 </div>
  37.                 <div class="form-group">
  38.                     <label class="quaver-beautiful-white-text">User Group</label>
  39.                     <input type="text" class="form-control" name="usergroup" value='<%= foundUser.userGroup %>' disabled>
  40.                 </div>
  41.                 <div class="form-group">
  42.                     <label class="quaver-beautiful-white-text">Privileges</label>
  43.                     <input type="number" class="form-control" name="privileges" value='<%= foundUser.privileges %>' disabled>
  44.                 </div>
  45.                 <div class="form-group">
  46.                     <label class="quaver-beautiful-white-text">IP</label>
  47.                     <input type="number" class="form-control" name="privileges" value='<%= foundUser.ipAddresses %>' disabled>
  48.                 </div>
  49.             </fieldset>
  50.             <button type="submit" class="btn btn-primary">Update</button>
  51.         </form>
  52.     </div>
  53. </div>
  54. <% } %>
  55.  
  56. <% include partials/footer %>
RAW Paste Data
Top