added uikit markup for cp winix function

WIP: #2
This commit is contained in:
Tomasz Sowa 2021-01-26 16:52:11 +01:00
parent 572afd360a
commit 56d53a455d
3 changed files with 39 additions and 27 deletions

View File

@ -2,38 +2,52 @@
<h1>{cp_header}</h1>
<p>
[if item_is]{cp_page} [item_url] [else]{cp_dir} [dir_without_slash][end]
</p>
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]cp[if not item_is]/r[end]">
<fieldset>
<legend>{cp_form_legend}</legend>
<p>
[if item_is]{cp_page} "[item_url]":[else]{cp_dir} "[dir_without_slash]"[end]
</p>
<p class="withnext">{suggested_url}</p>
<input class="edit" type="text" name="to" value="[dir_without_slash][if item_is]/[item_url][end]">
<p>
<label><input type="checkbox" name="preserveattr">{cp_preserve_attr}</label>
[if not item_is]
<label><input type="checkbox" name="onlycontent">{cp_only_content}</label>
<label><input type="checkbox" name="removedefaults" checked="checked">{cp_remove_defaults}</label>
<label><input type="checkbox" name="followsymlinks" checked="checked">{cp_follow_symlinks}</label>
[end]
</p>
<form class="uk-form-stacked uk-width-1-2@s" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]cp[if not item_is]/r[end]">
<div class="uk-margin">
<label class="uk-form-label" for="winix_url">{suggested_url}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_url" type="text" name="to" value="[dir_without_slash][if item_is]/[item_url][end]">
</div>
</div>
<div class="uk-margin">
<div class="uk-margin-small-top">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="preserveattr">{cp_preserve_attr}</label>
</div>
[if not item_is]
<div class="uk-margin-small-top">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="onlycontent">{cp_only_content}</label>
</div>
<div class="uk-margin-small-top">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="removedefaults" checked="checked">{cp_remove_defaults}</label>
</div>
<div class="uk-margin-small-top">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="followsymlinks" checked="checked">{cp_follow_symlinks}</label>
</div>
[end]
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{copy}">
</fieldset>
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{copy}">
</div>
</form>
</div>

View File

@ -426,7 +426,6 @@ timezone_your_zone = Your current time zone is
timezone_has_incorrect_id = You don't have a correct time zone set
cp_header = Copy
cp_form_legend = Copy form
cp_page = Copy page
cp_dir = Copy directory
cp_only_content = Copy only content of the directory

View File

@ -447,7 +447,6 @@ timezone_has_incorrect_id = Nie masz prawidłowo ustawionej strefy czasowej
cp_header = Kopiuj
cp_form_legend = Formularz kopiowania
cp_page = Kopiuj stronę
cp_dir = Kopiuj katalog
cp_only_content = Kopiuj tylko zawartość katalogu