Change class name

This commit is contained in:
ATM john 2019-04-16 22:02:23 +02:00
parent 684879d73c
commit 965c973bda
2 changed files with 15 additions and 15 deletions

View File

@ -8159,8 +8159,8 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
return '';
}
$class = 'title-button' ;
$class = 'btnTitle' ;
$conf->global->MAIN_USE_NEW_TITLE_BUTTON = 1;
// hidden conf keep during button transition TODO: remove this block
if(empty($conf->global->MAIN_USE_NEW_TITLE_BUTTON)){
$class = 'butActionNew';
@ -8176,11 +8176,11 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
}
if($status <= 0){
$attr['class'] .= ' title-button-refused';
$attr['class'] .= ' refused';
// hidden conf keep during button transition TODO: remove this block
if(empty($conf->global->MAIN_USE_NEW_TITLE_BUTTON)){
$attr['class'] = 'butActionRefused';
$attr['class'] = 'butActionNewRefused';
}
$attr['href'] = '';
@ -8236,8 +8236,8 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
$button ='<'.$tag.' '.$compiledAttributes.' >';
$button.= '<span class="'.$iconClass.' valignmiddle"></span>';
$button.= '<span class="valignmiddle text-plus-circle title-button-label">'.$label.'</span>';
$button.= '<span class="'.$iconClass.' valignmiddle btnTitle-icon"></span>';
$button.= '<span class="valignmiddle text-plus-circle btnTitle-label">'.$label.'</span>';
$button.= '</'.$tag.'>';
// hidden conf keep during button transition TODO: remove this block

View File

@ -139,7 +139,7 @@ a.butActionNewRefused>span.fa-plus-circle, a.butActionNewRefused>span.fa-plus-ci
TITLE BUTTON
*/
.title-button, a.title-button {
.btnTitle, a.btnTitle {
display: inline-block;
padding: 6px 12px;
font-size: 14px
@ -168,15 +168,15 @@ TITLE BUTTON
background-color: #fbfbfb;
}
.title-button > .title-button-icon{
.btnTitle > .btnTitle-icon{
}
.title-button > .title-button-label{
.btnTitle > .btnTitle-label{
color: #666666;
}
.title-button:hover, a.title-button:hover {
.btnTitle:hover, a.btnTitle:hover {
border-radius: 3px;
position: relative;
margin: 0 0 0 10px;
@ -188,22 +188,22 @@ TITLE BUTTON
box-shadow: none;
}
.title-button.title-button-refused, a.title-button.title-button-refused, .title-button.title-button-refused:hover, a.title-button.title-button-refused:hover {
.btnTitle.refused, a.btnTitle.refused, .btnTitle.refused:hover, a.btnTitle.refused:hover {
color: #8a8a8a;
cursor: not-allowed;
background-color: #fbfbfb;
background: repeating-linear-gradient( 45deg, #ffffff, #f1f1f1 4px, #f1f1f1 4px, #f1f1f1 4px );
}
.title-button:hover .title-button-label{
.btnTitle:hover .btnTitle-label{
color: #ffffff;
}
.title-button.title-button-refused .title-button-label, .title-button.title-button-refused:hover .title-button-label{
.btnTitle.refused .btnTitle-label, .btnTitle.refused:hover .btnTitle-label{
color: #8a8a8a;
}
.title-button>.fa {
.btnTitle>.fa {
font-size: 20px;
display: block;
}
@ -213,7 +213,7 @@ TITLE BUTTON
<?php if (! empty($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED) && (! $user->admin)) { ?>
.butActionRefused, .butActionNewRefused, .title-button.title-button-refused {
.butActionRefused, .butActionNewRefused, .btnTitle.refused {
display: none !important;
}
<?php } ?>