N°4283 - AttributeOneWayPassword: Fix spacing between the fields / button

This commit is contained in:
Molkobain
2021-11-19 17:40:48 +01:00
parent 5128db05cf
commit 2f114701a1
5 changed files with 24 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ class UIPasswordWidget
$sConfirmPasswordValue = $aPasswordValues ? $aPasswordValues['confirm'] : '*****';
$sChangedValue = (($sPasswordValue != '*****') || ($sConfirmPasswordValue != '*****')) ? 1 : 0;
$sHtmlValue = '';
$sHtmlValue .= '<div class="field_input_zone field_input_onewaypassword ibo-input-wrapper">';
$sHtmlValue .= '<div class="field_input_zone field_input_onewaypassword ibo-input-wrapper ibo-input-one-way-password-wrapper">';
$sHtmlValue .= '<input class="ibo-input" type="password" maxlength="255" name="attr_'.$sCode.'[value]" id="'.$this->iId.'" value="'.htmlentities($sPasswordValue, ENT_QUOTES, 'UTF-8').'"/>';
$sHtmlValue .= '<div class="ibo-input-wrapper ibo-input-wrapper--with-buttons"><input class="ibo-input" type="password" maxlength="255" id="'.$this->iId.'_confirm" value="'.htmlentities($sConfirmPasswordValue, ENT_QUOTES, 'UTF-8').'" name="attr_'.$sCode.'[confirm]"/>';
$sHtmlValue .= '<div class="ibo-input-select--action-buttons"><div class="ibo-input-select--action-button ibo-input-select--action-button--create" data-tooltip-content="'.Dict::S('UI:PasswordConfirm').'"><i class="fas fa-question-circle"></i></div></div></div>';

View File

@@ -13,5 +13,6 @@
@import "input-select";
@import "input-select-icon";
@import "input-string";
@import "input-one-way-password";
@import "input-set";
@import "input-text";

View File

@@ -0,0 +1,12 @@
/*!
* @copyright Copyright (C) 2010-2021 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
$ibo-input-one-way-password--element-spacing-y: 6px !default;
.ibo-input-one-way-password-wrapper {
> *:not(first-child) {
margin-top: $ibo-input-one-way-password--element-spacing-y;
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long