summaryrefslogtreecommitdiff
path: root/editpage.tmpl
blob: 4736c95d0a8197d32d37f72fd7ab27ae48788553 (plain)
  1. <TMPL_VAR JAVASCRIPT>
  2. <TMPL_VAR MESSAGE>
  3. <br />
  4. <TMPL_VAR FORM-START>
  5. <TMPL_VAR FIELD-DO>
  6. <TMPL_VAR FIELD-SID>
  7. <TMPL_VAR FIELD-FROM>
  8. <TMPL_VAR FIELD-RCSINFO>
  9. <TMPL_VAR FIELD-NEWFILE>
  10. <TMPL_IF NAME="PAGE_SELECT">
  11. <label for="page" class="inline">Page location:</label><TMPL_VAR FIELD-PAGE>
  12. <label for="type" class="inline">Page type:</label><TMPL_VAR FIELD-TYPE>
  13. <TMPL_ELSE>
  14. <TMPL_VAR FIELD-PAGE>
  15. <TMPL_VAR FIELD-TYPE>
  16. </TMPL_IF>
  17. <div class="editcontentdiv">
  18. <TMPL_VAR FIELD-EDITCONTENT><br />
  19. </div>
  20. <TMPL_IF NAME="CAN_COMMIT">
  21. <label for="editmessage" class="block">Optional description of this change:</label>
  22. <TMPL_VAR FIELD-EDITMESSAGE><br />
  23. </TMPL_IF>
  24. <TMPL_VAR FORM-SUBMIT>
  25. <TMPL_VAR HELPONFORMATTINGLINK>
  26. <TMPL_IF NAME="FIELD-ATTACHMENT">
  27. <a class="toggle" href="#attachments">Attachments</a>
  28. </TMPL_IF>
  29. <TMPL_VAR FIELD-SUBSCRIBE>
  30. <TMPL_IF NAME="FIELD-ATTACHMENT">
  31. <div class="<TMPL_VAR ATTACHMENTS-CLASS>" id="attachments">
  32. <div id="fileupload">
  33. <script>
  34. $(function () { $('#fileupload').fileupload(); }); // initialize upload widget
  35. </script>
  36. <script id="template-upload" type="text/x-jquery-tmpl">
  37. <tr class="template-upload{{if error}} ui-state-error{{/if}}">
  38. <td><input type="checkbox" name="attachment_select" value="${name}" />${name}</td>
  39. {{if error}}
  40. <td class="error" colspan="2">failed!</td>
  41. {{else}}
  42. <td class="progress" colspan="2"><div></div></td>
  43. <td class="start"><button>Start</button></td>
  44. {{/if}}
  45. <td class="cancel"><button>Cancel</button></td>
  46. </tr>
  47. </script>
  48. <script id="template-download" type="text/x-jquery-tmpl">
  49. <tr class="template-download{{if error}} ui-state-error{{/if}}">
  50. <td><input type="checkbox" checked name="attachment_select" value="${name}" />${name}</td>
  51. <td>${humansize}</td>
  52. {{if error}}
  53. <td class="error" colspan="2">failed!</td>
  54. {{else}}
  55. <td>${stored_msg}</td>
  56. {{/if}}
  57. </tr>
  58. </script>
  59. <div class="fileupload-content">
  60. <table class="files">
  61. <TMPL_LOOP NAME="ATTACHMENT_LIST">
  62. <tr><td><input type="checkbox" name="attachment_select" value="<TMPL_VAR NAME ESCAPE="HTML">" /><TMPL_VAR LINK></td><td><TMPL_VAR SIZE></td><td><TMPL_VAR MTIME></td></tr>
  63. </TMPL_LOOP>
  64. </table>
  65. </div>
  66. <TMPL_VAR FIELD-ATTACHMENT>
  67. <noscript><TMPL_VAR FIELD-UPLOAD></noscript>
  68. <TMPL_VAR FIELD-LINK><TMPL_VAR FIELD-RENAME><TMPL_VAR FIELD-REMOVE>
  69. </div>
  70. </div>
  71. </TMPL_IF>
  72. <TMPL_VAR FORM-END>
  73. <TMPL_VAR WMD_PREVIEW>
  74. <TMPL_IF NAME="PAGE_PREVIEW">
  75. <hr />
  76. <div class="header">
  77. <span>Page preview:</span>
  78. </div>
  79. <div id="preview">
  80. <TMPL_VAR PAGE_PREVIEW>
  81. </div>
  82. </TMPL_IF>
  83. <TMPL_IF NAME="PAGE_DIFF">
  84. <hr />
  85. <div class="header">
  86. <span>Diff:</span>
  87. </div>
  88. <div id="diff">
  89. <TMPL_VAR PAGE_DIFF>
  90. </div>
  91. </TMPL_IF>