create_page.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <div class="modal create-page" id="create-page">
  2. <div class="modal-dialog">
  3. <div class="modal-content">
  4. <div class="modal-header">
  5. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  6. <h4 class="modal-title">{{ t('New Page') }}</h4>
  7. </div>
  8. <div class="modal-body">
  9. <form class="form-horizontal" id="create-page-today" role="form">
  10. <fieldset>
  11. <div class="col-xs-12">
  12. <h4>{{ t("Create today's ...") }}</h4>
  13. </div>
  14. <div class="col-xs-10">
  15. <span class="page-today-prefix">{{ userPageRoot(user) }}/</span>
  16. <input type="text" data-prefix="{{ userPageRoot(user) }}/" class="page-today-input1 form-control" value="{{ t('Memo') }}" id="" name="">
  17. <span class="page-today-suffix">/{{ now|datetz('Y/m/d') }}/</span>
  18. <input type="text" data-prefix="/{{ now|datetz('Y/m/d') }}/" class="page-today-input2 form-control" id="page-today-input2" name="" placeholder="{{ t('Input page name empty ok') }}">
  19. </div>
  20. <div class="col-xs-2">
  21. <button type="submit" class="btn btn-primary">{{ t('Create') }}</button>
  22. </div>
  23. </fieldset>
  24. </form>
  25. <hr>
  26. {% if !isTopPage() %}
  27. <form class="form-horizontal" id="create-page-under-tree" role="form">
  28. <fieldset>
  29. <div class="col-xs-12">
  30. <h4>{{ t('Create below', parentPath(path)) }}</h4>
  31. </div>
  32. <div class="col-xs-10">
  33. <input type="text" value="{{ parentPath(path) }}" class="page-name-input form-control " placeholder="{{ t('Input page name') }}" required>
  34. </div>
  35. <div class="col-xs-2">
  36. <button type="submit" class="btn btn-primary">{{ t('Create') }}</button>
  37. </div>
  38. </fieldset>
  39. </form>
  40. <hr>
  41. {% endif %}
  42. </div><!-- /.modal-body -->
  43. </div><!-- /.modal-content -->
  44. </div><!-- /.modal-dialog -->
  45. </div><!-- /.modal -->