create_template.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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">Create/Edit Template</div>
  7. </div>
  8. <div class="modal-body">
  9. <div class="form-group">
  10. <label for="">Create a new template for <code>{{ page.path }}</code></label><br>
  11. <div class="row">
  12. <div class="col-sm-6">
  13. <p class="help-block">Local Template</p>
  14. <p class="help-block">Applies only to immediate decendant pages</p>
  15. <div class="d-flex justify-content-center">
  16. {% if template %}
  17. <a href="{{ page.path }}/@template#edit-form"><button type="submit" class="btn btn-xs btn-primary">Edit</button></a>
  18. {% else %}
  19. <a href="{{ page.path }}/@template#edit-form"><button type="submit" class="btn btn-xs btn-primary">Create</button></a>
  20. {% endif %}
  21. </div>
  22. </div>
  23. <div class="col-sm-6">
  24. <p class="help-block">Global Template</p>
  25. <p class="help-block">Applies to all decendant pages</p>
  26. <div class="d-flex justify-content-center">
  27. {% if template %}
  28. <a href="{{ page.path }}/_template#edit-form"><button type="submit" class="btn btn-xs btn-primary">Edit</button></a>
  29. {% else %}
  30. <a href="{{ page.path }}/_template#edit-form"><button type="submit" class="btn btn-xs btn-primary">Create</button></a>
  31. {% endif %}
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </div><!-- /.modal-content -->
  38. </div><!-- /.modal-dialog -->
  39. </div><!-- /.modal -->