2021-05-31 10:58:34 +02:00
|
|
|
<div class="winix winix-thread-reply">
|
2012-10-17 08:00:00 +02:00
|
|
|
|
2011-01-20 19:37:51 +01:00
|
|
|
<h1>{thread_header_reply}</h1>
|
|
|
|
|
|
|
|
|
2021-06-20 18:12:43 +02:00
|
|
|
[# it would be better to have two 'item' objects: one for item.url and the other for item_content]
|
2021-05-31 10:58:34 +02:00
|
|
|
[# this will be added when ezc will have its own objects templates]
|
2021-06-20 18:12:43 +02:00
|
|
|
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][item.url]/reply" [if winix_has_htmx]hx-post="[doc_base_url][dir][item.url]/reply/scrolldown"[end]>
|
2011-01-20 19:37:51 +01:00
|
|
|
|
2012-10-17 08:00:00 +02:00
|
|
|
[if thread_mount_arg_is "subject"]
|
2021-02-12 18:57:14 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<label class="uk-form-label" for="winix_title_id">{title}</label>
|
|
|
|
<div class="uk-form-controls">
|
2021-06-20 18:12:43 +02:00
|
|
|
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[item.subject]" [if not request.is_item]autofocus [end]>
|
2021-02-12 18:57:14 +01:00
|
|
|
</div>
|
2012-10-17 08:00:00 +02:00
|
|
|
</div>
|
2011-01-20 19:37:51 +01:00
|
|
|
|
2021-02-12 18:57:14 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
|
|
|
|
<div class="uk-form-controls">
|
2021-06-20 18:12:43 +02:00
|
|
|
<input class="uk-input" id="winix_url_id" type="text" name="url" value="[item.url]">
|
2021-02-12 18:57:14 +01:00
|
|
|
</div>
|
2012-10-17 08:00:00 +02:00
|
|
|
</div>
|
2011-01-20 19:37:51 +01:00
|
|
|
[end]
|
2021-02-12 18:57:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
<div class="uk-margin">
|
|
|
|
[if mount_type_is "thread"]<label for="winix_content_id">{form_emacs_content_thread}</label>[end]
|
|
|
|
|
|
|
|
<div class="uk-form-controls">
|
2021-06-20 18:12:43 +02:00
|
|
|
<textarea class="uk-textarea" id="winix_content_id" rows="10" cols="60" name="itemcontent">[item.content.content_raw]</textarea>
|
2021-02-12 18:57:14 +01:00
|
|
|
</div>
|
2012-10-17 08:00:00 +02:00
|
|
|
</div>
|
2021-02-12 18:57:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
<div class="uk-margin">
|
|
|
|
<label class="uk-form-label" for="winix_contenttype_id">{form_emacs_content_type}</label>
|
|
|
|
<select class="uk-select" name="contenttype" id="winix_contenttype_id">
|
2011-01-20 19:37:51 +01:00
|
|
|
<option value="0">{form_emacs_content_type_text}</option>
|
|
|
|
<option selected value="1">{form_emacs_content_type_formatted_text}</option>
|
|
|
|
[if user_can_use_html]<option value="2">{form_emacs_content_type_html}</option>[end]
|
|
|
|
[if user_can_use_bbcode]<option value="3">{form_emacs_content_type_bbcode}</option>[end]
|
2016-07-13 15:13:56 +02:00
|
|
|
[if user_can_use_other]<option value="4">{form_emacs_content_type_other}</option>[end]
|
2011-01-20 19:37:51 +01:00
|
|
|
</select>
|
2012-10-17 08:00:00 +02:00
|
|
|
</div>
|
2021-02-12 18:57:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2015-03-09 00:22:05 +01:00
|
|
|
[if not user_logged]
|
2021-02-12 18:57:14 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<label class="uk-form-label" for="winix_nick_id">{nick}</label>
|
|
|
|
<div class="uk-form-controls">
|
2021-06-20 18:12:43 +02:00
|
|
|
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item.content.guest_name]">
|
2021-02-12 18:57:14 +01:00
|
|
|
</div>
|
2012-10-17 08:00:00 +02:00
|
|
|
</div>
|
2021-02-12 18:57:14 +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>
|
2021-02-12 18:57:14 +01:00
|
|
|
|
2018-07-02 13:16:36 +02:00
|
|
|
[include "antispam.html"]
|
2011-01-20 19:37:51 +01:00
|
|
|
[end]
|
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-12 18:57:14 +01:00
|
|
|
|
|
|
|
<div class="uk-margin">
|
|
|
|
<input class="uk-button uk-button-primary" type="submit" value="{add}">
|
|
|
|
</div>
|
2012-10-17 08:00:00 +02:00
|
|
|
|
2011-01-20 19:37:51 +01:00
|
|
|
</form>
|
|
|
|
|
2012-10-17 08:00:00 +02:00
|
|
|
</div>
|
2021-05-31 10:58:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
<div class="winix-fake-div"></div>
|
|
|
|
|
|
|
|
[if any winix_has_htmx winix_is_htmx_request winix_has_uikit]
|
|
|
|
<script>
|
|
|
|
[# how does it work?]
|
|
|
|
UIkit.scroll(".winix-fake-div").scrollTo(".winix-thread-reply");
|
|
|
|
</script>
|
|
|
|
[end]
|
|
|
|
|