mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-05 08:52:00 +00:00
14 lines
601 B
PHP
14 lines
601 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): ?>
|
|
<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; ?>
|
|
<Button class="self-end mt-4" variant="primary" type="submit"><?= lang('Common.forms.save') ?></Button>
|
|
</form>
|