80 lines
2.7 KiB
HTML
80 lines
2.7 KiB
HTML
{extends file="admin-layout.tpl"}
|
|
|
|
{block name="page-title"}{intl l='Edit a module'}{/block}
|
|
|
|
{block name="check-resource"}admin.module{/block}
|
|
{block name="check-access"}update{/block}
|
|
|
|
{block name="main-content"}
|
|
|
|
<div class="edit-module">
|
|
|
|
<div id="wrapper" class="container">
|
|
|
|
<ul class="breadcrumb">
|
|
<li><a href="{url path='/admin/home'}">{intl l="Home"}</a></li>
|
|
<li><a href="{url path='/admin/modules'}">{intl l="Modules"}</a></li>
|
|
<li>{intl l='Editing module'}</li>
|
|
</ul>
|
|
|
|
{loop type="module" name="module" id=$module_id backend_context="1" lang=$edit_language_id}
|
|
|
|
<div class="row">
|
|
<div class="col-md-12 general-block-decorator clearfix">
|
|
|
|
<div class="form-container">
|
|
|
|
{form name="thelia.admin.module.modification"}
|
|
|
|
<form method="POST" action="{url path="/admin/module/save"}" {form_enctype form=$form} >
|
|
|
|
{include
|
|
file = "includes/inner-form-toolbar.html"
|
|
hide_submit_buttons = false
|
|
|
|
page_url = {url path="/admin/module/update/$module_id"}
|
|
close_url = {url path="/admin/modules"}
|
|
}
|
|
|
|
{* Be sure to get the product ID, even if the form could not be validated *}
|
|
<input type="hidden" name="module_id" value="{$ID}" />
|
|
|
|
{form_hidden_fields form=$form}
|
|
|
|
{form_field form=$form field='success_url'}
|
|
<input type="hidden" name="{$name}" value="{url path="/admin/modules"}" />
|
|
{/form_field}
|
|
|
|
{if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
|
|
|
|
{include file="includes/standard-description-form-fields.html" form=$form}
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="control-group">
|
|
<label> </label>
|
|
<div class="controls">
|
|
<p>{intl l='Module created on %date_create. Last modification: %date_change' date_create={format_date date=$CREATE_DATE} date_change={format_date date=$UPDATE_DATE}}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
{/form}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
{/loop}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/block}
|
|
|
|
{block name="javascript-last-call"}
|
|
{module_include location='module-edit-js'}
|
|
{/block} |