added uikit markup for: createthread, reply, showthreads and thread winix functions

This commit is contained in:
Tomasz Sowa 2021-02-12 18:57:14 +01:00
parent 22a45697fa
commit ae8637d455
15 changed files with 123 additions and 95 deletions

View File

@ -1,4 +1,4 @@
<p class="winix_iteminfo"> <p class="uk-text-meta">
{added_by}: [dir_last_user], [dir_last_date_creation_nice] {added_by}: [dir_last_user], [dir_last_date_creation_nice]
[if not dir_last_dates_equal] [if not dir_last_dates_equal]

View File

@ -6,14 +6,14 @@
[if one [mount_type_is "cms"] [any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]] [if one [mount_type_is "cms"] [any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]]
<div class="uk-margin"> <div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}:</label> <label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls"> <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 item_is]autofocus [end]>
</div> </div>
</div> </div>
<div class="uk-margin"> <div class="uk-margin">
<label class="uk-form-label" for="winix_url_id">{suggested_url}:</label> <label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
<div class="uk-form-controls"> <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>
@ -40,7 +40,7 @@
[if not user_logged] [if not user_logged]
<div class="uk-margin"> <div class="uk-margin">
<label class="uk-form-label" for="winix_nick_id">{nick}:</label> <label class="uk-form-label" for="winix_nick_id">{nick}</label>
<div class="uk-form-controls"> <div class="uk-form-controls">
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]"> <input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
</div> </div>

View File

@ -3,27 +3,40 @@
<h1>{create_thread_header}</h1> <h1>{create_thread_header}</h1>
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir]createthread">
<form id="additem" method="post" action="[doc_base_url][dir]createthread">
<fieldset>
<legend>{form_thread_legend}</legend>
<p class="withnext">{title}:</p> <div class="uk-margin">
<input class="edit" type="text" name="subject" value="[item_subject]"> <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>
</div>
[if thread_mount_arg_is "subject"] [if thread_mount_arg_is "subject"]
<p class="withnext">{suggested_url}:</p> <div class="uk-margin">
<input class="edit" type="text" name="url" value="[item_url]"> <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]">
</div>
</div>
[end] [end]
[include "fun_emacs_post.html"] [include "fun_emacs_post.html"]
[if not user_logged] [if not user_logged]
<p class="withnext">{nick}:</p> <div class="uk-margin">
<input class="edit" type="text" name="guestname" value="[item_guest_name]"> <label class="uk-form-label" for="winix_nick_id">{nick}</label>
<div class="uk-form-controls">
<p class="withnext">{rebus_how_is_it} [rebus_question]?</p> <input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
<input class="edit" type="text" name="rebus"> </div>
</div>
<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>
</div>
[include "antispam.html"] [include "antispam.html"]
[end] [end]
@ -31,9 +44,12 @@
[if winix_function_param_is "postredirect"] [if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]"> <input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end] [end]
<input class="submit" type="submit" value="{button_thread_submit}"> <div class="uk-margin">
</fieldset> <input class="uk-button uk-button-primary" type="submit" value="{button_thread_submit}">
</div>
</form> </form>
</div> </div>

View File

@ -7,14 +7,14 @@
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]emacs"> <form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]emacs">
<div class="uk-margin"> <div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}:</label> <label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls"> <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 item_is]autofocus [end]>
</div> </div>
</div> </div>
<div class="uk-margin"> <div class="uk-margin">
<label class="uk-form-label" for="winix_url_id">{suggested_url}:</label> <label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
<div class="uk-form-controls"> <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>
@ -24,7 +24,7 @@
[if not user_logged] [if not user_logged]
<div class="uk-margin"> <div class="uk-margin">
<label class="uk-form-label" for="winix_nick_id">{nick}:</label> <label class="uk-form-label" for="winix_nick_id">{nick}</label>
<div class="uk-form-controls"> <div class="uk-form-controls">
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]"> <input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
</div> </div>

View File

