diff options
| author | 2021-11-11 20:07:10 +0100 | |
|---|---|---|
| committer | 2021-11-11 20:07:10 +0100 | |
| commit | a29894610ba5021a998389e2d72b0756b564574a (patch) | |
| tree | edf281d11a8a45b0e05cd48626a3224a9679d7ac /app | |
| parent | 079b7b961f0eb152debc2e8df3ff99d6e59fe070 (diff) | |
a to button (#3969)
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/auth/formLogin.phtml | 2 | ||||
| -rw-r--r-- | app/views/auth/register.phtml | 2 | ||||
| -rw-r--r-- | app/views/feed/add.phtml | 2 | ||||
| -rw-r--r-- | app/views/helpers/feed/update.phtml | 2 | ||||
| -rw-r--r-- | app/views/subscription/add.phtml | 2 | ||||
| -rw-r--r-- | app/views/user/manage.phtml | 2 | ||||
| -rw-r--r-- | app/views/user/profile.phtml | 7 |
7 files changed, 11 insertions, 8 deletions
diff --git a/app/views/auth/formLogin.phtml b/app/views/auth/formLogin.phtml index 0f3910a3c..05a73f39e 100644 --- a/app/views/auth/formLogin.phtml +++ b/app/views/auth/formLogin.phtml @@ -18,7 +18,7 @@ <label for="passwordPlain"><?= _t('gen.auth.password') ?></label> <div class="stick"> <input type="password" id="passwordPlain" required="required" /> - <a class="btn toggle-password" data-toggle="passwordPlain"><?= _i('key') ?></a> + <button type="button" class="btn toggle-password" data-toggle="passwordPlain"><?= _i('key') ?></button> </div> <input type="hidden" id="challenge" name="challenge" /> <noscript><strong><?= _t('gen.js.should_be_activated') ?></strong></noscript> diff --git a/app/views/auth/register.phtml b/app/views/auth/register.phtml index 96794d8b2..3300896e6 100644 --- a/app/views/auth/register.phtml +++ b/app/views/auth/register.phtml @@ -34,7 +34,7 @@ <label for="new_user_passwordPlain"><?= _t('gen.auth.password') ?></label> <div class="stick"> <input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" required="required" autocomplete="new-password" pattern=".{7,}" /> - <a class="btn toggle-password" data-toggle="new_user_passwordPlain"><?= _i('key') ?></a> + <button type="button" class="btn toggle-password" data-toggle="new_user_passwordPlain"><?= _i('key') ?></button> </div> <noscript><b><?= _t('gen.js.should_be_activated') ?></b></noscript> <p class="help"><?= _i('help') ?> <?= _t('gen.auth.password.format') ?></p> diff --git a/app/views/feed/add.phtml b/app/views/feed/add.phtml index a585fcedc..2c9c13345 100644 --- a/app/views/feed/add.phtml +++ b/app/views/feed/add.phtml @@ -76,7 +76,7 @@ <div class="group-controls"> <div class="stick"> <input type="password" name="http_pass" id="http_pass" class="extend" value="<?= $auth['password'] ?>" autocomplete="new-password" /> - <a class="btn toggle-password" data-toggle="http_user"><?= _i('key') ?></a> + <button type="button" class="btn toggle-password" data-toggle="http_user"><?= _i('key') ?></button> </div> </div> </div> diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml index 50a9ac9cc..703de3202 100644 --- a/app/views/helpers/feed/update.phtml +++ b/app/views/helpers/feed/update.phtml @@ -143,7 +143,7 @@ <div class="stick"> <input type="password" name="http_pass_feed<?= $this->feed->id() ?>" id="http_pass_feed<?= $this->feed->id() ?>" value="<?= $auth['password'] ?>" autocomplete="new-password" /> - <a class="btn toggle-password" data-toggle="http_pass_feed<?= $this->feed->id() ?>"><?= _i('key') ?></a> + <button type="button" class="btn toggle-password" data-toggle="http_pass_feed<?= $this->feed->id() ?>"><?= _i('key') ?></button> </div> </div> </div> diff --git a/app/views/subscription/add.phtml b/app/views/subscription/add.phtml index 72abbeb30..04add0b4f 100644 --- a/app/views/subscription/add.phtml +++ b/app/views/subscription/add.phtml @@ -65,7 +65,7 @@ <div class="group-controls"> <div class="stick"> <input id="http_pass" name="http_pass" type="password" value="" autocomplete="new-password" /> - <a class="btn toggle-password" data-toggle="http_pass"><?= _i('key') ?></a> + <button type="button" class="btn toggle-password" data-toggle="http_pass"><?= _i('key') ?></button> </div> </div> </div> diff --git a/app/views/user/manage.phtml b/app/views/user/manage.phtml index 0c796b63f..3da4cf299 100644 --- a/app/views/user/manage.phtml +++ b/app/views/user/manage.phtml @@ -60,7 +60,7 @@ <div class="group-controls"> <div class="stick"> <input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" autocomplete="new-password" pattern=".{7,}" /> - <a class="btn toggle-password" data-toggle="new_user_passwordPlain"><?= _i('key') ?></a> + <button type="button" class="btn toggle-password" data-toggle="new_user_passwordPlain"><?= _i('key') ?></button> </div> <p class="help"><?= _i('help') ?> <?= _t('admin.user.password_format') ?></p> <noscript><b><?= _t('gen.js.should_be_activated') ?></b></noscript> diff --git a/app/views/user/profile.phtml b/app/views/user/profile.phtml index 7a4beb679..a7f38e69d 100644 --- a/app/views/user/profile.phtml +++ b/app/views/user/profile.phtml @@ -44,7 +44,7 @@ <div class="stick"> <input type="password" id="newPasswordPlain" name="newPasswordPlain" autocomplete="new-password" pattern=".{7,}" <?= cryptAvailable() ? '' : 'disabled="disabled" ' ?>/> - <a class="btn toggle-password" data-toggle="newPasswordPlain"><?= _i('key') ?></a> + <button type="button" class="btn toggle-password" data-toggle="newPasswordPlain"><?= _i('key') ?></button> </div> <p class="help"><?= _i('help') ?> <?= _t('conf.profile.password_format') ?></p> <noscript><b><?= _t('gen.js.should_be_activated') ?></b></noscript> @@ -84,7 +84,7 @@ <div class="stick"> <input type="password" id="apiPasswordPlain" name="apiPasswordPlain" autocomplete="new-password" pattern=".{7,}" <?= cryptAvailable() ? '' : 'disabled="disabled" ' ?>/> - <a class="btn toggle-password" data-toggle="apiPasswordPlain"><?= _i('key') ?></a> + <button type="button" class="btn toggle-password" data-toggle="apiPasswordPlain"><?= _i('key') ?></button> </div> <p class="help"><?= _i('help') ?> <kbd><a href="../api/"><?= Minz_Url::display('/api/', 'html', true) ?></a></kbd></p> </div> @@ -109,7 +109,10 @@ <div class="form-group"> <label class="group-name" for="passwordPlain"><?= _t('gen.auth.password') ?></label> <div class="group-controls"> + <div class="stick"> <input type="password" id="passwordPlain" required="required" /> + <button type="button" class="btn toggle-password" data-toggle="passwordPlain"><?= _i('key') ?></button> + </div> <input type="hidden" id="challenge" name="challenge" /><br /> <noscript><strong><?= _t('gen.js.should_be_activated') ?></strong></noscript> </div> |
