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