Skip to content
Snippets Groups Projects
Commit 714ab974 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

icon classes replaced by getIcon()

parent 704f5302
No related branches found
No related tags found
1 merge request!62V2.0
......@@ -169,6 +169,8 @@ class htmlguielements{
'waiting'=>'fas fa-clock',
'user'=>'fas fa-user',
'user-profile'=>'fa-regular fa-id-card',
'user-group'=>'fa-regular fa-bookmark',
'user-permission'=>'fa-solid fa-caret-right',
'workflow'=>'fas fa-angle-double-right',
'repository'=>'fas fa-database',
......@@ -199,8 +201,11 @@ class htmlguielements{
'file-target'=>'fas fa-file-upload',
'replace'=>'fas fa-random',
'sign-info'=>'fas fa-info-circle',
'sign-warning'=>'',
'box-up'=>'fa-chevron-up',
'box-down'=>'fa-chevron-down',
'sign-info'=>'fa-solid fa-info',
'sign-warning'=>'fa-solid fa-exclamation',
'sign-error'=>'fas fa-bolt',
'sign-ok'=>'fas fa-check',
),
......
......@@ -287,7 +287,7 @@ class projectgui extends project {
$sReturn = '<a href="#" class="btn ' . ($bIsError ? 'btn-danger' : 'btn-default') . '" title=""
onclick="showIdAsModalMessage(\'' . $sId . '\', \''.$sTitle.'\'); return false;"
>'
// . '<i class="fa fa-info"></i> '
. $this->_oHtml->getIcon($bIsError ? 'sign-error' : 'sign-info') // ... '<i class="fa fa-info"></i> '
. $sLinktitle
. '</a><div id="' . $sId . '" style="display: none;" '
;
......
......@@ -54,11 +54,11 @@ if ($oUser->getUsername()) {
// ------------------------------------------------------------
$sGrouplist='';
foreach ($oUser->getUserGroups() as $sGroupname){
$sGrouplist.='<i class="fa-regular fa-bookmark"></i> ' . $sGroupname . '<br>';
$sGrouplist.=$oHtml->getIcon('user-group').$sGroupname . '<br>';
}
$sPermlist='';
foreach ($oUser->getUserPermission() as $sPerm){
$sPermlist.='<i class="fa-solid fa-caret-right"></i> ' . $sPerm . '<br>';
$sPermlist.=$oHtml->getIcon('user-permission').$sPerm . '<br>';
}
$sOut.=''
......
......@@ -65,11 +65,11 @@ if ($sPhase) {
if(count($aReplacements)>1){
$sOutReplace.=$oHtml->getLinkButton(array(
'onclick'=>'$(\'.divfileinfos\').slideDown(); $(\'.expandable\').removeClass(\'closed\'); this.blur(); return false;',
'icon'=>'fa-chevron-down',
'icon'=>$oHtml->getIconClass('box-down'),
))
.$oHtml->getLinkButton(array(
'onclick'=>'$(\'.divfileinfos\').slideUp(); $(\'.expandable\').addClass(\'closed\'); this.blur(); return false;',
'icon'=>'fa-chevron-up',
'icon'=>$oHtml->getIconClass('box-up'),
))
;
}
......@@ -208,7 +208,7 @@ if ($sPhase) {
$oHtml->getLink(array(
'onclick'=>'$(\'#'.$sDivIdFile.'\').slideToggle(); $(this).toggleClass(\'closed\'); return false;',
'class'=>'expandable closed',
'icon'=>'fa-warning',
'icon'=>$oHtml->getIconClass('sign-warning'),
'label'=>$sForemanTemplate,
)) . '</h4>'
. '<div id="'.$sDivIdFile.'" class="divfileinfos" style="display: none;">'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment