added uikit markup for adduser winix function

This commit is contained in:
Tomasz Sowa 2021-01-25 17:17:54 +01:00
parent 6afd5c637e
commit 50da49a3ed
3 changed files with 49 additions and 30 deletions

View File

@ -2,39 +2,62 @@
<h1>[if user_logged]{adduser_header_add}[else]{adduser_header_register}[end]</h1>
<form id="additem" method="post" action="[doc_base_url][dir]adduser">
<fieldset>
<legend>{adduser_form_legend}</legend>
<p class="withnext">{adduser_login}:</p>
<input class="edit" type="text" name="login" value="[adduser_last_login]">
<p class="withnext">{adduser_password}:</p>
<input class="edit" type="password" name="password" value="">
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir]adduser">
<p class="withnext">{adduser_confirm_password}:</p>
<input class="edit" type="password" name="passwordconfirm" value="">
<div class="uk-margin">
<label class="uk-form-label" for="winix_adduser_login">{adduser_login}</label>
[if winix_account_need_email_verification]
<p class="withnext">{adduser_need_email}<br>{adduser_need_email2}:</p>
[else]
<p class="withnext">{adduser_email}:</p>
[end]
<input class="edit" type="text" name="email" value="[adduser_last_email]">
<div class="uk-form-controls">
<input class="uk-input" id="winix_adduser_login" type="text" name="login" value="[adduser_last_login]">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_adduser_password">{adduser_password}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_adduser_password" type="password" name="password" value="">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_adduser_confirm_password">{adduser_confirm_password}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_adduser_confirm_password" type="password" name="passwordconfirm" value="">
</div>
</div>
<div class="uk-margin">
[if winix_account_need_email_verification]
<label class="uk-form-label" for="winix_adduser_email">{adduser_need_email}</label>
[else]
<label class="uk-form-label" for="winix_adduser_email">{adduser_email}</label>
[end]
<div class="uk-form-controls">
<input class="uk-input" id="winix_adduser_email" type="text" name="email" value="[adduser_last_email]">
</div>
</div>
[if user_super_user]
<p>
<input type="checkbox" name="autoactivate" id="autoactivate"><label style="display: inline;" for="autoactivate">{adduser_auto_activate}</label>
</p>
<div class="uk-margin">
<div class="uk-form-controls">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="autoactivate" id="autoactivate">{adduser_auto_activate}</label>
</div>
</div>
[end]
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="[if user_logged]{adduser_submit}[else]{register_user_submit}[end]">
</fieldset>
<div class="uk-margin">
<div class="uk-form-controls">
<input class="uk-button uk-button-primary" type="submit" value="[if user_logged]{adduser_submit}[else]{register_user_submit}[end]">
</div>
</div>
</form>
</div>

View File

@ -377,13 +377,11 @@ uptime_days = days
adduser_header_add = Add a user
adduser_header_register = Register
adduser_form_legend = Register user form
adduser_login = Login
adduser_password = Password
adduser_confirm_password = Confirm password
adduser_email = You can also provide your email address. If you ever forget your password we will be able send you the password back.
adduser_need_email = You have to provide your email address.
adduser_need_email2 = We send you an email with an activation link
adduser_need_email = You have to provide your email address. We send you an email with an activation link
adduser_submit = Add user
register_user_submit = Register
adduser_err_login_empty = Provide a login please.

View File

@ -397,13 +397,11 @@ uptime_days = dni
adduser_header_add = Dodaj użytkownika
adduser_header_register = Zarejestruj się
adduser_form_legend = Formularz rejestracji nowego użytkownika
adduser_login = Login
adduser_password = Hasło
adduser_confirm_password = Potwierdź hasło
adduser_email = Możesz także podać swój email. Jeśli zapomnisz kiedyś hasła to hasło zostanie wysłane na podany email
adduser_need_email = Wymagamy abyś podał nam swój adres email,
adduser_need_email2 = na ten adres wyślemy wiadomość z linkiem aktywacyjnym
adduser_need_email = Wymagamy abyś podał nam swój adres email, na ten adres wyślemy wiadomość z linkiem aktywacyjnym.
adduser_submit = Dodaj użytkownika
register_user_submit = Rejestruj
adduser_err_login_empty = Proszę podać login.
@ -418,7 +416,7 @@ adduser_err_password_too_big = Hasło nie może być większe niż
adduser_err_password_too_big2 = znaków
adduser_err_email_too_big = Adres email nie może być większy niż
adduser_err_email_too_big2 = znaków
adduser_auto_activate = Automatically activate this account
adduser_auto_activate = Aktywuj automatycznie to konto
adduser_err_email_incorrect = Podany email jest nieprawidłowy