some work in html templates: changed some functions from item_* to item.*
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
<div class="winix">
|
||||
|
||||
[if item_is]<h1>{edit}</h1>[else]<h1>{add}</h1>[end]
|
||||
[if request.is_item]<h1>{edit}</h1>[else]<h1>{add}</h1>[end]
|
||||
|
||||
|
||||
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]nicedit">
|
||||
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if request.is_item][item.url]/[end]nicedit">
|
||||
|
||||
[if one [mount_type_is "cms"] [any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]]
|
||||
<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]" [if not item_is]autofocus [end]>
|
||||
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[item.subject]" [if not request.is_item]autofocus [end]>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-margin">
|
||||
<label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
|
||||
<div class="uk-form-controls">
|
||||
<input class="uk-input" id="winix_url_id" type="text" name="url" value="[item_url]">
|
||||
<input class="uk-input" id="winix_url_id" type="text" name="url" value="[item.url]">
|
||||
</div>
|
||||
</div>
|
||||
[end]
|
||||
@@ -27,7 +27,7 @@
|
||||
[if mount_type_is "ticket"]<label class="uk-form-label" for="winix_content_id">{form_emacs_content_ticket}</label>[end]
|
||||
|
||||
<div class="uk-form-controls">
|
||||
<textarea class="uk-textarea" rows="[if mount_type_is "cms"]30[else]10[end]" cols="60" name="itemcontent" id="winix_nicedit">[item_content]</textarea>
|
||||
<textarea class="uk-textarea" rows="[if mount_type_is "cms"]30[else]10[end]" cols="60" name="itemcontent" id="winix_nicedit">[item.content.content_raw]</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
[end]
|
||||
|
||||
<div class="uk-margin">
|
||||
<input class="uk-button uk-button-primary" type="submit" value="[if item_is]{change}[else]{add}[end]">
|
||||
<input class="uk-button uk-button-primary" type="submit" value="[if request.is_item]{change}[else]{add}[end]">
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
Reference in New Issue
Block a user