create_template.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <div class="modal" id="create-template">
  2. <div class="modal-dialog">
  3. <div class="modal-content">
  4. <div class="modal-header bg-primary">
  5. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  6. <div class="modal-title">{{ t('Create/Edit Template') }}</div>
  7. </div>
  8. <div class="modal-body">
  9. <div class="form-group">
  10. <label for="">{{ t('modal_template.label.Create template', page.path) }}</label><br><br>
  11. <div class="row">
  12. <div class="col-sm-6">
  13. <p class="help-block text-center"><strong>{{ t('modal_template.label.Local template') }}</strong></p>
  14. <p class="help-block text-center"><small>{{ t('modal_template.help.Local template') }}</small></p>
  15. <br>
  16. <div class="d-flex justify-content-center">
  17. {% if localTemplateExists %}
  18. <a href="{{ page.path }}/__template#edit-form"><button class="btn btn-xs btn-primary">{{ t('Edit') }}</button></a>
  19. {% else %}
  20. <a href="{{ page.path }}/__template#edit-form"><button class="btn btn-xs btn-primary">{{ t('Create') }}</button></a>
  21. {% endif %}
  22. </div>
  23. </div>
  24. <div class="col-sm-6">
  25. <p class="help-block text-center"><strong>{{ t('modal_template.label.Global template') }}</strong></p>
  26. <p class="help-block text-center"><small>{{ t('modal_template.help.Global template') }}</small></p>
  27. <br>
  28. <div class="d-flex justify-content-center">
  29. {% if globalTemplateExists %}
  30. <a href="{{ page.path }}/_template#edit-form"><button class="btn btn-xs btn-primary">{{ t('Edit') }}</button></a>
  31. {% else %}
  32. <a href="{{ page.path }}/_template#edit-form"><button class="btn btn-xs btn-primary">{{ t('Create') }}</button></a>
  33. {% endif %}
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </div><!-- /.modal-content -->
  40. </div><!-- /.modal-dialog -->
  41. </div><!-- /.modal -->