diff options
| author | David Siegfried <ds.siegfried@gmail.com> | 2023-07-17 12:12:47 +0200 |
|---|---|---|
| committer | David Siegfried <ds.siegfried@gmail.com> | 2023-07-17 12:12:47 +0200 |
| commit | d25e4a849e7c01307695075c0228ba69c4b16723 (patch) | |
| tree | dd94cf7a06ae4a8461b0ae350e21902edb7be138 /app/views | |
| parent | 8e113deeb0cddaad2135f7f1d23a9d6c10e597f7 (diff) | |
add phpdoctic-cleanup
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/userfilter/field/configure.php | 51 | ||||
| -rw-r--r-- | app/views/userfilter/filter/add.php | 18 | ||||
| -rw-r--r-- | app/views/userfilter/filter/configure.php | 14 | ||||
| -rw-r--r-- | app/views/wysiwyg/a11yhelp.php | 8 |
4 files changed, 54 insertions, 37 deletions
diff --git a/app/views/userfilter/field/configure.php b/app/views/userfilter/field/configure.php index d50d39a..bf9a343 100644 --- a/app/views/userfilter/field/configure.php +++ b/app/views/userfilter/field/configure.php @@ -1,35 +1,48 @@ -<?php if (!empty($className)) { ?> +<?php + +/** + * @var string $className + * @var UserFilterField $field + * @var array $conditionFields + * @var Userfilter_FieldController $controller + */ + +?> +<? if (!empty($className)) : ?> <? if (count($field->getValidCompareOperators()) > 1) : ?> <select name="compare_operator[]" size="1" class="conditionfield_compare_op"> <?php foreach ($field->getValidCompareOperators() as $op => $text) { ?> - <option value="<?= $op ?>"><?= htmlReady($text) ?></option> + <option value="<?= $op ?>"><?= htmlReady($text) ?></option> <?php } ?> </select> <? else : ?> - <input type="hidden" class="conditionfield_compare_op" name="compare_operator[]" value="<?=key($field->getValidCompareOperators())?>"> + <input type="hidden" class="conditionfield_compare_op" name="compare_operator[]" + value="<?= key($field->getValidCompareOperators()) ?>"> <? endif ?> <? if (count($field->getValidValues()) > 1) : ?> <select name="value[]" class="conditionfield_value"> <?php foreach ($field->getValidValues() as $id => $name) { ?> - <option value="<?= $id ?>"><?= htmlReady($name) ?></option> + <option value="<?= $id ?>"><?= htmlReady($name) ?></option> <?php } ?> </select> - <? elseif (count($field->getValidValues()) == 1) : ?> - <input type="hidden" name="value[]" class="conditionfield_value" value="<?=key($field->getValidValues())?>"> + <? elseif (count($field->getValidValues()) == 1) : ?> + <input type="hidden" name="value[]" class="conditionfield_value" value="<?= key($field->getValidValues()) ?>"> <? else : ?> <input type="text" name="value[]" class="conditionfield_value" value=""> <? endif ?> -<?php } else { ?> - <?= (empty($is_first) ? '<strong>' . _("und") . '</strong>' : '')?> +<? else : ?> + <?= (empty($is_first) ? '<strong>' . _('und') . '</strong>' : '') ?> <div class="conditionfield"> - <select name="field[]" class="conditionfield_class" size="1" onchange="STUDIP.UserFilter.getConditionFieldConfiguration(this, '<?= $controller->url_for('userfilter/field/configure') ?>')"> - <option value="">-- <?= _('bitte auswählen') ?> --</option> - <?php foreach ($conditionFields as $className => $displayName) { ?> - <option value="<?= $className ?>"><?= htmlReady($displayName) ?></option> - <?php } ?> - </select> - <a href="#" onclick="return STUDIP.UserFilter.removeConditionField($(this).parent())" - class="conditionfield_delete"> - <?= Icon::create('trash', 'clickable')->asImg(); ?></a> -</div> -<?php } ?> + <select name="field[]" class="conditionfield_class" size="1" + onchange="STUDIP.UserFilter.getConditionFieldConfiguration(this, '<?= $controller->url_for('userfilter/field/configure') ?>')"> + <option value="">-- <?= _('bitte auswählen') ?> --</option> + <? foreach ($conditionFields as $className => $displayName) : ?> + <option value="<?= $className ?>"><?= htmlReady($displayName) ?></option> + <? endforeach ?> + </select> + <a href="#" onclick="return STUDIP.UserFilter.removeConditionField($(this).parent())" + class="conditionfield_delete"> + <?= Icon::create('trash') ?> + </a> + </div> +<? endif ?> diff --git a/app/views/userfilter/filter/add.php b/app/views/userfilter/filter/add.php index fc84444..dff2367 100644 --- a/app/views/userfilter/filter/add.php +++ b/app/views/userfilter/filter/add.php @@ -1,9 +1,15 @@ +<?php +/** + * @var UserFilter $condition + */ +?> + <div class="condition" id="<?= $condition->getId() ?>"> - <input type="checkbox" name="conditions_checkbox[]"/> + <input type="checkbox" name="conditions_checkbox[]"> <?= $condition->toString() ?> - <input type="hidden" name="conditions[]" value="<?= htmlReady(ObjectBuilder::exportAsJson($condition)) ?>"/> - <input type="hidden" name="conditiongroup_<?=$condition->getId()?>" value=""/> + <input type="hidden" name="conditions[]" value="<?= htmlReady(ObjectBuilder::exportAsJson($condition)) ?>"> + <input type="hidden" name="conditiongroup_<?= $condition->getId() ?>" value=""> <a href="#" onclick="return STUDIP.UserFilter.removeConditionField($(this).parent())" - class="conditionfield_delete"> - <?= Icon::create('trash', 'clickable')->asImg(); ?></a> -</div>
\ No newline at end of file + class="conditionfield_delete"> + <?= Icon::create('trash') ?></a> +</div> diff --git a/app/views/userfilter/filter/configure.php b/app/views/userfilter/filter/configure.php index 59155c0..f2cfeb8 100644 --- a/app/views/userfilter/filter/configure.php +++ b/app/views/userfilter/filter/configure.php @@ -1,16 +1,18 @@ <?php -use Studip\Button, Studip\LinkButton; +use Studip\Button; + +/** + * @var Userfilter_FieldController $controller + * @var string $containerID + */ ?> <div id="conditionfields"> <?= $this->render_partial('userfilter/field/configure.php', ['is_first' => true]); ?> </div> <br/> <a href="#" onclick="return STUDIP.UserFilter.addConditionField('conditionfields', '<?= $controller->url_for('userfilter/field/configure') ?>')"> - <?= Icon::create('add', 'clickable')->asImg(16, ["alt" => _('Auswahlfeld hinzufügen')]) ?> - <?php - $text = _('Auswahlfeld hinzufügen'); - echo $text; - ?> + <?= Icon::create('add')->asImg(['alt' => _('Auswahlfeld hinzufügen')]) ?> + <?= _('Auswahlfeld hinzufügen') ?> </a> <br/><br/> <div class="submit_wrapper" data-dialog-button> diff --git a/app/views/wysiwyg/a11yhelp.php b/app/views/wysiwyg/a11yhelp.php index 0590714..40c25c4 100644 --- a/app/views/wysiwyg/a11yhelp.php +++ b/app/views/wysiwyg/a11yhelp.php @@ -1,17 +1,13 @@ <h3><?= _('Editorwerkzeugleiste') ?></h3> <p> - <?= _( - 'Zum Zugriff auf die Elemente der Werkzeugleiste des Editors drücken Sie Alt+F10. Gehen Sie zum nächsten oder vorherigen Element mit der rechten oder linken Pfeiltaste. Drücken Sie die Leertaste oder Eingabetaste, um ein Element in der Werkzeugleiste zu aktivieren.' - ) ?> + <?= _('Zum Zugriff auf die Elemente der Werkzeugleiste des Editors drücken Sie Alt+F10. Gehen Sie zum nächsten oder vorherigen Element mit der rechten oder linken Pfeiltaste. Drücken Sie die Leertaste oder Eingabetaste, um ein Element in der Werkzeugleiste zu aktivieren.') ?> </p> <h3><?= _('Editor-Kontextmenü (Rechtsklickmenü)') ?></h3> <p> - <?= _( - 'Drücken Sie Umschalt+F10 / Umschalt+Strg+F10 oder die Anwendungstaste um das Kontextmenü zu öffnen. Man kann die Pfeiltasten zur Navigation durch das Menü benutzen. Mit der Leertaste oder der Enter-Taste kann man den Menüpunkt aufrufen. Das Kontextmenü kann mit der Escape-Taste geschlossen werden.' - ) ?></p> + <?= _('Drücken Sie Umschalt+F10 / Umschalt+Strg+F10 oder die Anwendungstaste um das Kontextmenü zu öffnen. Man kann die Pfeiltasten zur Navigation durch das Menü benutzen. Mit der Leertaste oder der Enter-Taste kann man den Menüpunkt aufrufen. Das Kontextmenü kann mit der Escape-Taste geschlossen werden.') ?></p> <h3><?= _('Befehle') ?></h3> |
