2010-09-05 20:58:24 +02:00
|
|
|
[# this template is used in fun_editticket.html as well]
|
|
|
|
|
2011-01-05 22:24:11 +01:00
|
|
|
[if item_is]<h1>{edit_ticket_header}</h1>[else]<h1>{create_ticket_header}</h1>[end]
|
2010-01-26 20:02:21 +01:00
|
|
|
|
2010-02-28 01:08:10 +01:00
|
|
|
[include "error.html"]
|
2010-01-26 20:02:21 +01:00
|
|
|
|
2010-01-28 16:39:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-05 22:24:11 +01:00
|
|
|
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/editticket[else]createticket[end]" enctype="multipart/form-data">
|
2010-01-26 20:02:21 +01:00
|
|
|
<fieldset>
|
|
|
|
|
2011-01-05 22:24:11 +01:00
|
|
|
[if item_is]
|
2010-01-28 16:39:01 +01:00
|
|
|
<legend>{form_edit_ticket_legend}</legend>
|
2010-01-26 20:02:21 +01:00
|
|
|
[else]
|
2010-01-28 16:39:01 +01:00
|
|
|
<legend>{form_create_ticket_legend}</legend>
|
2010-01-26 20:02:21 +01:00
|
|
|
[end]
|
|
|
|
|
2010-01-28 16:39:01 +01:00
|
|
|
<p class="withnext">{title}:</p>
|
2011-01-05 22:24:11 +01:00
|
|
|
<input class="edit" type="text" name="subject" value="[item_subject]">
|
2010-01-26 20:02:21 +01:00
|
|
|
|
|
|
|
|
2010-10-19 02:31:20 +02:00
|
|
|
[if ticket_tab]
|
|
|
|
<table class="ticket">
|
|
|
|
|
|
|
|
[for ticket_tab]
|
|
|
|
|
2010-01-26 20:02:21 +01:00
|
|
|
<tr>
|
2011-01-21 17:16:52 +01:00
|
|
|
<th>[ticket_tab_param_name]:</th>
|
2010-10-19 02:31:20 +02:00
|
|
|
|
2010-01-26 20:02:21 +01:00
|
|
|
<td>
|
2010-10-19 02:31:20 +02:00
|
|
|
|
2012-01-16 11:12:38 +01:00
|
|
|
[if ticket_tab_type_is "select"]
|
2011-01-21 17:16:52 +01:00
|
|
|
<select name="ticketparam[ticket_tab_param_id]">
|
2010-10-19 02:31:20 +02:00
|
|
|
[for ticket_tab_select_tab]
|
2011-01-21 17:16:52 +01:00
|
|
|
<option [if ticket_tab_select_tab_is_selected]selected [end]value="[ticket_tab_select_tab_id]">[ticket_tab_select_tab_name]</option>
|
2010-10-19 02:31:20 +02:00
|
|
|
[end]
|
|
|
|
</select>
|
2010-01-26 20:02:21 +01:00
|
|
|
[end]
|
2010-10-19 02:31:20 +02:00
|
|
|
|
|
|
|
|
2012-01-16 11:12:38 +01:00
|
|
|
[if-one ticket_tab_type_is "integer" ticket_tab_type_is "progress" ticket_tab_type_is "string"]
|
2011-01-21 17:16:52 +01:00
|
|
|
<input type="text" name="ticketparam[ticket_tab_param_id]" value="[ticket_tab_value]">
|
2010-01-26 20:02:21 +01:00
|
|
|
[end]
|
2011-01-05 22:24:11 +01:00
|
|
|
|
2010-10-19 02:31:20 +02:00
|
|
|
|
2012-01-16 11:12:38 +01:00
|
|
|
[if ticket_tab_type_is "multistring"]
|
2012-01-17 23:54:41 +01:00
|
|
|
<textarea name="ticketparam[ticket_tab_param_id]" rows="10" cols="60">[ticket_tab_value]</textarea>
|
2011-01-05 22:24:11 +01:00
|
|
|
[end]
|
|
|
|
|
|
|
|
|
2012-01-16 11:12:38 +01:00
|
|
|
[if ticket_tab_type_is "images"]
|
2012-01-17 23:54:41 +01:00
|
|
|
[for ticket_tab_file_tab]
|
|
|
|
<img src="[doc_base_url][ticket_tab_file_tab_path]/-/thumb" alt="[ticket_tab_file_tab_path]" height="150">
|
2011-01-05 22:24:11 +01:00
|
|
|
[end]
|
|
|
|
|
2012-01-17 23:54:41 +01:00
|
|
|
<input size="30" class="edit" type="file" name="ticketparam[ticket_tab_param_id]" multiple>
|
2011-01-27 15:35:25 +01:00
|
|
|
<input class="filesubmit" type="submit" name="fileuploadsubmit" value="{add}">
|
2011-01-05 22:24:11 +01:00
|
|
|
[end]
|
|
|
|
|
|
|
|
|
2012-01-16 11:12:38 +01:00
|
|
|
[if ticket_tab_type_is "files"]
|
2012-01-17 23:54:41 +01:00
|
|
|
[if ticket_tab_file_tab]
|
|
|
|
<ul>
|
|
|
|
[for ticket_tab_file_tab]
|
|
|
|
<li><a href="[doc_base_url][ticket_tab_file_tab_path]/download">[ticket_tab_file_tab_path]</a></li>
|
|
|
|
[end]
|
|
|
|
</ul>
|
2011-01-05 22:24:11 +01:00
|
|
|
[end]
|
|
|
|
|
2012-01-17 23:54:41 +01:00
|
|
|
<input size="30" class="edit" type="file" name="ticketparam[ticket_tab_param_id]" multiple>
|
2011-01-27 15:35:25 +01:00
|
|
|
<input class="filesubmit" type="submit" name="fileuploadsubmit" value="{add}">
|
2011-01-05 22:24:11 +01:00
|
|
|
[end]
|
|
|
|
|
2012-01-17 23:54:41 +01:00
|
|
|
[if-any-no ticket_tab_type_is "images" ticket_tab_type_is "files" ticket_is_creating_new ticket_tab_has_value]
|
|
|
|
{ticket_value_not_set}
|
|
|
|
[end]
|
2011-01-05 22:24:11 +01:00
|
|
|
|
2010-01-26 20:02:21 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
2010-10-19 02:31:20 +02:00
|
|
|
|
2010-01-26 20:02:21 +01:00
|
|
|
[end]
|
2010-10-19 02:31:20 +02:00
|
|
|
|
|
|
|
</table>
|
2010-01-26 20:02:21 +01:00
|
|
|
[end]
|
|
|
|
|
|
|
|
|
2010-08-10 22:43:38 +02:00
|
|
|
[# !! change names form_emacs_content_thread and form_emacs_content_ticket]
|
|
|
|
|
|
|
|
<p class="withnext">{form_emacs_content_ticket}</p>
|
2011-01-05 22:24:11 +01:00
|
|
|
<textarea class="multitext" rows="10" cols="60" name="itemcontent">[item_content]</textarea>
|
2010-08-10 22:43:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
<p class="withnext">{form_emacs_content_type}</p>
|
|
|
|
|
|
|
|
<select name="contenttype" class="contenttype">
|
2011-01-05 22:24:11 +01:00
|
|
|
<option[if item_content_type_is "text"] selected[end] value="0">{form_emacs_content_type_text}</option>
|
|
|
|
<option[if item_content_type_is "formatted text"] selected[end] value="1">{form_emacs_content_type_formatted_text}</option>
|
|
|
|
[if-one user_can_use_html]<option[if item_content_type_is "html"] selected[end] value="2">{form_emacs_content_type_html}</option>[end]
|
|
|
|
[if-one user_can_use_bbcode]<option[if item_content_type_is "bbcode"] selected[end] value="3">{form_emacs_content_type_bbcode}</option>[end]
|
|
|
|
[if-one user_can_use_raw]<option[if item_content_type_is "raw"] selected[end] value="4">{form_emacs_content_type_raw}</option>[end]
|
2010-08-10 22:43:38 +02:00
|
|
|
</select>
|
|
|
|
|
|
|
|
|
2010-01-26 20:02:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
[if-no user_logged]
|
2010-01-28 16:39:01 +01:00
|
|
|
<p class="withnext">{nick}:</p>
|
|
|
|
<input class="edit" type="text" name="guestname" value="[item_guest_name]">
|
|
|
|
|
|
|
|
<p class="withnext">{rebus_how_is_it} [rebus_question]?</p>
|
|
|
|
<input class="edit" type="text" name="rebus">
|
2010-01-26 20:02:21 +01:00
|
|
|
[end]
|
2010-01-28 16:39:01 +01:00
|
|
|
|
|
|
|
|
2011-01-05 22:24:11 +01:00
|
|
|
<input class="submit" type="submit" value="[if item_is]{form_ticket_edit_submit}[else]{form_ticket_create_submit}[end]">
|
2010-01-26 20:02:21 +01:00
|
|
|
</fieldset>
|
|
|
|
</form>
|