Change class name
This commit is contained in:
parent
684879d73c
commit
965c973bda
@ -8159,8 +8159,8 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$class = 'title-button' ;
|
$class = 'btnTitle' ;
|
||||||
|
$conf->global->MAIN_USE_NEW_TITLE_BUTTON = 1;
|
||||||
// hidden conf keep during button transition TODO: remove this block
|
// hidden conf keep during button transition TODO: remove this block
|
||||||
if(empty($conf->global->MAIN_USE_NEW_TITLE_BUTTON)){
|
if(empty($conf->global->MAIN_USE_NEW_TITLE_BUTTON)){
|
||||||
$class = 'butActionNew';
|
$class = 'butActionNew';
|
||||||
@ -8176,11 +8176,11 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($status <= 0){
|
if($status <= 0){
|
||||||
$attr['class'] .= ' title-button-refused';
|
$attr['class'] .= ' refused';
|
||||||
|
|
||||||
// hidden conf keep during button transition TODO: remove this block
|
// hidden conf keep during button transition TODO: remove this block
|
||||||
if(empty($conf->global->MAIN_USE_NEW_TITLE_BUTTON)){
|
if(empty($conf->global->MAIN_USE_NEW_TITLE_BUTTON)){
|
||||||
$attr['class'] = 'butActionRefused';
|
$attr['class'] = 'butActionNewRefused';
|
||||||
}
|
}
|
||||||
|
|
||||||
$attr['href'] = '';
|
$attr['href'] = '';
|
||||||
@ -8236,8 +8236,8 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
|
|||||||
|
|
||||||
|
|
||||||
$button ='<'.$tag.' '.$compiledAttributes.' >';
|
$button ='<'.$tag.' '.$compiledAttributes.' >';
|
||||||
$button.= '<span class="'.$iconClass.' valignmiddle"></span>';
|
$button.= '<span class="'.$iconClass.' valignmiddle btnTitle-icon"></span>';
|
||||||
$button.= '<span class="valignmiddle text-plus-circle title-button-label">'.$label.'</span>';
|
$button.= '<span class="valignmiddle text-plus-circle btnTitle-label">'.$label.'</span>';
|
||||||
$button.= '</'.$tag.'>';
|
$button.= '</'.$tag.'>';
|
||||||
|
|
||||||
// hidden conf keep during button transition TODO: remove this block
|
// hidden conf keep during button transition TODO: remove this block
|
||||||
|
|||||||
@ -139,7 +139,7 @@ a.butActionNewRefused>span.fa-plus-circle, a.butActionNewRefused>span.fa-plus-ci
|
|||||||
TITLE BUTTON
|
TITLE BUTTON
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.title-button, a.title-button {
|
.btnTitle, a.btnTitle {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
font-size: 14px
|
font-size: 14px
|
||||||
@ -168,15 +168,15 @@ TITLE BUTTON
|
|||||||
background-color: #fbfbfb;
|
background-color: #fbfbfb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-button > .title-button-icon{
|
.btnTitle > .btnTitle-icon{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-button > .title-button-label{
|
.btnTitle > .btnTitle-label{
|
||||||
color: #666666;
|
color: #666666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-button:hover, a.title-button:hover {
|
.btnTitle:hover, a.btnTitle:hover {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 0 0 0 10px;
|
margin: 0 0 0 10px;
|
||||||
@ -188,22 +188,22 @@ TITLE BUTTON
|
|||||||
box-shadow: none;
|
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;
|
color: #8a8a8a;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
background-color: #fbfbfb;
|
background-color: #fbfbfb;
|
||||||
background: repeating-linear-gradient( 45deg, #ffffff, #f1f1f1 4px, #f1f1f1 4px, #f1f1f1 4px );
|
background: repeating-linear-gradient( 45deg, #ffffff, #f1f1f1 4px, #f1f1f1 4px, #f1f1f1 4px );
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-button:hover .title-button-label{
|
.btnTitle:hover .btnTitle-label{
|
||||||
color: #ffffff;
|
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;
|
color: #8a8a8a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-button>.fa {
|
.btnTitle>.fa {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
@ -213,7 +213,7 @@ TITLE BUTTON
|
|||||||
|
|
||||||
|
|
||||||
<?php if (! empty($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED) && (! $user->admin)) { ?>
|
<?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;
|
display: none !important;
|
||||||
}
|
}
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
Loading…
Reference in New Issue
Block a user