Unverified Commit 3f272ccc authored by Johan Cwiklinski's avatar Johan Cwiklinski Committed by GitHub

Change icons (#5249)

* Replace icons

Icon for group on task editor
Replace the group pic by the fa users icon
Icon for planning availability
Replace the pic by the fa icon for the planning availability on task editor
Icon for calendar
icon replace the image for planning check on task editor

* Replace all occurrences, remove images
parent 8e81b3d5
......@@ -46,10 +46,9 @@ Session::checkLoginUser();
if (isset($_POST['users_id']) && ($_POST['users_id'] > 0)) {
$rand = mt_rand();
echo " <a href='#' onClick=\"".Html::jsGetElementbyID('planningcheck'.$rand).".dialog('open');return false;\">";
echo "<img src='".$CFG_GLPI["root_doc"]."/pics/reservation-3.png'
title=\"".__s('Availability')."\" alt=\"".__s('Availability')."\"
class='calendrier'>";
echo "<a href='#' title=\"".__s('Availability')."\" onClick=\"".Html::jsGetElementbyID('planningcheck'.$rand).".dialog('open'); return false;\">";
echo "<i class='far fa-calendar-alt'></i>";
echo "<span class='sr-only'>".__('Availability')."</span>";
echo "</a>";
Ajax::createIframeModalWindow('planningcheck'.$rand,
$CFG_GLPI["root_doc"].
......
......@@ -3542,8 +3542,9 @@ abstract class CommonITILObject extends CommonDBTM {
$icontitle = __s('Group in charge of the ticket');
break;
}
return "<img src='".$CFG_GLPI['root_doc']."/pics/group.png'
alt=\"$icontitle\" title=\"$icontitle\">";
return "<i class='fas fa-users' title='$icontitle'></i>" .
"<span class='sr-only'>$icontitle</span>";
case 'supplier' :
$icontitle = __('Supplier');
......@@ -6650,7 +6651,7 @@ abstract class CommonITILObject extends CommonDBTM {
if (isset($item_i['groups_id_tech']) && ($item_i['groups_id_tech'] > 0)) {
echo "<div class='groups_id_tech'>";
$group->getFromDB($item_i['groups_id_tech']);
echo Html::image($CFG_GLPI['root_doc']."/pics/group.png")."&nbsp;";
echo "<i class='fas fa-users' aria-hidden='true'></i>&nbsp;";
echo $group->getLink()."&nbsp;";
echo Html::showToolTip($group->getComments(),
['link' => $group->getLinkURL()]);
......
......@@ -1532,10 +1532,9 @@ abstract class CommonITILTask extends CommonDBTM {
'url' => $CFG_GLPI["root_doc"]."/ajax/planningcheck.php"];
User::dropdown($params);
echo " <a href='#' onClick=\"".Html::jsGetElementbyID('planningcheck'.$rand).".dialog('open'); return false;\">";
echo "&nbsp;<img src='".$CFG_GLPI["root_doc"]."/pics/reservation-3.png'
title=\"".__s('Availability')."\" alt=\"".__s('Availability')."\"
class='calendrier'>";
echo " <a href='#' title=\"".__s('Availability')."\" onClick=\"".Html::jsGetElementbyID('planningcheck'.$rand).".dialog('open'); return false;\">";
echo "&nbsp;<i class='far fa-calendar-alt'></i>";
echo "<span class='sr-only'>".__('Availability')."</span>";
echo "</a>";
Ajax::createIframeModalWindow('planningcheck'.$rand,
$CFG_GLPI["root_doc"].
......@@ -1544,7 +1543,7 @@ abstract class CommonITILTask extends CommonDBTM {
['title' => __('Availability')]);
echo "<br />";
echo Html::image($CFG_GLPI['root_doc']."/pics/group.png")."&nbsp;";
echo "<i class='fas fa-users' aria-hidden='true'></i>&nbsp;";
echo _n('Group', 'Groups', 1)."&nbsp;";
$params = [
'name' => "groups_id_tech",
......
......@@ -1124,7 +1124,8 @@ class Reservation extends CommonDBChild {
echo "<a href='".$CFG_GLPI["root_doc"]."/front/reservation.php?reservationitems_id=".
$ri->fields['id']."&amp;mois_courant=$mois&amp;annee_courante=$annee' title=\"".
__s('See planning')."\">";
echo "<img src=\"".$CFG_GLPI["root_doc"]."/pics/reservation-3.png\" alt=''>".
echo "<i class='far fa-calendar-alt'></i>";
echo "<span class='sr-only'>".__('See planning')."</span>";
"</a>";
} else {
echo "&nbsp;";
......@@ -1183,7 +1184,8 @@ class Reservation extends CommonDBChild {
echo "<a href='".$CFG_GLPI["root_doc"]."/front/reservation.php?reservationitems_id=".
$ri->fields['id']."&amp;mois_courant=$mois&amp;annee_courante=$annee' title=\"".
__s('See planning')."\">";
echo "<img src=\"".$CFG_GLPI["root_doc"]."/pics/reservation-3.png\" alt=''>";
echo "<i class='far fa-calendar-alt'></i>";
echo "<span class='sr-only'>".__('See planning')."</span>";
echo "</a>";
} else {
echo "&nbsp;";
......@@ -1290,9 +1292,10 @@ class Reservation extends CommonDBChild {
list($annee, $mois, $jour) = explode("-", $data["begin"]);
echo "<a href='".$CFG_GLPI["root_doc"]."/front/reservation.php?reservationitems_id=".
$data["reservationitems_id"]."&amp;mois_courant=$mois&amp;".
"annee_courante=$annee' title=\"".__s('See planning')."\"><img src=\"".
$CFG_GLPI["root_doc"]."/pics/reservation-3.png\" alt='' title=''></a>";
echo "</td></tr>\n";
"annee_courante=$annee' title=\"".__s('See planning')."\">";
echo "<i class='far fa-calendar-alt'></i>";
echo "<span class='sr-only'>".__('See planning')."</span>";
echo "</a></td></tr>\n";
}
}
echo "</table></div>\n";
......@@ -1374,7 +1377,8 @@ class Reservation extends CommonDBChild {
echo "<a href='".$CFG_GLPI["root_doc"]."/front/reservation.php?reservationitems_id=".
$data["reservationitems_id"]."&amp;mois_courant=$mois&amp;annee_courante=$annee' ".
"title=\"".__s('See planning')."\">";
echo "<img src='".$CFG_GLPI["root_doc"]."/pics/reservation-3.png' alt='' title=''></a>";
echo "<i class='far fa-calendar-alt'></i>";
echo "<span class='sr-only'>".__('See planning')."</span>";
echo "</td></tr>\n";
}
}
......
......@@ -5851,8 +5851,8 @@ JAVASCRIPT;
if ($data[$ID][0]['is_active']) {
return "<a href='reservation.php?reservationitems_id=".
$data["refID"]."' title=\"".__s('See planning')."\">".
"<img src=\"".$CFG_GLPI["root_doc"].
"/pics/reservation-3.png\" alt=''></a>";
"<i class='far fa-calendar-alt'></i>";
"<span class='sr-only'>".__('See planning')."</span></a>";
} else {
return "&nbsp;";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment