winix/html/fun_createticket.html

189 lines
4.3 KiB
HTML
Executable File

[if-one ticket_is]<h1>{edit_ticket_header}</h1>[else]<h1>{create_ticket_header}</h1>[end]
[include "error.html"]
<form id="additem" method="post" action="[doc_base_url][dir][if-one ticket_is]editticket[else]createticket[end]">
<fieldset>
[if-one ticket_is]
<legend>{form_edit_ticket_legend}</legend>
[else]
<legend>{form_create_ticket_legend}</legend>
[end]
<p class="withnext">{title}:</p>
<input class="edit" type="text" name="subject" value="[item_subject]">
<table class="ticket">
[if-one ticket_type_tab_defined]
[if-one ticket_type_tab]
<tr>
<th>{form_ticket_type}:</th>
<td>
<select name="type">
[for ticket_type_tab]
<option [if-one ticket_type_tab_isdefault]selected [end]value="[ticket_type_tab_index]">[ticket_type_tab_name]</option>
[end]
</select>
</td>
</tr>
[end]
[else]
<tr>
<th>{form_ticket_type}:</th>
<td>
<select name="type">
<option value="0">-</option>
</select>
</td>
</tr>
[end]
[if-one ticket_status_tab_defined]
[if-one ticket_status_tab]
<tr>
<th>{form_ticket_status}:</th>
<td>
<select name="status">
[for ticket_status_tab]
<option [if-one ticket_status_tab_isdefault]selected [end]value="[ticket_status_tab_index]">[ticket_status_tab_name]</option>
[end]
</select>
</td>
</tr>
[end]
[else]
<tr>
<th>{form_ticket_status}:</th>
<td>
<select name="status">
<option value="0">-</option>
</select>
</td>
</tr>
[end]
[if-one ticket_priority_tab_defined]
[if-one ticket_priority_tab]
<tr>
<th>{form_ticket_priority}:</th>
<td>
<select name="priority">
[for ticket_priority_tab]
<option [if-one ticket_priority_tab_isdefault]selected [end]value="[ticket_priority_tab_index]">[ticket_priority_tab_name]</option>
[end]
</select>
</td>
</tr>
[end]
[else]
<tr>
<th>{form_ticket_priority}:</th>
<td>
<select name="priority">
<option value="0">-</option>
</select>
</td>
</tr>
[end]
[if-one ticket_category_tab_defined]
[if-one ticket_category_tab]
<tr>
<th>{form_ticket_category}:</th>
<td>
<select name="category">
[for ticket_category_tab]
<option [if-one ticket_category_tab_isdefault]selected [end]value="[ticket_category_tab_index]">[ticket_category_tab_name]</option>
[end]
</select>
</td>
</tr>
[end]
[else]
<tr>
<th>{form_ticket_category}:</th>
<td>
<select name="category">
<option value="0">-</option>
</select>
</td>
</tr>
[end]
[if-one ticket_expected_tab_defined]
[if-one ticket_expected_tab]
<tr>
<th>{form_ticket_expected}:</th>
<td>
<select name="expected">
[for ticket_expected_tab]
<option [if-one ticket_expected_tab_isdefault]selected [end]value="[ticket_expected_tab_index]">[ticket_expected_tab_name]</option>
[end]
</select>
</td>
</tr>
[end]
[else]
<tr>
<th>{form_ticket_expected}:</th>
<td>
<select name="expected">
<option value="0">-</option>
</select>
</td>
</tr>
[end]
<tr>
<th>{form_ticket_progress}:</th>
<td><input type="text" name="progress" value="[ticket_progress]"></td>
</tr>
</table>
[# !! change names form_emacs_content_thread and form_emacs_content_ticket]
<p class="withnext">{form_emacs_content_ticket}</p>
<textarea class="multitext" rows="10" cols="60" name="itemcontent">[ticket_item_content]</textarea>
<p class="withnext">{form_emacs_content_type}</p>
<select name="contenttype" class="contenttype">
<option[if ticket_item_content_type_is "text"] selected[end] value="0">{form_emacs_content_type_text}</option>
<option[if ticket_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 ticket_item_content_type_is "html"] selected[end] value="2">{form_emacs_content_type_html}</option>[end]
[if-one user_can_use_bbcode]<option[if ticket_item_content_type_is "bbcode"] selected[end] value="3">{form_emacs_content_type_bbcode}</option>[end]
[if-one user_can_use_raw]<option[if ticket_item_content_type_is "raw"] selected[end] value="4">{form_emacs_content_type_raw}</option>[end]
</select>
[if-no user_logged]
<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">
[end]
<input class="submit" type="submit" value="[if-one ticket_is]{form_ticket_edit_submit}[else]{form_ticket_create_submit}[end]">
</fieldset>
</form>