Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. <% include ../layout/head %>
  2. <% let selected= (string)=>{
  3. return category.icon_type==string
  4. } %>
  5. <div class="container">
  6. <div class="row">
  7. <!-- FORM -->
  8. <div class="col-md-4 offset-md-3">
  9. <h2>Crear Categoría</h2>
  10. <div class="card">
  11. <div class="card-body">
  12.  
  13. <form action="/categories/edit/<%= category._id %>" method="post">
  14. <div class="form-group">
  15. <label for="exampleFormControlInput1">Category Name</label>
  16. <input name="category_name" type="text" class="form-control" id="exampleFormControlInput1"
  17. value='<%= category.category_name %>' placeholder="Entretainment">
  18. </div>
  19. <div class="form-group">
  20. <label for="exampleFormControlInput1">Icon Name (see react native icons)</label>
  21. <input name="icon_name" type="text" class="form-control" id="exampleFormControlInput1"
  22. value="<%= category.icon_name %>" placeholder="umbrella">
  23. </div>
  24. <div class="form-group">
  25. <label for="exampleFormControlSelect1">Icon Family</label>
  26. <select name="icon_type" class="form-control" id="exampleFormControlSelect1">
  27. <Option <%= selected('AntDesign') ?'selected':'' %>>AntDesign</Option>
  28. <Option <%= selected('Ionicons') ?'selected':'' %>>Ionicons</Option>
  29. <Option <%= selected('Entypo') ?'selected':'' %>>Entypo</Option>
  30. <Option <%= selected('EvilIcons') ?'selected':'' %>>EvilIcons</Option>
  31. <Option <%= selected('Feather') ?'selected':'' %>>Feather</Option>
  32. <Option <%= selected('FontAwesome') ?'selected':'' %>>FontAwesome</Option>
  33. <Option <%= selected('FontAwesome5') ?'selected':'' %>>FontAwesome5</Option>
  34. <Option <%= selected('Foundation') ?'selected':'' %>>Foundation</Option>
  35. <Option <%= selected('MaterialIcons') ?'selected':'' %>>MaterialIcons</Option>
  36. <Option <%= selected('MaterialCommunityIcons') ?'selected':'' %>>MaterialCommunityIcons</Option>
  37. <Option <%= selected('Octicons') ?'selected':'' %>>Octicons</Option>
  38. <Option <%= selected('Roboto') ?'selected':'' %>>Roboto</Option>
  39. <Option <%= selected('rubicon-icon-font') ?'selected':'' %>>rubicon-icon-font</Option>
  40. <Option <%= selected('SimpleLineIcons') ?'selected':'' %>>SimpleLineIcons</Option>
  41. <Option <%= selected('Zocial') ?'selected':'' %>>Zocial</Option>
  42. </select>
  43. </div>
  44. <button type="submit" class="btn btn-block btn-primary">
  45. Actualizar
  46. </button>
  47. </form>
  48.  
  49. </div>
  50. </div>
  51. </div>
  52.  
  53. </div>
  54. </div>
  55.  
  56. <% include ../layout/foot %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement