mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26:43 +02:00
- enhance plugin card ui - refactor components to be more consistent - invert toggler label for better UX - edit view components regex
14 lines
No EOL
607 B
PHP
14 lines
No EOL
607 B
PHP
<form method="POST" action="<?= $action ?>" class="flex flex-col max-w-sm gap-4" >
|
|
<?= csrf_field() ?>
|
|
<?php foreach ($plugin->getSettingsFields($type) as $field): ?>
|
|
<x-Forms.Field
|
|
name="<?= esc($field->key) ?>"
|
|
label="<?= esc($field->label) ?>"
|
|
hint="<?= esc($field->hint) ?>"
|
|
helper="<?= esc($field->helper) ?>"
|
|
required="<?= $field->optional ? 'false' : 'true' ?>"
|
|
value="<?= get_plugin_option($plugin->getKey(), $field->key, $context) ?>"
|
|
/>
|
|
<?php endforeach; ?>
|
|
<x-Button class="self-end mt-4" variant="primary" type="submit"><?= lang('Common.forms.save') ?></x-Button>
|
|
</form>
|