mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 12:17:42 +02:00
UI Improvements - Users Client Side - Fixes #194
This commit is contained in:
@@ -4,22 +4,33 @@
|
||||
<?php if (Notification::get('success')) Alert::success(Notification::get('success')); ?>
|
||||
<?php if (Notification::get('error')) Alert::success(Notification::get('error')); ?>
|
||||
|
||||
<form method="post">
|
||||
<?php
|
||||
echo (Form::hidden('csrf', Security::token()));
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<form method="post">
|
||||
|
||||
<label><?php echo __('Username', 'users'); ?></label><input type="text" value="<?php echo $user_login; ?>" name="login" class="input-large">
|
||||
<?php
|
||||
<?php echo (Form::hidden('csrf', Security::token())); ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label><?php echo __('Username', 'users'); ?></label>
|
||||
<input type="text" value="<?php echo $user_login; ?>" name="login" class="form-control">
|
||||
<?php
|
||||
if (isset($errors['users_user_doesnt_exists'])) echo Html::nbsp(3).'<span class="error">'.$errors['users_user_doesnt_exists'].'</span>';
|
||||
if (isset($errors['users_empty_field'])) echo Html::nbsp(3).'<span class="error">'.$errors['users_empty_field'].'</span>';
|
||||
?>
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php if (Option::get('captcha_installed') == 'true') { ?>
|
||||
<label><?php echo __('Captcha', 'users'); ?></label>
|
||||
<input type="text" name="answer" class="input-large"><?php if (isset($errors['users_captcha_wrong'])) echo Html::nbsp(3).'<span class="error">'.$errors['users_captcha_wrong'].'</span>'; ?>
|
||||
<?php CryptCaptcha::draw(); ?>
|
||||
<?php } ?>
|
||||
<?php if (Option::get('captcha_installed') == 'true') { ?>
|
||||
<div class="form-group">
|
||||
<label><?php echo __('Captcha', 'users'); ?></label>
|
||||
<input type="text" name="answer" class="form-control"><?php if (isset($errors['users_captcha_wrong'])) echo Html::nbsp(3).'<span class="error">'.$errors['users_captcha_wrong'].'</span>'; ?>
|
||||
<br>
|
||||
<?php CryptCaptcha::draw(); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<br><input type="submit" class="btn" value="<?php echo __('Send New Password', 'users'); ?>" name="reset_password_submit">
|
||||
</form>
|
||||
<div class="form-group">
|
||||
<input type="submit" class="btn btn-primary" value="<?php echo __('Send New Password', 'users'); ?>" name="reset_password_submit">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user