Update button style on force password form (#6490)

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
This commit is contained in:
Yuriy Bakhtin 2024-02-07 13:42:52 +01:00 committed by GitHub
parent ec72cca8c3
commit 3a2c870bfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,8 @@
HumHub Changelog
================
1.16.0 (Unreleased)
-------------------
- Fix #6770: Improve migration error messages
@ -57,3 +59,5 @@ HumHub Changelog
- Fix #6810: Top menu on small screens: the previous page remains active when the new page is in the drop-down submenu
- Fix #6830: Wrong view filename after module enabling
- Enh #6838: Fix LDAP encryption labels and allow ignore also part of DNs
- Enh #6490: Update button style on force password form

View File

@ -3,7 +3,6 @@
use humhub\modules\user\models\Password;
use humhub\widgets\Button;
use yii\helpers\Url;
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use humhub\widgets\SiteLogo;
@ -35,11 +34,11 @@ $this->pageTitle = Yii::t('UserModule.auth', 'Change password');
<?= $form->field($model, 'newPasswordConfirm')->passwordInput(['maxlength' => 45]); ?>
<hr>
<?= Html::submitButton(Yii::t('UserModule.auth', 'Confirm'), ['class' => 'btn btn-primary pull-left', 'data-ui-loader' => ""]); ?>
<?= Button::primary(Yii::t('UserModule.auth', 'Confirm'))->submit()->left() ?>
<?php ActiveForm::end(); ?>
<?= Button::danger(Yii::t('UserModule.auth', 'Log out'))->link(Url::toRoute('/user/auth/logout'), false)->options(['data-method' => 'POST'])->right() ?>
<?= Button::defaultType(Yii::t('UserModule.auth', 'Log out'))->link(Url::toRoute('/user/auth/logout'), false)->options(['data-method' => 'POST'])->right() ?>
</div>
</div>