some work in html templates: changed some functions from item_* to item.*

This commit is contained in:
2021-06-20 18:12:43 +02:00
parent 79eda7abb0
commit f35840e7de
35 changed files with 115 additions and 115 deletions

View File

@@ -2,19 +2,19 @@
[# this template is used in fun_editticket.html as well]
[if item_is]<h1>{edit_ticket_header}</h1>[else]<h1>{create_ticket_header}</h1>[end]
[if request.is_item]<h1>{edit_ticket_header}</h1>[else]<h1>{create_ticket_header}</h1>[end]
<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">
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if request.is_item][item.url]/editticket[else]createticket[end]" enctype="multipart/form-data">
<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]">
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[item.subject]">
</div>
</div>
@@ -148,7 +148,7 @@
<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>
<textarea class="uk-textarea" id="winix_content_id" rows="10" cols="60" name="itemcontent">[item.content.content_raw]</textarea>
</div>
</div>
@@ -158,11 +158,11 @@
<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]
<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>
</div>
@@ -193,7 +193,7 @@
[end]
<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]">
<input class="uk-button uk-button-primary" type="submit" value="[if request.is_item]{form_ticket_edit_submit}[else]{form_ticket_create_submit}[end]">
</div>