Skip to content

Commit

Permalink
fix(form): use GLPI's color theme when showing list of targets
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Aug 10, 2021
1 parent 429c822 commit ee8a6e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ public function showForm($ID, $options = []) {
}

public function showTargets($ID, $options = []) {
echo '<table class="tab_cadre_fixe">';
echo '<table class="tab_cadrehov">';

echo '<tr>';
echo '<th colspan="3">'._n('Target', 'Targets', 2, 'formcreator').'</th>';
Expand All @@ -683,7 +683,7 @@ public function showTargets($ID, $options = []) {
foreach ($allTargets as $targetType => $targets) {
foreach ($targets as $targetId => $target) {
$i++;
echo '<tr class="line'.($i % 2).'">';
echo '<tr class="tab_bg_'.($i % 2).'">';
$targetItemUrl = Toolbox::getItemTypeFormURL($targetType) . '?id=' . $targetId;
// echo '<td onclick="document.location=\'' . $targetItemUrl . '\'" style="cursor: pointer">';
$onclick = "plugin_formcreator_editTarget('$targetType', $targetId)";
Expand All @@ -709,7 +709,7 @@ public function showTargets($ID, $options = []) {
}

// Display add target link...
echo '<tr class="line'.(($i + 1) % 2).'" id="add_target_row">';
echo '<tr class="tab_bg_'.(($i + 1) % 2).'" id="add_target_row">';
echo '<td colspan="3">';
echo '<a href="javascript:plugin_formcreator_addTarget('.$ID.', \''.$token.'\');">
<i class="fa fa-plus"></i>
Expand Down

0 comments on commit ee8a6e2

Please sign in to comment.