@ -3,30 +3,37 @@
<h1>{thread_header_reply}</h1> <h1>{thread_header_reply}</h1>
<form method="post" action="[doc_base_url][dir][item_url]/reply"> <form class="uk-form-stacked" method="post" action="[doc_base_url][dir][item_url]/reply">
[if thread_mount_arg_is "subject"] [if thread_mount_arg_is "subject"]
<div class="winix_input_a"> <div class="uk-margin">
<label for="">{title}:</label> <label class="uk-form-label" for="winix_title_id">{title}</label>
<input type="text" name="subject" value=""> <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]>
</div>
</div> </div>
<div class="winix_input_a"> <div class="uk-margin">
<label for="">{suggested_url}:</label> <label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
<input type="text" name="url" value=""> <div class="uk-form-controls">
<input class="uk-input" id="winix_url_id" type="text" name="url" value="[item_url]">
</div>
</div> </div>
[end] [end]
<div class="winix_input_a"> <div class="uk-margin">
[if mount_type_is "thread"]<label for="winix_content_id">{form_emacs_content_thread}</label>[end] [if mount_type_is "thread"]<label for="winix_content_id">{form_emacs_content_thread}</label>[end]
<textarea id="winix_content_id" rows="10" cols="60" name="itemcontent"></textarea>
<div class="uk-form-controls">
<textarea class="uk-textarea" id="winix_content_id" rows="10" cols="60" name="itemcontent"></textarea>
</div>
</div> </div>
<div class="winix_input_a"> <div class="uk-margin">
<label for="">{form_emacs_content_type}</label> <label class="uk-form-label" for="winix_contenttype_id">{form_emacs_content_type}</label>
<select name="contenttype"> <select class="uk-select" name="contenttype" id="winix_contenttype_id">
<option value="0">{form_emacs_content_type_text}</option> <option value="0">{form_emacs_content_type_text}</option>
<option selected value="1">{form_emacs_content_type_formatted_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_html]<option value="2">{form_emacs_content_type_html}</option>[end]
@ -34,20 +41,24 @@
[if user_can_use_other]<option value="4">{form_emacs_content_type_other}</option>[end] [if user_can_use_other]<option value="4">{form_emacs_content_type_other}</option>[end]
</select> </select>
</div> </div>
[if not user_logged] [if not user_logged]
<div class="winix_input_a"> <div class="uk-margin">
<label for="">{nick}:</label> <label class="uk-form-label" for="winix_nick_id">{nick}</label>
<input type="text" name="guestname" value=""> <div class="uk-form-controls">
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
</div>
</div> </div>
<div class="winix_input_a"> <div class="uk-margin">
<label for="">{rebus_how_is_it} [rebus_question]?</p> <label class="uk-form-label" for="winix_rebus_id">{rebus_how_is_it} [rebus_question]?</label>
<input type="text" name="rebus"> <div class="uk-form-controls">
<input class="uk-input" id="winix_rebus_id" type="text" name="rebus">
</div>
</div> </div>
[include "antispam.html"] [include "antispam.html"]
[end] [end]
@ -55,8 +66,10 @@
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]"> <input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end] [end]
<input type="submit" value="{add}"> <div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{add}">
</div>
</form> </form>

View File

@ -3,15 +3,7 @@
<div> <div>
[if mount_page_arg_is "subject"] [if mount_page_arg_is "subject"]
[if mount_page_arg_is "info"] <h1>[item_subject]</h1>
<h1 class="withinfo">
[else]
<h1>
[end]
[item_subject]
</h1>
[end] [end]
[if mount_page_arg_is "info"] [if mount_page_arg_is "info"]

View File

@ -5,22 +5,20 @@
[if thread_can_create] [if thread_can_create]
<div class="winix_itemoptions_b"> <div class="uk-margin">
<ul> <a class="uk-button uk-button-default" href="[doc_base_url][dir]createthread" rel="nofollow">{thread_create_new}</a>
<li><a href="[doc_base_url][dir]createthread" rel="nofollow">{thread_create_new}</a></li>
</ul>
</div> </div>
[end] [end]
[if thread_sort_tab] [if thread_sort_tab]
<table class="winix_forum"> <table class="uk-table uk-table-divider uk-table-small uk-table-responsive">
<tr><th>{thread_tab_title}</th><th>{thread_tab_author}</th><th>{thread_tab_replies}</th><th>{thread_tab_last_post}</th></tr> <tr><th>{thread_tab_title}</th><th>{thread_tab_author}</th><th>{thread_tab_replies}</th><th>{thread_tab_last_post}</th></tr>
[for thread_sort_tab] [for thread_sort_tab]
<tr> <tr>
<td><a href="[doc_base_url][dir][thread_sort_tab_url]">[thread_sort_tab_subject]</a></td> [# dodac sprawdzanie subject empty] <td><a href="[doc_base_url][dir][thread_sort_tab_url]">[thread_sort_tab_subject]</a></td> [# dodac sprawdzanie subject empty]
<td class="smallfont">[thread_sort_tab_user]</td><td class="smallfont">[thread_sort_tab_replies]</td> <td>[thread_sort_tab_user]</td><td class="smallfont">[thread_sort_tab_replies]</td>
<td class="smallfont">[thread_sort_tab_last_item_date_modification_nice] ([thread_sort_tab_last_item_user])</td> <td>[thread_sort_tab_last_item_date_modification_nice] ([thread_sort_tab_last_item_user])</td>
</tr> </tr>
[end] [end]
</table> </table>

View File

@ -1,45 +1,56 @@
<div class="winix"> <div class="winix">
[if mount_page_arg_is "subject"]<h1[if mount_page_arg_is "info"] class="winix_withinfo"[end]>[item_subject]</h1>[end] [if mount_page_arg_is "subject"]<h1[if mount_page_arg_is "info"] class="winix_withinfo"[end]>[item_subject]</h1>[end]
[if false]
[if mount_page_arg_is "info"][include "item_info.html"][end] [if mount_page_arg_is "info"][include "item_info.html"][end]
[if thread_can_reply]
<div class="winix_itemoptions_b">
<ul>
<li><a href="[doc_base_url][dir][item_url]/reply" rel="nofollow">{thread_reply_in_this_thread}</a></li>
</ul>
</div>
[end] [end]
[if not [thread_mount_arg_is "sort_desc"]] [if not [thread_mount_arg_is "sort_desc"]]
<div class="winix_threadbox"> <div class="winix_threadbox">
[if item_can_write]<a class="winix_threadedit" href="[item_link]/emacs" rel="nofollow">\[{edit}\]</a>[end] [if item_can_write]<a class="uk-button uk-button-default uk-button-small" href="[item_link]/emacs" rel="nofollow">{edit}</a>[end]
[if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item_subject]</h2>[end] [if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item_subject]</h2>[end]
[if thread_mount_arg_is "info"][include "item_info.html"][end] [if thread_mount_arg_is "info"][include "item_info.html"][end]
[item_print_content] [item_print_content]
</div> </div>
[end] [end]
[if thread_mount_arg_is "sort_desc"]
[if thread_can_reply]
<div class="uk-margin">
<a class="uk-button uk-button-default" href="[doc_base_url][dir][item_url]/reply" rel="nofollow">{thread_reply_in_this_thread}</a>
</div>
[end]
[end]
[for thread_sort_tab] [for thread_sort_tab]
<div class="winix_threadbox[if index "even"] winix_threadboxcolor[end]"> <div class="uk-margin [if index "odd"]uk-tile-default[else]uk-tile-muted uk-padding-small[end]">
[if thread_sort_tab_can_write]<a class="winix_threadedit" href="[thread_sort_tab_link]/emacs" rel="nofollow">\[{edit}\]</a>[end] [if thread_sort_tab_can_write]<a class="uk-button uk-button-default uk-button-small" href="[thread_sort_tab_link]/emacs" rel="nofollow">{edit}</a>[end]
[if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[thread_sort_tab_subject]</h2>[end] [if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[thread_sort_tab_subject]</h2>[end]
[if thread_mount_arg_is "info"][include "thread_sort_tab_info.html"][end] [if thread_mount_arg_is "info"][include "thread_sort_tab_info.html"][end]
[thread_sort_tab_print_content] [thread_sort_tab_print_content]
</div> </div>
[end] [end]
[if thread_mount_arg_is "sort_desc"] [if thread_mount_arg_is "sort_desc"]
<div class="winix_threadbox"> <div class="winix_threadbox">
[if item_can_write]<a class="winix_threadedit" href="[item_link]/emacs" rel="nofollow">\[{edit}\]</a>[end] [if item_can_write]<a class="uk-button uk-button-default uk-button-small" href="[item_link]/emacs" rel="nofollow">{edit}</a>[end]
[if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item_subject]</h2>[end] [if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item_subject]</h2>[end]
[if thread_mount_arg_is "info"][include "item_info.html"][end] [if thread_mount_arg_is "info"][include "item_info.html"][end]
[item_print_content] [item_print_content]
</div> </div>
[end] [end]
[if not [thread_mount_arg_is "sort_desc"]]
[if thread_can_reply]
<div class="uk-margin">
<a class="uk-button uk-button-default" href="[doc_base_url][dir][item_url]/reply" rel="nofollow">{thread_reply_in_this_thread}</a>
</div>
[end]
[end]
</div> </div>

View File

@ -6,14 +6,14 @@
[if one [mount_type_is "cms"] [any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]] [if one [mount_type_is "cms"] [any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]]
<div class="uk-margin"> <div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}:</label> <label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls"> <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 item_is]autofocus [end]>
</div> </div>
</div> </div>
<div class="uk-margin"> <div class="uk-margin">
<label class="uk-form-label" for="winix_url_id">{suggested_url}:</label> <label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
<div class="uk-form-controls"> <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>
@ -36,7 +36,7 @@
[if not user_logged] [if not user_logged]
<div class="uk-margin"> <div class="uk-margin">
<label class="uk-form-label" for="winix_nick_id">{nick}:</label> <label class="uk-form-label" for="winix_nick_id">{nick}</label>
<div class="uk-form-controls"> <div class="uk-form-controls">
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]"> <input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
</div> </div>

View File

@ -8,14 +8,14 @@
[if one [mount_type_is "cms"] [any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]] [if one [mount_type_is "cms"] [any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]]
<div class="uk-margin"> <div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}:</label> <label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls"> <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 item_is]autofocus [end]>
</div> </div>
</div> </div>
<div class="uk-margin"> <div class="uk-margin">
<label class="uk-form-label" for="winix_url_id">{suggested_url}:</label> <label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
<div class="uk-form-controls"> <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>
@ -40,7 +40,7 @@
[if not user_logged] [if not user_logged]
<div class="uk-margin"> <div class="uk-margin">
<label class="uk-form-label" for="winix_nick_id">{nick}:</label> <label class="uk-form-label" for="winix_nick_id">{nick}</label>
<div class="uk-form-controls"> <div class="uk-form-controls">
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]"> <input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
</div> </div>

View File

@ -1,4 +1,4 @@
<p class="winix_iteminfo"> <p class="uk-text-meta">
{added_by}: [item_user], [item_date_creation_nice][if not item_dates_equal], {added_by}: [item_user], [item_date_creation_nice][if not item_dates_equal],
{last_modified}[if item_users_different] {by}: [item_modification_user],[else]:[end] {last_modified}[if item_users_different] {by}: [item_modification_user],[else]:[end]
[item_date_modification_nice][end] [item_date_modification_nice][end]

View File

@ -1,4 +1,4 @@
<p class="[if index "odd"]winix_itemtabinfo[else][if thread_mount_arg_is "subject"]winix_itemtabinfo[else]winix_itemtabinfo2[end][end]"> <p class="uk-text-meta">
{added_by}: [item_tab_user], [item_tab_date_creation_nice][if not item_tab_dates_equal], {added_by}: [item_tab_user], [item_tab_date_creation_nice][if not item_tab_dates_equal],
{last_modified}[if item_tab_users_different] {by}: [item_tab_modification_user],[else]:[end] {last_modified}[if item_tab_users_different] {by}: [item_tab_modification_user],[else]:[end]

View File

@ -1,4 +1,4 @@
<p class="[if index "even"]winix_itemtabinfo[else][if thread_mount_arg_is "subject"]winix_itemtabinfo[else]winix_itemtabinfo2[end][end]"> <p class="uk-text-meta">
{added_by}: [thread_sort_tab_user], [thread_sort_tab_date_creation_nice][if not thread_sort_tab_dates_equal], {added_by}: [thread_sort_tab_user], [thread_sort_tab_date_creation_nice][if not thread_sort_tab_dates_equal],
{last_modified}[if thread_sort_tab_users_different] {by}: [thread_sort_tab_modification_user],[else]:[end] {last_modified}[if thread_sort_tab_users_different] {by}: [thread_sort_tab_modification_user],[else]:[end]

View File

@ -82,7 +82,6 @@ cat_file_url = File url
create_thread_header = Create thread create_thread_header = Create thread
form_thread_legend = Thread form
button_thread_submit = Create thread button_thread_submit = Create thread
url = Url url = Url

View File

@ -87,7 +87,6 @@ cat_file_url = Adres pliku
create_thread_header = Załóż wątek create_thread_header = Załóż wątek
form_thread_legend = Wypełnij wszystkie pozycje formularza
button_thread_submit = Załóż wątek button_thread_submit = Załóż wątek
url = Url url = Url
@ -152,11 +151,11 @@ ln_make_redirect = "Wykonaj przekierowanie (jedynie dla linków symbolicznych)"
form_emacs_content_cms = Zawartość: form_emacs_content_cms = Zawartość
form_emacs_content_thread = Post: form_emacs_content_thread = Post
form_emacs_content_ticket = Opis: form_emacs_content_ticket = Opis
form_emacs_content_type = Rodzaj wiadomości: form_emacs_content_type = Rodzaj wiadomości
form_emacs_content_type_text = text form_emacs_content_type_text = text
form_emacs_content_type_formatted_text = sformatowany text form_emacs_content_type_formatted_text = sformatowany text