admin-wizard.hbs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <div class="admin-wizard settings">
  2. <div class="wizard-header">
  3. {{i18n 'admin.wizard.header'}}
  4. </div>
  5. <div class="setting">
  6. <div class="setting-label">
  7. <h3>{{i18n 'admin.wizard.id'}}</h3>
  8. </div>
  9. <div class="setting-value">
  10. {{input name="name" value=model.id placeholderKey="admin.wizard.id_placeholder" disabled=model.existingId}}
  11. </div>
  12. </div>
  13. <div class="setting">
  14. <div class="setting-label">
  15. <h3>{{i18n 'admin.wizard.name'}}</h3>
  16. </div>
  17. <div class="setting-value">
  18. {{input name="name" value=model.name placeholderKey="admin.wizard.name_placeholder"}}
  19. </div>
  20. </div>
  21. <div class="setting">
  22. <div class="setting-label">
  23. <h3>{{i18n 'admin.wizard.background'}}</h3>
  24. </div>
  25. <div class="setting-value">
  26. {{input name="background" value=model.background placeholderKey="admin.wizard.background_placeholder"}}
  27. </div>
  28. </div>
  29. <div class="setting">
  30. <div class="setting-label">
  31. <h3>{{i18n 'admin.wizard.save_submissions'}}</h3>
  32. </div>
  33. <div class="setting-value">
  34. {{input type='checkbox' checked=model.save_submissions}}
  35. <span>{{i18n 'admin.wizard.save_submissions_label'}}</span>
  36. </div>
  37. </div>
  38. <div class="setting">
  39. <div class="setting-label">
  40. <h3>{{i18n 'admin.wizard.multiple_submissions'}}</h3>
  41. </div>
  42. <div class="setting-value">
  43. {{input type='checkbox' checked=model.multiple_submissions}}
  44. <span>{{i18n 'admin.wizard.multiple_submissions_label'}}</span>
  45. </div>
  46. </div>
  47. <div class="setting">
  48. <div class="setting-label">
  49. <h3>{{i18n 'admin.wizard.required'}}</h3>
  50. </div>
  51. <div class="setting-value">
  52. {{input type='checkbox' checked=model.required}}
  53. <span>{{i18n 'admin.wizard.required_label'}}</span>
  54. </div>
  55. </div>
  56. <div class="setting">
  57. <div class="setting-label">
  58. <h3>{{i18n 'admin.wizard.after_signup'}}</h3>
  59. </div>
  60. <div class="setting-value">
  61. {{input type='checkbox' checked=model.after_signup}}
  62. <span>{{i18n 'admin.wizard.after_signup_label'}}</span>
  63. </div>
  64. </div>
  65. <div class="setting">
  66. <div class="setting-label">
  67. <h3>{{i18n 'admin.wizard.after_time'}}</h3>
  68. </div>
  69. <div class="setting-value">
  70. {{input type='checkbox' checked=model.after_time}}
  71. <span>{{i18n 'admin.wizard.after_time_label'}}</span>
  72. {{d-button action='setNextSessionScheduled' translatedLabel=nextSessionScheduledLabel icon='calendar-o'}}
  73. </div>
  74. </div>
  75. <div class="setting">
  76. <div class="setting-label">
  77. <h3>{{i18n 'admin.wizard.prompt_completion'}}</h3>
  78. </div>
  79. <div class="setting-value">
  80. {{input type='checkbox' checked=model.prompt_completion}}
  81. <span>{{i18n 'admin.wizard.prompt_completion_label'}}</span>
  82. </div>
  83. </div>
  84. <div class="setting">
  85. <div class="setting-label">
  86. <h3>{{i18n 'admin.wizard.min_trust'}}</h3>
  87. </div>
  88. <div class="setting-value">
  89. <span>{{i18n 'admin.wizard.min_trust_label'}}</span>
  90. {{input type='number' value=model.min_trust class='input-small'}}
  91. </div>
  92. </div>
  93. <div class="setting">
  94. <div class="setting-label">
  95. <h3>{{i18n 'admin.wizard.theme_id'}}</h3>
  96. </div>
  97. <div class="setting-value">
  98. {{combo-box content=model.themes valueAttribute='id' value=model.theme_id none='admin.wizard.no_theme'}}
  99. </div>
  100. </div>
  101. <div class="setting full">
  102. <div class="setting-label">
  103. <h3>{{i18n 'admin.wizard.url'}}</h3>
  104. </div>
  105. <a href="{{wizardUrl}}" target="_blank">{{wizardUrl}}</a>
  106. </div>
  107. {{wizard-links type="step" current=currentStep items=model.steps}}
  108. {{#if currentStep}}
  109. {{wizard-custom-step step=currentStep wizard=model}}
  110. {{/if}}
  111. <div class='buttons'>
  112. <button {{action "save"}} disabled={{disableSave}} class='btn btn-primary'>{{i18n 'admin.wizard.save'}}</button>
  113. {{#unless newWizard}}
  114. <button {{action "remove"}} class='btn btn-danger remove'>{{d-icon "trash-o"}}{{i18n 'admin.wizard.remove'}}</button>
  115. {{/unless}}
  116. {{conditional-loading-spinner condition=saving size='small'}}
  117. {{#if error}}
  118. <span class="error">{{d-icon "times"}}{{error}}</span>
  119. {{/if}}
  120. </div>
  121. </div>