Add the basic files for a garradin extension
This commit is contained in:
parent
cf4c1e2dd1
commit
c757583136
9 changed files with 85 additions and 2 deletions
20
templates/config.tpl
Normal file
20
templates/config.tpl
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{include file="admin/_head.tpl" title="Configuration — %s"|args:$plugin.nom current="plugin_%s"|args:$plugin.id}
|
||||
|
||||
{form_errors}
|
||||
|
||||
<form method="post" action="{$self_url}">
|
||||
|
||||
<fieldset>
|
||||
<legend>Configuration</legend>
|
||||
<dl>
|
||||
{input type="checkbox" name="display_hello" value="1" default=$plugin.config label="Afficher un message de coucou"}
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
<p class="submit">
|
||||
{csrf_field key="config_plugin_%s"|args:$plugin.id}
|
||||
{button type="submit" class="main" name="save" label="Enregistrer" shape="right"}
|
||||
</p>
|
||||
</form>
|
||||
|
||||
{include file="admin/_foot.tpl"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue