2010-09-29 23:24:34 +02:00
|
|
|
[if item_is]<h1>{edit}</h1>[else]<h1>{add}</h1>[end]
|
2010-02-11 21:56:52 +01:00
|
|
|
|
2010-08-18 00:32:47 +02:00
|
|
|
[include "error.html"]
|
2010-02-11 21:56:52 +01:00
|
|
|
|
2010-09-29 23:24:34 +02:00
|
|
|
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]ckeditor">
|
2010-02-11 21:56:52 +01:00
|
|
|
<fieldset>
|
|
|
|
<legend>{form_emacs_legend}</legend>
|
|
|
|
|
2010-09-29 23:24:34 +02:00
|
|
|
[if mount_type_is "cms"]
|
2012-09-04 22:24:42 +02:00
|
|
|
<p class="withnext" style="text-indent: 0;">{title}:</p>
|
2010-02-11 21:56:52 +01:00
|
|
|
<input class="edit" type="text" name="subject" value="[item_subject]">
|
|
|
|
|
2012-09-04 22:24:42 +02:00
|
|
|
<p class="withnext" style="text-indent: 0;">{suggested_url}:</p>
|
2010-02-11 21:56:52 +01:00
|
|
|
<input class="edit" type="text" name="url" value="[item_url]">
|
|
|
|
[end]
|
|
|
|
|
2010-09-29 23:24:34 +02:00
|
|
|
[if-any mount_type_is "thread" mount_thread_arg_is "subject"]
|
2012-09-04 22:24:42 +02:00
|
|
|
<p class="withnext" style="text-indent: 0;">{title}:</p>
|
2010-09-29 23:24:34 +02:00
|
|
|
<input class="edit" type="text" name="subject" value="[item_subject]">
|
|
|
|
|
2012-09-04 22:24:42 +02:00
|
|
|
<p class="withnext" style="text-indent: 0;">{suggested_url}:</p>
|
2010-09-29 23:24:34 +02:00
|
|
|
<input class="edit" type="text" name="url" value="[item_url]">
|
2010-02-11 21:56:52 +01:00
|
|
|
[end]
|
|
|
|
|
2010-09-29 23:24:34 +02:00
|
|
|
[if mount_type_is "cms"]<p class="withnext">{form_emacs_content_cms}</p>[end]
|
|
|
|
[if mount_type_is "thread"]<p class="withnext">{form_emacs_content_thread}</p>[end]
|
|
|
|
[if mount_type_is "ticket"]<p class="withnext">{form_emacs_content_ticket}</p>[end]
|
2010-02-11 21:56:52 +01:00
|
|
|
|
2011-12-01 19:54:09 +01:00
|
|
|
[# template fun_ls.html uses the name: itemcontent to refer to this textarea item]
|
2010-09-29 23:24:34 +02:00
|
|
|
<textarea class="multitext" rows="[if mount_type_is "cms"]30[else]10[end]" cols="60" name="itemcontent">[item_content]</textarea>
|
2010-02-11 21:56:52 +01:00
|
|
|
|
|
|
|
<input type="hidden" name="contenttype" value="2">
|
|
|
|
|
2010-07-20 01:07:34 +02:00
|
|
|
[if winix_function_param_is "full"]
|
2011-08-18 01:09:47 +02:00
|
|
|
<script type="text/javascript">CKEDITOR.replace('itemcontent', \{filebrowserUploadUrl: '[doc_base_url][dir]upload?noredirect&ckeditor_upload', filebrowserBrowseUrl: '[doc_base_url][dir]ls?ckeditor_browse&fullscreen', customConfig : '[doc_base_url]/var/ckeditor_full.js' \});</script>
|
2010-02-11 21:56:52 +01:00
|
|
|
[else]
|
2011-08-18 01:09:47 +02:00
|
|
|
<script type="text/javascript">CKEDITOR.replace('itemcontent', \{filebrowserUploadUrl: '[doc_base_url][dir]upload?noredirect&ckeditor_upload', filebrowserBrowseUrl: '[doc_base_url][dir]ls?ckeditor_browse&fullscreen', customConfig : '[doc_base_url]/var/ckeditor_winix.js' \});</script>
|
2011-06-19 12:40:09 +02:00
|
|
|
|
2010-02-11 21:56:52 +01:00
|
|
|
[end]
|
|
|
|
|
|
|
|
[if-no user_logged]
|
2012-09-04 22:24:42 +02:00
|
|
|
<p class="withnext" style="text-indent: 0;">{nick}:</p>
|
2010-02-11 21:56:52 +01:00
|
|
|
<input class="edit" type="text" name="guestname" value="[item_guest_name]">
|
|
|
|
|
2012-09-04 22:24:42 +02:00
|
|
|
<p class="withnext" style="text-indent: 0;">{rebus_how_is_it} [rebus_question]?</p>
|
2010-02-11 21:56:52 +01:00
|
|
|
<input class="edit" type="text" name="rebus">
|
|
|
|
[end]
|
|
|
|
|
2010-09-29 23:24:34 +02:00
|
|
|
<input class="submit" type="submit" value="[if item_is]{change}[else]{add}[end]">
|
2012-09-04 22:24:42 +02:00
|
|
|
|
|
|
|
[if winix_function_param_is "postredirect"]
|
|
|
|
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
|
|
|
|
[end]
|
|
|
|
|
|
|
|
|
2010-02-11 21:56:52 +01:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|