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 @@
</th>
</tr>
<? foreach ($ws_rules as $rule): ?>
<tr class="<?= TextHelper::cycle('table_row_even', 'table_row_odd') ?>">
<tr>
<? if (isset($edit) && $edit == $rule->id) :?>
<td>
<a name="edit"></a>
......
......@@ -48,12 +48,12 @@
<em><?= sprintf(_("Der Suchbegriff '%s' lieferte kein Ergebnis."), htmlReady($selection->getSearchKey())) ?></em>
<? else : ?>
<h3><?= _('Suchergebnisse') ?>:</h3>
<? TextHelper::reset_cycle(); $show_path = TRUE; $show_link = FALSE; ?>
<? $show_path = TRUE; $show_link = FALSE; ?>
<? foreach ($selection->getSearchResult() as $area) : ?>
<? // MVV: show LvGruppen with complete trails only ?>
<? $pathes = ModuleManagementModelTreeItem::getPathes($area->getTrails(['Modulteil', 'StgteilabschnittModul', 'StgteilAbschnitt', 'StgteilVersion', 'Studiengang'])); ?>
<? if (count($pathes)) : ?>
<div class="<?= TextHelper::cycle('odd', 'even') ?>">
<div>
<?= $this->render_partial('course/lvgselector/entry', compact('area', 'show_path', 'show_link', 'pathes')); ?>
</div>
<? endif; ?>
......
......@@ -8,7 +8,7 @@
$has_children = $child->hasChildren();
?>
<div class="<?= TextHelper::cycle('odd', 'even') ?>">
<div>
<?= $this->render_partial('course/lvgselector/entry',
['area' => $child,
'show_link' => $has_children]) ?>
......
......@@ -2,7 +2,7 @@
# Lifter010: TODO
$_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) : ?>
<?= 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)]) ?>
......
<?php
$_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([
'name' => "assign[{$_id}]",
......
......@@ -32,7 +32,7 @@ use Studip\Button, Studip\LinkButton;
</th>
</tr>
<? 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;">
<?= date('d.m.Y H:i:s', $log_event['time']) ?>
</td>
......
......@@ -59,8 +59,7 @@
</tr>
<? endif; ?>
</tbody>
<? endforeach;
TextHelper::reset_cycle(); ?>
<? endforeach; ?>
<? if (count($version->abschnitte) > 0 && MvvPerm::haveFieldPermModul_zuordnungen('StgteilAbschnitt', MvvPerm::PERM_CREATE)
) : ?>
<tbody>
......
......@@ -59,7 +59,7 @@
</tr>
<? endif; ?>
</tbody>
<? endforeach; TextHelper::reset_cycle(); ?>
<? endforeach; ?>
<? if (MvvPerm::haveFieldPermModul_zuordnungen($abschnitt, MvvPerm::PERM_CREATE)) : ?>
<tbody>
<tr>
......
......@@ -253,22 +253,6 @@ ul {
dd {
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 {
......@@ -559,14 +543,6 @@ form.default .mvv-inst-chooser select {
h3 {
margin-top: 1em;
}
&.odd {
background-color: var(--dark-gray-color-5);
}
&.even {
background-color: var(--content-color-20);
}
}
#lvgruppe_selection_chosen {
......
......@@ -111,7 +111,7 @@
</td>
</tr>
<? foreach ($data as $module) : ?>
<tr class="<?= TextHelper::cycle('hover_odd', 'hover_even') ?>">
<tr>
<td>
<a href="<?= URLHelper::getLink($module['url'], ['sso' => $sso]) ?>"><?= htmlReady($module['text']) ?></a>
</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