]> sipb.mit.edu Git - ikiwiki.git/blob - templates/editpage.tmpl
toggle: Add javascript to top of page, not to end. This avoids flicker since closed...
[ikiwiki.git] / templates / editpage.tmpl
1 <TMPL_VAR JAVASCRIPT>
2 <TMPL_IF NAME="PAGE_CONFLICT">
3 <p>
4 <b>Your changes conflict with other changes made to the page.</b>
5 </p>
6 <p>
7 Conflict markers have been inserted into the page content. Reconcile the
8 conflict and commit again to save your changes.
9 </p>
10 </TMPL_IF>
11 <TMPL_IF NAME="FAILED_SAVE">
12 <p>
13 <b>Failed to save your changes.</b>
14 </p>
15 <p>
16 Your changes were not able to be saved to disk. The system gave the error:
17 <blockquote>
18 <TMPL_VAR ERROR_MESSAGE>
19 </blockquote>
20 Your changes are preserved below, and you can try again to save them.
21 </p>
22 </TMPL_IF>
23 <TMPL_IF NAME="PAGE_GONE">
24 <p>
25 <b>The page you were editing has disappeared.</b>
26 </p>
27 <p>
28 Perhaps someone else has deleted it or moved it. If you want to recreate
29 this page with your text, click "Save Page" again.
30 </p>
31 </TMPL_IF>
32 <TMPL_IF NAME="CREATION_CONFLICT">
33 <p>
34 <b>While you were creating this page, someone else independently created a page
35 with the same name.</b>
36 </p>
37 <p>
38 The edit box below contains the page's current content, followed by the 
39 content you entered previously, to allow you to merge the two
40 together before saving.
41 </p>
42 </TMPL_IF>
43 <TMPL_VAR FORM-START>
44 <TMPL_VAR FIELD-DO>
45 <TMPL_VAR FIELD-SID>
46 <TMPL_VAR FIELD-FROM>
47 <TMPL_VAR FIELD-RCSINFO>
48 <TMPL_VAR FIELD-NEWFILE>
49 <TMPL_IF NAME="PAGE_SELECT">
50 Page location: <TMPL_VAR FIELD-PAGE>
51 Page type: <TMPL_VAR FIELD-TYPE>
52 <TMPL_ELSE>
53 <br />
54 <TMPL_VAR FIELD-PAGE>
55 <TMPL_VAR FIELD-TYPE>
56 </TMPL_IF>
57 <TMPL_VAR FIELD-EDITCONTENT><br />
58 <TMPL_IF NAME="CAN_COMMIT">
59 Optional comment about this change:<br />
60 <TMPL_VAR FIELD-COMMENTS><br />
61 </TMPL_IF>
62 <TMPL_VAR FORM-SUBMIT>
63 <TMPL_VAR HELPONFORMATTINGLINK>
64 <a class="toggle" href="#attachments">Attachments</a>
65 <TMPL_IF NAME="FIELD-ATTACHMENT">
66 <div class="<TMPL_VAR ATTACHMENTS-CLASS>" id="attachments">
67 <table>
68 <tr><td colspan="5"><TMPL_VAR FIELD-ATTACHMENT><TMPL_VAR FIELD-UPLOAD></td></tr>
69 <TMPL_LOOP NAME="ATTACHMENT_LIST">
70 <tr><td><TMPL_VAR FIELD-SELECT><TMPL_VAR LINK></td><td><TMPL_VAR SIZE></td><td><TMPL_VAR MTIME></td></tr>
71 </TMPL_LOOP>
72 <TMPL_IF NAME="ATTACHMENT_LIST">
73 <tr><td colspan="2"><TMPL_VAR FIELD-LINK><TMPL_VAR FIELD-DELETE><TMPL_VAR FIELD-RENAME></td></tr>
74 </TMPL_IF>
75 </table>
76 </div>
77 </TMPL_IF>
78 <TMPL_VAR FORM-END>
79
80 <TMPL_IF NAME="PAGE_PREVIEW">
81 <hr />
82 <div class="header">
83 <span>Page preview:</span>
84 </div>
85 <div id="preview">
86 <TMPL_VAR PAGE_PREVIEW>
87 </div>
88 </TMPL_IF>