rename.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <div class="modal" id="renamePage">
  2. <div class="modal-dialog">
  3. <div class="modal-content">
  4. <form role="form" id="renamePageForm" onsubmit="return false;">
  5. <div class="modal-header bg-primary">
  6. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  7. <div class="modal-title">{{ t('Rename page') }}</div>
  8. </div>
  9. <div class="modal-body">
  10. <div class="form-group">
  11. <label for="">{{ t('Current page name') }}</label><br>
  12. <code>{{ page.path }}</code>
  13. </div>
  14. <div class="form-group">
  15. <label for="newPageName">{{ t('New page name') }}</label><br>
  16. <div class="input-group">
  17. <span class="input-group-addon">{{ config.crowi['app:url'] }}</span>
  18. <input type="text" class="form-control" name="new_path" id="newPageName" value="{{ page.path }}">
  19. </div>
  20. </div>
  21. <div class="checkbox checkbox-info">
  22. <input name="move_recursively" id="cbRecursively" value="1" type="checkbox" checked>
  23. <label for="cbRecursively">{{ t('modal_rename.label.Move recursively') }}</label>
  24. <p class="help-block"> {{ t('modal_rename.help.recursive', page.path) }}
  25. </p>
  26. </div>
  27. <div class="checkbox checkbox-info">
  28. <input name="create_redirect" id="cbRedirect" value="1" type="checkbox">
  29. <label for="cbRedirect">{{ t('modal_rename.label.Redirect') }}</label>
  30. <p class="help-block"> {{ t('modal_rename.help.redirect', page.path) }}
  31. </p>
  32. </div>
  33. {# <div class="checkbox"> #}
  34. {# <label> #}
  35. {# <input name="moveUnderTrees" value="1" type="checkbox"> 下層ページも全部移動する #}
  36. {# </label> #}
  37. {# <p class="help-block">チェックを入れると、<code>{{ page.path }}</code>以下の階層以下もすべて移動します。</p> #}
  38. {# <p class="help-block">例: <code>/hoge/fuga/move</code> を <code>/foo/bar/move</code> に移動すると、<code>/hoge/fuga/move/page1</code> も <code>/foo/bar/move/page1</code> に。</p> #}
  39. {# </div> #}
  40. </div>
  41. <div class="modal-footer">
  42. <div class="d-flex justify-content-between">
  43. <p>
  44. <span class="text-danger msg-already-exists">
  45. <strong><i class="icon-fw icon-ban"></i>{{ t('Page is already exists.') }}</strong>
  46. </span>
  47. <small id="linkToNewPage" class="msg-already-exists"></small>
  48. </p>
  49. <div>
  50. <input type="hidden" name="_csrf" value="{{ csrf() }}">
  51. <input type="hidden" name="path" value="{{ page.path }}">
  52. <input type="hidden" name="page_id" value="{{ page._id.toString() }}">
  53. <input type="hidden" name="revision_id" value="{{ page.revision._id.toString() }}">
  54. <button type="submit" class="btn btn-primary">Rename</button>
  55. </div>
  56. </div>
  57. </div>
  58. </form>
  59. </div><!-- /.modal-content -->
  60. </div><!-- /.modal-dialog -->
  61. </div><!-- /.modal -->