Skip to content
Snippets Groups Projects
Commit 9de74a2b authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

remove calls to TextHelper class, re #4101

parent f6c45604
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</th> </th>
</tr> </tr>
<? foreach ($ws_rules as $rule): ?> <? foreach ($ws_rules as $rule): ?>
<tr class="<?= TextHelper::cycle('table_row_even', 'table_row_odd') ?>"> <tr>
<? if (isset($edit) && $edit == $rule->id) :?> <? if (isset($edit) && $edit == $rule->id) :?>
<td> <td>
<a name="edit"></a> <a name="edit"></a>
......
...@@ -48,12 +48,12 @@ ...@@ -48,12 +48,12 @@
<em><?= sprintf(_("Der Suchbegriff '%s' lieferte kein Ergebnis."), htmlReady($selection->getSearchKey())) ?></em> <em><?= sprintf(_("Der Suchbegriff '%s' lieferte kein Ergebnis."), htmlReady($selection->getSearchKey())) ?></em>
<? else : ?> <? else : ?>
<h3><?= _('Suchergebnisse') ?>:</h3> <h3><?= _('Suchergebnisse') ?>:</h3>
<? TextHelper::reset_cycle(); $show_path = TRUE; $show_link = FALSE; ?> <? $show_path = TRUE; $show_link = FALSE; ?>
<? foreach ($selection->getSearchResult() as $area) : ?> <? foreach ($selection->getSearchResult() as $area) : ?>
<? // MVV: show LvGruppen with complete trails only ?> <? // MVV: show LvGruppen with complete trails only ?>
<? $pathes = ModuleManagementModelTreeItem::getPathes($area->getTrails(['Modulteil', 'StgteilabschnittModul', 'StgteilAbschnitt', 'StgteilVersion', 'Studiengang'])); ?> <? $pathes = ModuleManagementModelTreeItem::getPathes($area->getTrails(['Modulteil', 'StgteilabschnittModul', 'StgteilAbschnitt', 'StgteilVersion', 'Studiengang'])); ?>
<? if (count($pathes)) : ?> <? if (count($pathes)) : ?>
<div class="<?= TextHelper::cycle('odd', 'even') ?>"> <div>
<?= $this->render_partial('course/lvgselector/entry', compact('area', 'show_path', 'show_link', 'pathes')); ?> <?= $this->render_partial('course/lvgselector/entry', compact('area', 'show_path', 'show_link', 'pathes')); ?>
</div> </div>
<? endif; ?> <? endif; ?>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
$has_children = $child->hasChildren(); $has_children = $child->hasChildren();
?> ?>
<div class="<?= TextHelper::cycle('odd', 'even') ?>"> <div>
<?= $this->render_partial('course/lvgselector/entry', <?= $this->render_partial('course/lvgselector/entry',
['area' => $child, ['area' => $child,
'show_link' => $has_children]) ?> 'show_link' => $has_children]) ?>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Lifter010: TODO # Lifter010: TODO
$_id = htmlReady(implode('_', (array) $area->getId())); $_id = htmlReady(implode('_', (array) $area->getId()));
?> ?>
<li id="lvgroup-tree-assigned-<?= $_id ?>" class="<?= TextHelper::cycle('odd', 'even') ?>"> <li id="lvgroup-tree-assigned-<?= $_id ?>">
<? if (!$locked) : ?> <? if (!$locked) : ?>
<?= Icon::create('trash', 'clickable')->asInput(["name" => 'lvgruppe_selection[remove]['.$_id.']', "onclick" => "return STUDIP.MVV.CourseWizard.removeLVGroup('".$_id."')", "class" => '', <?= Icon::create('trash', 'clickable')->asInput(["name" => 'lvgruppe_selection[remove]['.$_id.']', "onclick" => "return STUDIP.MVV.CourseWizard.removeLVGroup('".$_id."')", "class" => '',
"data-id" => $_id, "data-course_id" => htmlReady($course_id)]) ?> "data-id" => $_id, "data-course_id" => htmlReady($course_id)]) ?>
......
<?php <?php
$_id = htmlReady(implode('_', (array) $area->getId())); $_id = htmlReady(implode('_', (array) $area->getId()));
?> ?>
<li id="lvgruppe_search_<?= $_id ?>" class="<?= TextHelper::cycle('odd', 'even') ?>"> <li id="lvgruppe_search_<?= $_id ?>">
<?= Icon::create('arr_2left', Icon::ROLE_SORT)->asInput([ <?= Icon::create('arr_2left', Icon::ROLE_SORT)->asInput([
'name' => "assign[{$_id}]", 'name' => "assign[{$_id}]",
......
...@@ -32,7 +32,7 @@ use Studip\Button, Studip\LinkButton; ...@@ -32,7 +32,7 @@ use Studip\Button, Studip\LinkButton;
</th> </th>
</tr> </tr>
<? foreach ($log_events as $log_event): ?> <? foreach ($log_events as $log_event): ?>
<tr class="<?= TextHelper::cycle('table_row_even', 'table_row_odd') ?>"> <tr>
<td style="font-size: smaller; white-space: nowrap;"> <td style="font-size: smaller; white-space: nowrap;">
<?= date('d.m.Y H:i:s', $log_event['time']) ?> <?= date('d.m.Y H:i:s', $log_event['time']) ?>
</td> </td>
......
...@@ -59,8 +59,7 @@ ...@@ -59,8 +59,7 @@
</tr> </tr>
<? endif; ?> <? endif; ?>
</tbody> </tbody>
<? endforeach; <? endforeach; ?>
TextHelper::reset_cycle(); ?>
<? if (count($version->abschnitte) > 0 && MvvPerm::haveFieldPermModul_zuordnungen('StgteilAbschnitt', MvvPerm::PERM_CREATE) <? if (count($version->abschnitte) > 0 && MvvPerm::haveFieldPermModul_zuordnungen('StgteilAbschnitt', MvvPerm::PERM_CREATE)
) : ?> ) : ?>
<tbody> <tbody>
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</tr> </tr>
<? endif; ?> <? endif; ?>
</tbody> </tbody>
<? endforeach; TextHelper::reset_cycle(); ?> <? endforeach; ?>
<? if (MvvPerm::haveFieldPermModul_zuordnungen($abschnitt, MvvPerm::PERM_CREATE)) : ?> <? if (MvvPerm::haveFieldPermModul_zuordnungen($abschnitt, MvvPerm::PERM_CREATE)) : ?>
<tbody> <tbody>
<tr> <tr>
......
...@@ -253,22 +253,6 @@ ul { ...@@ -253,22 +253,6 @@ ul {
dd { dd {
margin: 0; margin: 0;
} }
&.even {
background-color: var(--dark-gray-color-10);
&:hover {
background-color: var(--content-color-60);
}
}
&.odd {
background-color: var(--dark-gray-color-5);
&:hover {
background-color: var(--content-color-40);
}
}
} }
&.mvv-modul li { &.mvv-modul li {
...@@ -559,14 +543,6 @@ form.default .mvv-inst-chooser select { ...@@ -559,14 +543,6 @@ form.default .mvv-inst-chooser select {
h3 { h3 {
margin-top: 1em; margin-top: 1em;
} }
&.odd {
background-color: var(--dark-gray-color-5);
}
&.even {
background-color: var(--content-color-20);
}
} }
#lvgruppe_selection_chosen { #lvgruppe_selection_chosen {
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
</td> </td>
</tr> </tr>
<? foreach ($data as $module) : ?> <? foreach ($data as $module) : ?>
<tr class="<?= TextHelper::cycle('hover_odd', 'hover_even') ?>"> <tr>
<td> <td>
<a href="<?= URLHelper::getLink($module['url'], ['sso' => $sso]) ?>"><?= htmlReady($module['text']) ?></a> <a href="<?= URLHelper::getLink($module['url'], ['sso' => $sso]) ?>"><?= htmlReady($module['text']) ?></a>
</td> </td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment