ikiwiki/templates/editpage.tmpl

91 lines
2.7 KiB
Cheetah
Raw Normal View History

<TMPL_VAR JAVASCRIPT>
<TMPL_VAR MESSAGE>
<br />
<TMPL_VAR FORM-START>
<TMPL_VAR FIELD-DO>
<TMPL_VAR FIELD-SID>
<TMPL_VAR FIELD-FROM>
<TMPL_VAR FIELD-RCSINFO>
<TMPL_VAR FIELD-NEWFILE>
<TMPL_IF NAME="PAGE_SELECT">
<label for="page" class="inline">Page location:</label><TMPL_VAR FIELD-PAGE>
<label for="type" class="inline">Page type:</label><TMPL_VAR FIELD-TYPE>
<TMPL_ELSE>
<TMPL_VAR FIELD-PAGE>
<TMPL_VAR FIELD-TYPE>
</TMPL_IF>
<div class="editcontentdiv">
<TMPL_VAR FIELD-EDITCONTENT><br />
</div>
<TMPL_IF NAME="CAN_COMMIT">
<label for="editmessage" class="block">Optional comment about this change:</label>
<TMPL_VAR FIELD-EDITMESSAGE><br />
</TMPL_IF>
<TMPL_VAR FORM-SUBMIT>
<TMPL_VAR HELPONFORMATTINGLINK>
<TMPL_IF NAME="FIELD-ATTACHMENT">
<a class="toggle" href="#attachments">Attachments</a>
2011-06-15 21:21:59 +02:00
<div class="<TMPL_VAR ATTACHMENTS-CLASS>" id="attachments">
<div id="fileupload">
2011-06-16 00:37:12 +02:00
<script>
$(function () { $('#fileupload').fileupload(); }); // initialize upload widget
</script>
2011-06-15 21:21:59 +02:00
<script id="template-upload" type="text/x-jquery-tmpl">
<tr class="template-upload{{if error}} ui-state-error{{/if}}">
2011-06-16 00:37:12 +02:00
<td><input type="checkbox" name="attachment_select" value="${name}" />${name}</td>
2011-06-15 21:21:59 +02:00
{{if error}}
2011-06-16 00:37:12 +02:00
<td class="error" colspan="2">failed!</td>
2011-06-15 21:21:59 +02:00
{{else}}
2011-06-16 00:37:12 +02:00
<td class="progress" colspan="2"><div></div></td>
<td class="start"><button>Start</button></td>
2011-06-15 21:21:59 +02:00
{{/if}}
<td class="cancel"><button>Cancel</button></td>
</tr>
</script>
<script id="template-download" type="text/x-jquery-tmpl">
<tr class="template-download{{if error}} ui-state-error{{/if}}">
<td><input type="checkbox" name="attachment_select" value="${name}" />${name}</td>
<td>${humansize}</td>
{{if error}}
2011-06-16 00:37:12 +02:00
<td class="error" colspan="2">failed!</td>
2011-06-15 21:21:59 +02:00
{{else}}
2011-06-16 00:37:12 +02:00
<td>${stored_msg}</td>
2011-06-15 21:21:59 +02:00
{{/if}}
</tr>
</script>
<div class="fileupload-content">
<table class="files">
<TMPL_LOOP NAME="ATTACHMENT_LIST">
<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>
</TMPL_LOOP>
2008-07-01 23:19:38 +02:00
</table>
</div>
2011-06-16 00:37:12 +02:00
<TMPL_VAR FIELD-ATTACHMENT>
<noscript><TMPL_VAR FIELD-UPLOAD></noscript>
<TMPL_IF NAME="ATTACHMENT_LIST">
<TMPL_VAR FIELD-LINK><TMPL_VAR FIELD-RENAME><TMPL_VAR FIELD-REMOVE>
</TMPL_IF>
2011-06-15 21:21:59 +02:00
</div>
</div>
</TMPL_IF>
<TMPL_VAR FORM-END>
2009-03-08 00:52:14 +01:00
<TMPL_VAR WMD_PREVIEW>
<TMPL_IF NAME="PAGE_PREVIEW">
<hr />
<div class="header">
<span>Page preview:</span>
2006-03-29 09:24:03 +02:00
</div>
<div id="preview">
2006-03-16 22:39:45 +01:00
<TMPL_VAR PAGE_PREVIEW>
2006-03-29 09:24:03 +02:00
</div>
2006-03-16 22:39:45 +01:00
</TMPL_IF>
<TMPL_IF NAME="PAGE_DIFF">
<hr />
<div class="header">
<span>Diff:</span>
</div>
<div id="diff">
<TMPL_VAR PAGE_DIFF>
</div>
</TMPL_IF>