1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00
freshrss_ynh/sources/app/views/auth/reset.phtml

34 lines
1.3 KiB
PHTML
Raw Normal View History

2014-09-27 10:10:43 +02:00
<div class="prompt">
2015-02-08 18:55:48 +01:00
<h1><?php echo _t('gen.auth.reset'); ?></h1>
2014-09-27 10:10:43 +02:00
<?php if (!empty($this->message)) { ?>
<p class="alert <?php echo $this->message['status'] === 'bad' ? 'alert-error' : 'alert-warn'; ?>">
<span class="alert-head"><?php echo $this->message['title']; ?></span><br />
<?php echo $this->message['body']; ?>
</p>
<?php } ?>
<?php if (!$this->no_form) { ?>
2015-02-08 18:55:48 +01:00
<form id="crypto-form" method="post" action="<?php echo _url('auth', 'reset'); ?>">
2014-09-27 10:10:43 +02:00
<p class="alert alert-warn">
2015-02-08 18:55:48 +01:00
<span class="alert-head"><?php echo _t('gen.short.attention'); ?></span><br />
<?php echo _t('gen.auth.will_reset'); ?>
2014-09-27 10:10:43 +02:00
</p>
<div>
2015-11-06 16:54:20 +01:00
<label for="username"><?php echo _t('gen.auth.username.admin'); ?></label>
2014-09-27 10:10:43 +02:00
<input type="text" id="username" name="username" size="16" required="required" maxlength="16" pattern="[0-9a-zA-Z]{1,16}" autofocus="autofocus" />
</div>
<div>
2015-02-08 18:55:48 +01:00
<label for="passwordPlain"><?php echo _t('gen.auth.password'); ?></label>
2014-09-27 10:10:43 +02:00
<input type="password" id="passwordPlain" required="required" />
<input type="hidden" id="challenge" name="challenge" /><br />
2015-02-08 18:55:48 +01:00
<noscript><strong><?php echo _t('gen.js.should_be_activated'); ?></strong></noscript>
2014-09-27 10:10:43 +02:00
</div>
<div>
2015-02-08 18:55:48 +01:00
<button id="loginButton" type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
2014-09-27 10:10:43 +02:00
</div>
</form>
<?php } ?>
</div>