mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-23 09:13:07 +01:00
12 lines
367 B
PHP
12 lines
367 B
PHP
<?= $this->layout('fields.field') ?>
|
|
<select id="page-template" name="template">
|
|
<?php
|
|
foreach ($templates as $template):
|
|
$scheme = $formwork->schemes()->get('pages.' . $template);
|
|
?>
|
|
<option value="<?= $template ?>"<?php if ($page->template()->name() === $template): ?> selected<?php endif; ?>><?= $scheme->title() ?></option>
|
|
<?php
|
|
endforeach;
|
|
?>
|
|
</select>
|