Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

166 lignes
9.4 KiB

  1. <h4><%= _lc( 'EDIT_GROUP' ) %></h4>
  2. <div class="row">
  3. <div class="col-sm-12">
  4. <div class="card">
  5. <form data-id="form-team-details">
  6. <div class="card-body">
  7. <div class="form-group">
  8. <label for="input-team-name">
  9. <%= _lc( 'GROUP_NAME' ) %>
  10. </label>
  11. <input type="text"
  12. minlength="3"
  13. maxlength="32"
  14. data-id="input-team-name"
  15. id="input-team-name"
  16. class="form-control"
  17. value="<%= group.getName() %>"
  18. placeholder="<%= _lc( 'TEAM_DETAIL_TEAMNAME_PLACEHOLDER' ) %>"
  19. required />
  20. <div class="invalid-feedback">
  21. <%= _lc( 'REGISTER_VALIDATION_ERROR_TEAMNAME' ) %>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label for="select-team-industry">
  26. <%= _lc( 'GROUP_INDUSTRY' ) %>
  27. </label>
  28. <div class="pb_select-wrap">
  29. <select class="form-control"
  30. id="select-team-industry"
  31. name="select-team-industry"
  32. data-id="select-team-industry" required="">
  33. <option value=""><%= _lc( 'CHOOSE_AN_INDUSTRY' ) %></option>
  34. <option value="FITNESS"
  35. <%= ( group.getCategory() === 'FITNESS' ) ? 'selected="selected"' : '' %>
  36. >
  37. <%= _lc( 'GROUP_INDUSTRY_FITNESS' ) %>
  38. </option>
  39. <option value="YOGA"
  40. <%= ( group.getCategory() === 'YOGA' ) ? 'selected="selected"' : '' %>
  41. >
  42. <%= _lc( 'GROUP_INDUSTRY_YOGA' ) %>
  43. </option>
  44. <option value="FIREFIGHTER"
  45. <%= ( group.getCategory() === 'FIREFIGHTER' ) ? 'selected="selected"' : '' %>
  46. >
  47. <%= _lc( 'GROUP_INDUSTRY_FIREFIGHTER' ) %>
  48. </option>
  49. <option value="CHARITY"
  50. <%= ( group.getCategory() === 'CHARITY' ) ? 'selected="selected"' : '' %>
  51. >
  52. <%= _lc( 'GROUP_INDUSTRY_CHARITY' ) %>
  53. </option>
  54. <option value="DOGSCHOOL"
  55. <%= ( group.getCategory() === 'DOGSCHOOL' ) ? 'selected="selected"' : '' %>
  56. >
  57. <%= _lc( 'GROUP_INDUSTRY_DOGSCHOOL' ) %>
  58. </option>
  59. <option value="PERSONAL_TRAINING"
  60. <%= ( group.getCategory() === 'PERSONAL_TRAINING' ) ? 'selected="selected"' : '' %>
  61. >
  62. <%= _lc( 'GROUP_INDUSTRY_PERSONAL_TRAINING' ) %>
  63. </option>
  64. <option value="HEALTH"
  65. <%= ( group.getCategory() === 'HEALTH' ) ? 'selected="selected"' : '' %>
  66. >
  67. <%= _lc( 'GROUP_INDUSTRY_HEALTH' ) %>
  68. </option>
  69. <option value="OTHER"
  70. <%= ( group.getCategory() === 'OTHER' ) ? 'selected="selected"' : '' %>
  71. >
  72. <%= _lc( 'GROUP_INDUSTRY_OTHER' ) %>
  73. </option>
  74. </select>
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label for="textarea-team-description">
  79. <%= _lc( 'GROUP_DESCRIPTION' ) %>
  80. </label>
  81. <textarea maxlength="4096"
  82. rows="5"
  83. data-id="textarea-team-description"
  84. id="textarea-team-description"
  85. class="form-control"
  86. placeholder="<%= _lc( 'TEAM_DETAIL_TEAMDESCRIPTION_PLACEHOLDER' ) %>"><%= group.getDescription() ? group.getDescription() : '' %></textarea>
  87. </div>
  88. <div class="form-group">
  89. <label><%= _lc( 'GROUP_NEW_USERS_ACTIVE' ) %></label>
  90. <div class="custom-control custom-checkbox my-1 mr-sm-2">
  91. <input type="checkbox"
  92. name="checkbox-new-users-active"
  93. data-id="checkbox-new-users-active"
  94. id="checkbox-new-users-active"
  95. class="custom-control-input"
  96. <%= group.getNewUsersActive() ? 'checked' : '' %>
  97. >
  98. <label class="custom-control-label"
  99. for="checkbox-new-users-active"><%= _lc( 'GROUP_NEW_USERS_ACTIVE_CHECKBOX' ) %></label>
  100. </div>
  101. </div>
  102. <div class="form-group">
  103. <label for="textarea-team-terms-conditions">
  104. <%= _lc( 'GROUP_TERMS_DESCRIPTION' ) %>
  105. </label>
  106. <textarea maxlength="4096"
  107. rows="5"
  108. data-id="textarea-team-terms-conditions"
  109. id="textarea-team-terms-conditions"
  110. class="form-control"
  111. placeholder="<%= _lc( 'TEAM_DETAIL_TEAM_TERMS_PLACEHOLDER' ) %>"><%= group.getTermsConditions() ? group.getTermsConditions() : '' %></textarea>
  112. </div>
  113. <div class="form-group">
  114. <div class="custom-control custom-checkbox my-1 mr-sm-2">
  115. <input type="checkbox"
  116. name="checkbox-team-terms-conditions-active"
  117. data-id="checkbox-team-terms-conditions-active"
  118. id="checkbox-team-terms-conditions-active"
  119. class="custom-control-input"
  120. <%= group.getTermsConditionsActive() ? 'checked' : '' %>
  121. >
  122. <label class="custom-control-label"
  123. for="checkbox-team-terms-conditions-active"><%= _lc( 'GROUP_TERMS_ACTIVE' ) %></label>
  124. <p>
  125. <small><%= _lc( 'GROUP_TERMS_ACTIVE_DESCRIPTION' ) %></small>
  126. </p>
  127. </div>
  128. </div>
  129. <div class="form-group">
  130. <button type="button"
  131. name="btn-reset-terms-members"
  132. data-id="btn-reset-terms-members"
  133. class="btn btn-sm btn-primary">
  134. <%= _lc( 'BTN_GROUP_TERMS_RESET' ) %>
  135. </button>
  136. <p>
  137. <small><span class="fa fa-exclamation-triangle"></span> <%= _lc( 'GROUP_TERMS_RESET_DESCRIPTION' ) %></small>
  138. </p>
  139. </div>
  140. <div class="form-group">
  141. <label for="textarea-team-contactinformation">
  142. <%= _lc( 'GROUP_CONTACT_INFORMATION' ) %>
  143. </label>
  144. <textarea maxlength="1024"
  145. rows="4"
  146. data-id="textarea-team-contactinformation"
  147. id="textarea-team-contactinformation"
  148. class="form-control"
  149. placeholder="<%= _lc( 'TEAM_DETAIL_CONTACTINFORMATION_PLACEHOLDER' ) %>"><%= group.getContactInformation() ? group.getContactInformation() : '' %></textarea>
  150. </div>
  151. </div>
  152. <div class="card-footer">
  153. <a href="#/group/<%= group.getId() %>"
  154. class="btn btn-sm btn-secondary">
  155. <%= _lc( 'BTN_CANCEL' ) %>
  156. </a>
  157. <button type="button"
  158. data-id="btn-save-changes"
  159. class="btn btn-sm btn-primary">
  160. <%= _lc( 'BTN_SAVE_CHANGES' ) %>
  161. </button>
  162. </div>
  163. </form>
  164. </div>
  165. </div>
  166. </div>