2012-10-17 08:00:00 +02:00
|
|
|
<div class="winix">
|
|
|
|
|
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-01-28 16:39:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 19:52:03 +01:00
|
|
|
<form class="uk-form-stacked" 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
|
|
|
|
|
|
|
|
2021-02-15 19:52:03 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<label class="uk-form-label" for="winix_title_id">{title}</label>
|
|
|
|
<div class="uk-form-controls">
|
|
|
|
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[item_subject]">
|
|
|
|
</div>
|
2012-10-17 08:00:00 +02:00
|
|
|
</div>
|
2010-01-26 20:02:21 +01:00
|
|
|
|
|
|
|
|
2010-10-19 02:31:20 +02:00
|
|
|
[if ticket_tab]
|
2021-02-15 19:52:03 +01:00
|
|
|
|
2010-10-19 02:31:20 +02:00
|
|
|
|
|
|
|
[for ticket_tab]
|
|
|
|
|
2012-01-16 11:12:38 +01:00
|
|
|
[if ticket_tab_type_is "select"]
|
2021-02-15 19:52:03 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<label class="uk-form-label" for="winix_ticket_select_id_[ticket_tab_param_id]">[filter fil_firstup][ticket_tab_param_name][end]</label>
|
|
|
|
|
|
|
|
<div class="uk-form-controls">
|
|
|
|
<select class="uk-select" id="winix_ticket_select_id_[ticket_tab_param_id]" name="ticketparam[ticket_tab_param_id]">
|
|
|
|
[for ticket_tab_select_tab]
|
|
|
|
<option [if ticket_tab_select_tab_is_selected]selected [end]value="[ticket_tab_select_tab_id]">[ticket_tab_select_tab_name]</option>
|
|
|
|
[end]
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2010-01-26 20:02:21 +01:00
|
|
|
[end]
|
2010-10-19 02:31:20 +02:00
|
|
|
|
|
|
|
|
2015-03-09 00:22:05 +01:00
|
|
|
[if one [ticket_tab_type_is "integer"] [ticket_tab_type_is "progress"] [ticket_tab_type_is "string"]]
|
2021-02-15 19:52:03 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<label class="uk-form-label" for="winix_ticket_input_id_[ticket_tab_param_id]">[filter fil_firstup][ticket_tab_param_name][end]</label>
|
|
|
|
|
|
|
|
<div class="uk-form-controls">
|
|
|
|
<input class="uk-input" id="winix_ticket_input_id_[ticket_tab_param_id]" type="text" name="ticketparam[ticket_tab_param_id]" value="[ticket_tab_value]">
|
|
|
|
</div>
|
|
|
|
</div>
|
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"]
|
2021-02-15 19:52:03 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<label class="uk-form-label" for="winix_ticket_textarea_id_[ticket_tab_param_id]">[filter fil_firstup][ticket_tab_param_name][end]</label>
|
|
|
|
|
|
|
|
<div class="uk-form-controls">
|
|
|
|
<textarea class="uk-textarea" id="winix_ticket_textarea_id_[ticket_tab_param_id]" name="ticketparam[ticket_tab_param_id]" rows="10" cols="60">[ticket_tab_value]</textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-01-05 22:24:11 +01:00
|
|
|
[end]
|
|
|
|
|
|
|
|
|
2012-01-16 11:12:38 +01:00
|
|
|
[if ticket_tab_type_is "images"]
|
2021-02-15 19:52:03 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<label class="uk-form-label" for="winix_ticket_images_id_[ticket_tab_param_id]">[filter fil_firstup][ticket_tab_param_name][end]</label>
|
|
|
|
|
|
|
|
<div uk-form-custom="target: true">
|
|
|
|
<input type="file" id="winix_ticket_images_id_[ticket_tab_param_id]" name="ticketparam[ticket_tab_param_id]" multiple>
|
|
|
|
<input class="uk-input" type="text" placeholder="{form_ticket_select_file}" disabled>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button class="uk-button uk-button-default" type="submit" name="fileuploadsubmit">{add}</button>
|
2013-05-06 09:23:44 +02:00
|
|
|
</div>
|
2021-02-15 19:52:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
<div class="uk-margin">
|
|
|
|
<div class="uk-child-width-1-3@m" uk-grid uk-lightbox="animation: slide">
|
|
|
|
[for ticket_tab_file_tab]
|
|
|
|
<div class="uk-inline">
|
|
|
|
<a class="uk-inline" href="[doc_base_url][ticket_tab_file_tab_path]" data-caption="[ticket_tab_file_tab_path]">
|
|
|
|
<img src="[doc_base_url][ticket_tab_file_tab_path]/-/thumb" alt="[ticket_tab_file_tab_path]">
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<button class="uk-button uk-button-default uk-button-small uk-position-small uk-position-top-right uk-overlay uk-overlay-default uk-padding-small uk-padding-remove-top uk-padding-remove-bottom"
|
|
|
|
type="submit"
|
|
|
|
name="ticketdeletefile_[ticket_tab_file_tab_itemid]"
|
|
|
|
data-uk-tooltip="title: {ticket_delete_file}">
|
|
|
|
|
|
|
|
<span uk-icon="trash"></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
[end]
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2011-01-05 22:24:11 +01:00
|
|
|
|
|
|
|
[end]
|
|
|
|
|
|
|
|
|
2012-01-16 11:12:38 +01:00
|
|
|
[if ticket_tab_type_is "files"]
|
2021-02-15 19:52:03 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<label class="uk-form-label" for="winix_ticket_files_id_[ticket_tab_param_id]">[filter fil_firstup][ticket_tab_param_name][end]</label>
|
|
|
|
|
|
|
|
<div uk-form-custom="target: true">
|
|
|
|
<input type="file" id="winix_ticket_files_id_[ticket_tab_param_id]" name="ticketparam[ticket_tab_param_id]" multiple>
|
|
|
|
<input class="uk-input" type="text" placeholder="{form_ticket_select_file}" disabled>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button class="uk-button uk-button-default" type="submit" name="fileuploadsubmit">{add}</button>
|
|
|
|
</div>
|
|
|
|
|
2012-01-17 23:54:41 +01:00
|
|
|
[if ticket_tab_file_tab]
|
2021-02-15 19:52:03 +01:00
|
|
|
<div class="uk-margin">
|
2012-01-17 23:54:41 +01:00
|
|
|
<ul>
|
|
|
|
[for ticket_tab_file_tab]
|
2013-05-06 09:23:44 +02:00
|
|
|
<li>
|
|
|
|
<a href="[doc_base_url][ticket_tab_file_tab_path]/download">[ticket_tab_file_tab_path]</a>
|
2021-02-15 19:52:03 +01:00
|
|
|
<button class="uk-button uk-button-default uk-button-small"
|
|
|
|
type="submit"
|
|
|
|
name="ticketdeletefile_[ticket_tab_file_tab_itemid]"
|
|
|
|
value="{ticket_delete_file}"
|
|
|
|
data-uk-tooltip="title: {ticket_delete_file}">
|
|
|
|
|
|
|
|
<span uk-icon="trash"></span>
|
|
|
|
</button>
|
2013-05-06 09:23:44 +02:00
|
|
|
</li>
|
2012-01-17 23:54:41 +01:00
|
|
|
[end]
|
|
|
|
</ul>
|
2021-02-15 19:52:03 +01:00
|
|
|
</div>
|
2011-01-05 22:24:11 +01:00
|
|
|
[end]
|
|
|
|
[end]
|
|
|
|
|
2015-03-09 00:22:05 +01:00
|
|
|
[if any_not [ticket_tab_type_is "images"] [ticket_tab_type_is "files"] ticket_is_creating_new ticket_tab_has_value]
|
2021-02-15 19:52:03 +01:00
|
|
|
<div class="uk-alert-warning" uk-alert>
|
|
|
|
<p>{ticket_value_not_set}</p>
|
|
|
|
</div>
|
2012-01-17 23:54:41 +01:00
|
|
|
[end]
|
2011-01-05 22:24:11 +01:00
|
|
|
|
2010-01-26 20:02:21 +01:00
|
|
|
[end]
|
2021-02-15 19:52:03 +01:00
|
|
|
|
2010-01-26 20:02:21 +01:00
|
|
|
[end]
|
|
|
|
|
|
|
|
|
2012-10-17 08:00:00 +02:00
|
|
|
[# FIXME !! change names form_emacs_content_thread and form_emacs_content_ticket]
|
2021-02-15 19:52:03 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<label for="winix_content_id">{form_emacs_content_ticket}</label>
|
|
|
|
|
|
|
|
<div class="uk-form-controls">
|
|
|
|
<textarea class="uk-textarea" id="winix_content_id" rows="10" cols="60" name="itemcontent">[item_content]</textarea>
|
|
|
|
</div>
|
2012-10-17 08:00:00 +02:00
|
|
|
</div>
|
2010-08-10 22:43:38 +02:00
|
|
|
|
|
|
|
|
2021-02-15 19:52:03 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<label for="winix_content_type_id">{form_emacs_content_type}</label>
|
|
|
|
|
|
|
|
<div class="uk-form-controls">
|
|
|
|
<select class="uk-select" id="winix_content_type_id" name="contenttype">
|
|
|
|
<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 user_can_use_html]<option[if item_content_type_is "html"] selected[end] value="2">{form_emacs_content_type_html}</option>[end]
|
|
|
|
[if user_can_use_bbcode]<option[if item_content_type_is "bbcode"] selected[end] value="3">{form_emacs_content_type_bbcode}</option>[end]
|
|
|
|
[if user_can_use_other]<option[if item_content_type_is "other"] selected[end] value="4">{form_emacs_content_type_other}</option>[end]
|
|
|
|
</select>
|
|
|
|
</div>
|
2012-10-17 08:00:00 +02:00
|
|
|
</div>
|
2010-08-10 22:43:38 +02:00
|
|
|
|
2010-01-26 20:02:21 +01:00
|
|
|
|
|
|
|
|
2015-03-09 00:22:05 +01:00
|
|
|
[if not user_logged]
|
2021-02-15 19:52:03 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<label class="uk-form-label" for="winix_nick_id">{nick}</label>
|
|
|
|
<div class="uk-form-controls">
|
|
|
|
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
|
|
|
|
</div>
|
2012-10-17 08:00:00 +02:00
|
|
|
</div>
|
2021-02-15 19:52:03 +01:00
|
|
|
|
|
|
|
<div class="uk-margin">
|
|
|
|
<label class="uk-form-label" for="winix_rebus_id">{rebus_how_is_it} [rebus_question]?</label>
|
|
|
|
<div class="uk-form-controls">
|
|
|
|
<input class="uk-input" id="winix_rebus_id" type="text" name="rebus">
|
|
|
|
</div>
|
2012-10-17 08:00:00 +02:00
|
|
|
</div>
|
2018-07-02 13:16:36 +02:00
|
|
|
|
|
|
|
[include "antispam.html"]
|
2010-01-26 20:02:21 +01:00
|
|
|
[end]
|
2010-01-28 16:39:01 +01:00
|
|
|
|
|
|
|
|
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]
|
|
|
|
|
2021-02-15 19:52:03 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<input class="uk-button uk-button-primary" type="submit" value="[if item_is]{form_ticket_edit_submit}[else]{form_ticket_create_submit}[end]">
|
|
|
|
</div>
|
2012-10-17 08:00:00 +02:00
|
|
|
|
|
|
|
|
2010-01-26 20:02:21 +01:00
|
|
|
</form>
|
2012-10-17 08:00:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
</div>
|