myaac/system/templates/admin.menus.form.html.twig
Slawomir Boczek 790d85a88a
CSRF Protection (#235)
* Fix alert class name

* feature: csrf protection

* Cosmetics

* Fix token generate

* Admin Panel: changelogs csrf protection

* news/id route

* Refactor admin newses + add csrf

* Use admin.links instead

* Admin panel: Pages csrf

* Menus: better csrf + add success message on reset colors

* Plugins csrf

* Move definitions

* add info function, same as note($message)

* Update mailer.php

* Fix new page/news links

* clear_cache & maintenance csrf

* Formatting

* Fix news type

* Fix changelog link

* Add new changelog link

* More info to confirm dialog

* This is always true
2023-11-11 10:57:57 +01:00

24 lines
749 B
Twig

<div class="card card-info card-outline">
<div class="card-header">
<h5 class="m-0">Templates</h5>
</div>
<div class="card-body">
<form method="post" action="?p=menus">
{{ csrf() }}
<p>Please choose template in which you want to edit menu items.</p>
<div class="col-md-6">
<div class="input-group input-group-sm">
<select id="template" name="template" class="form-control">
{% for template in templates %}
<option value="{{ template.template }}">{{ template.template }}</option>
{% endfor %}
</select>
<span class="input-group-append">
<button type="submit" class="btn btn-info btn-flat">Edit!</button>
</span>
</div>
</div>
</form>
</div>
</div>