create_page.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 (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">
  29. <h4>{{ t('Create under', parentPath(path)) }}</h4>
  30. </div>
  31. <div class="col-xs-10">
  32. <input type="text" value="{{ parentPath(path) }}" class="page-name-input form-control " placeholder="{{ t('Input page name') }}" required>
  33. </div>
  34. <div class="col-xs-2">
  35. <button type="submit" class="btn btn-primary">{{ t('Create') }}</button>
  36. </div>
  37. </fieldset>
  38. </form>
  39. <hr>
  40. </div><!-- /.modal-body -->
  41. </div><!-- /.modal-content -->
  42. </div><!-- /.modal-dialog -->
  43. </div><!-- /.modal -->