create_page.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 text-center" 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 (optional)') }}">
  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. <form class="form-horizontal" id="create-page-under-tree" role="form">
  27. <fieldset>
  28. <div class="col-xs-12 create-page-under-tree-label">
  29. <h4>{{ t('Create under', parentPath(path)) }}</h4>
  30. </div>
  31. <div class="col-xs-10">
  32. {% if searchConfigured() %}
  33. <div class="clearfix" id="page-name-inputter"></div>
  34. {% else %}
  35. <input type="text" value="{{ parentPath(path) }}" class="page-name-input form-control " placeholder="{{ t('Input page name') }}" required />
  36. {% endif %}
  37. </div>
  38. <div class="col-xs-2">
  39. <button type="submit" class="btn btn-primary">{{ t('Create') }}</button>
  40. </div>
  41. </fieldset>
  42. </form>
  43. <hr>
  44. </div><!-- /.modal-body -->
  45. </div><!-- /.modal-content -->
  46. </div><!-- /.modal-dialog -->
  47. </div><!-- /.modal -->