diff options
| author | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2021-07-22 16:07:19 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2021-07-22 16:19:12 +0200 |
| commit | a3da1483a9e689846179159355badfec8073dbec (patch) | |
| tree | 770dcca6bdf5f6f2a11b0e7fcbbeda6919a3fc52 /templates/userfilter | |
current code from svn, revision 62608
Diffstat (limited to 'templates/userfilter')
| -rw-r--r-- | templates/userfilter/_confirm_delete.php | 13 | ||||
| -rw-r--r-- | templates/userfilter/display.php | 24 |
2 files changed, 37 insertions, 0 deletions
diff --git a/templates/userfilter/_confirm_delete.php b/templates/userfilter/_confirm_delete.php new file mode 100644 index 0000000..96e7535 --- /dev/null +++ b/templates/userfilter/_confirm_delete.php @@ -0,0 +1,13 @@ +<script id="confirm_dialog" type="text/html"> +<div class="modaloverlay"> + <div class="messagebox"> + <div class="content"> + <%- question %> + </div> + <div class="buttons"> + <a class="accept button" href="<%- confirm %>"><?= _('Ja') ?></a> + <?= Studip\LinkButton::createCancel(_('Nein'), 'javascript:STUDIP.Forum.closeDialog()') ?> + </div> + </div> +</div> +</script>
\ No newline at end of file diff --git a/templates/userfilter/display.php b/templates/userfilter/display.php new file mode 100644 index 0000000..859afbe --- /dev/null +++ b/templates/userfilter/display.php @@ -0,0 +1,24 @@ +<?php +$i=0; +$fieldText = ''; +foreach ($filter->getFields() as $field) { + if ($i > 0) { + $fieldText .= ' <b>'._('und').'</b> '; + } + $valueNames = $field->getValidValues(); + $ops = $field->getValidCompareOperators(); + $fieldText .= htmlReady($field->getName()." ".$field->getCompareOperatorAsText(). + " " . (count($valueNames) ? $valueNames[$field->getValue()] : $field->getValue())); + $i++; + +} +if ($filter->show_user_count) { + $user_count = count($filter->getUsers()); + $fieldText .= ' ('.sprintf(_('%s Personen'), $user_count); + if (!$user_count) { + $fieldText .= Icon::create('exclaim-circle', 'attention', ['title' => _("Niemand erfüllt diese Bedingung.")])->asImg(); + } + $fieldText .= ')'; +} +echo $fieldText; +?> |
