edit.tpl 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!-- 편집 -->
  2. % rebase('base.tpl')
  3. <div id="tool">
  4. <nav class="menu">
  5. <a class="menu-item selected" href="#" onclick="return false">
  6. {{sub}}
  7. </a>
  8. <a class="menu-item" href="/w/{{get('page', '')}}">문서</a>
  9. </nav>
  10. </div>
  11. <h1 class="title">
  12. {{title}}
  13. <sub> ({{sub}})</sub>
  14. </h1>
  15. % if(login == 0):
  16. <br>
  17. <span>비 로그인 상태입니다. 비 로그인으로 작업 시 아이피가 역사에 기록됩니다.</span>
  18. <br>
  19. <br>
  20. % end
  21. % if(defined('section')):
  22. <form id="usrform" name="f1" method="POST" action="/edit/{{page}}/section/{{number}}">
  23. <textarea rows="30" cols="100" name="content" form="usrform">{{data}}</textarea>
  24. % if(defined('preview')):
  25. <textarea style="display:none;" rows="30" cols="100" name="otent" form="usrform">{{odata}}</textarea>
  26. % else:
  27. <textarea style="display:none;" rows="30" cols="100" name="otent" form="usrform">{{data}}</textarea>
  28. % end
  29. <input name="send" style="margin-top:10px;width:100%" type="text">
  30. <br>
  31. <br>
  32. <div class="form-actions">
  33. <button class="btn btn-primary" type="submit" onclick="f1.action='/edit/{{page}}/section/{{number}}';">저장</button>
  34. <button class="btn" type="submit" onclick="f1.action='/preview/{{page}}/section/{{number}}';">미리보기</button>
  35. </div>
  36. </form>
  37. % else:
  38. <form id="usrform" name="f1" method="POST" action="/edit/{{page}}">
  39. <textarea rows="30" cols="100" name="content" form="usrform">{{data}}</textarea>
  40. <input name="send" style="margin-top:10px;width:100%" type="text">
  41. <br>
  42. <br>
  43. <div class="form-actions">
  44. <button class="btn btn-primary" type="submit" onclick="f1.action='/edit/{{page}}';">저장</button>
  45. <button class="btn" type="submit" onclick="f1.action='/preview/{{page}}';">미리보기</button>
  46. </div>
  47. </form>
  48. % end
  49. % if(defined('preview')):
  50. {{!enddata}}
  51. % end