Inital commit
This commit is contained in:
@@ -26,11 +26,13 @@
|
||||
|
||||
{loop type="profile" name="profile" id=$profile_id backend_context="1" lang=$edit_language_id}
|
||||
|
||||
{hook name="profile-edit.top" profile_id=$profile_id}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 general-block-decorator clearfix">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 title">{intl l="Editing profile '%name'" name=$TITLE}</div>
|
||||
<div class="col-md-12 title">{intl l="Editing profile '%name'" name={$TITLE}}</div>
|
||||
</div>
|
||||
|
||||
<ul class="nav nav-tabs clearfix">
|
||||
@@ -46,7 +48,7 @@
|
||||
|
||||
{form name="thelia.admin.profile.modification"}
|
||||
|
||||
<form method="POST" action="{url path="/admin/configuration/profiles/save"}" {form_enctype form=$form} >
|
||||
<form method="POST" action="{url path="/admin/configuration/profiles/save"}" {form_enctype} >
|
||||
|
||||
{include
|
||||
file = "includes/inner-form-toolbar.html"
|
||||
@@ -59,33 +61,33 @@
|
||||
{* Be sure to get the product ID, even if the form could not be validated *}
|
||||
<input type="hidden" name="profile_id" value="{$ID}" />
|
||||
|
||||
{form_hidden_fields form=$form}
|
||||
{form_hidden_fields}
|
||||
|
||||
{form_field form=$form field='success_url'}
|
||||
{form_field field='success_url'}
|
||||
<input type="hidden" name="{$name}" value="{url path="/admin/configuration/profiles"}" />
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='locale'}
|
||||
{form_field field='locale'}
|
||||
<input type="hidden" name="{$name}" value="{$edit_language_locale}" />
|
||||
{/form_field}
|
||||
|
||||
{if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
|
||||
|
||||
{form_field form=$form field='title'}
|
||||
{form_field field='title'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="{$label_attr.for}" class="control-label">{$label} : </label>
|
||||
<input type="text" id="{$label_attr.for}" name="{$name}" required="required" title="{intl l='Title'}" placeholder="{intl l='Title'}" class="form-control" value="{if $error}{$value}{else}{if $IS_TRANSLATED == 1}{$TITLE}{/if}{/if}">
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='chapo'}
|
||||
{form_field field='chapo'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="{$label_attr.for}" class="control-label">{$label} : </label>
|
||||
<input type="text" id="{$label_attr.for}" name="{$name}" title="{intl l='Chapo'}" placeholder="{intl l='Chapo'}" class="form-control" value="{if $error}{$value}{else}{if $IS_TRANSLATED == 1}{$CHAPO}{/if}{/if}">
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='description'}
|
||||
{form_field field='description'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="{$label_attr.for}" class="control-label">
|
||||
{$label} :
|
||||
@@ -96,7 +98,7 @@
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='postscriptum'}
|
||||
{form_field field='postscriptum'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
<label for="{$label_attr.for}" class="control-label">{$label} : </label>
|
||||
<input type="text" id="{$label_attr.for}" name="{$name}" title="{intl l='Postscriptum'}" placeholder="{intl l='Postscriptum'}" class="form-control" value="{if $error}{$value}{else}{if $IS_TRANSLATED == 1}{$POSTSCRIPTUM}{/if}{/if}">
|
||||
@@ -124,9 +126,9 @@
|
||||
|
||||
{form name="thelia.admin.profile.resource-access.modification"}
|
||||
|
||||
<form method="POST" action="{url path="/admin/configuration/profiles/saveResourceAccess?tab=resources"}" {form_enctype form=$form} >
|
||||
<form method="POST" action="{url path="/admin/configuration/profiles/saveResourceAccess?tab=resources"}" {form_enctype} >
|
||||
|
||||
{form_hidden_fields form=$form}
|
||||
{form_hidden_fields}
|
||||
|
||||
{* Be sure to get the product ID, even if the form could not be validated *}
|
||||
<input type="hidden" name="profile_id" value="{$ID}" />
|
||||
@@ -136,7 +138,7 @@
|
||||
<table class="table table-striped table-condensed table-left-aligned">
|
||||
<caption>
|
||||
{intl l="Manage resource rights"}
|
||||
<button type="submit" class="btn btn-default btn-primary pull-right"><span class="glyphicon glyphicon-check"></span> {intl l="Save"}</button>
|
||||
<button type="submit" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-check"></span> {intl l="Save"}</button>
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -153,7 +155,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
{form_tagged_fields form=$form tag='resources'}
|
||||
{form_tagged_fields tag='resources'}
|
||||
|
||||
{loop type="resource" name="resource-list" code=$attr_list.resource_code profile=$ID backend_context="1"}
|
||||
|
||||
@@ -190,7 +192,7 @@
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<button type="submit" class="btn btn-default btn-primary pull-right"><span class="glyphicon glyphicon-check"></span> {intl l="Save"}</button>
|
||||
<button type="submit" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-check"></span> {intl l="Save"}</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@@ -206,9 +208,9 @@
|
||||
|
||||
{form name="thelia.admin.profile.module-access.modification"}
|
||||
|
||||
<form method="POST" action="{url path="/admin/configuration/profiles/saveModuleAccess?tab=modules"}" {form_enctype form=$form} >
|
||||
<form method="POST" action="{url path="/admin/configuration/profiles/saveModuleAccess?tab=modules"}" {form_enctype} >
|
||||
|
||||
{form_hidden_fields form=$form}
|
||||
{form_hidden_fields}
|
||||
|
||||
{* Be sure to get the product ID, even if the form could not be validated *}
|
||||
<input type="hidden" name="profile_id" value="{$ID}" />
|
||||
@@ -218,7 +220,7 @@
|
||||
<table class="table table-striped table-condensed table-left-aligned">
|
||||
<caption>
|
||||
{intl l="Manage module rights"}
|
||||
<button type="submit" class="btn btn-default btn-primary pull-right"><span class="glyphicon glyphicon-check"></span> {intl l="Save"}</button>
|
||||
<button type="submit" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-check"></span> {intl l="Save"}</button>
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -235,7 +237,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
{form_tagged_fields form=$form tag='modules'}
|
||||
{form_tagged_fields tag='modules'}
|
||||
|
||||
{loop type="module" name="module-list" code=$attr_list.module_code profile=$ID backend_context="1"}
|
||||
|
||||
@@ -272,7 +274,7 @@
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<button type="submit" class="btn btn-default btn-primary pull-right"><span class="glyphicon glyphicon-check"></span> {intl l="Save"}</button>
|
||||
<button type="submit" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-check"></span> {intl l="Save"}</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@@ -288,6 +290,9 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{hook name="profile-edit.bottom" profile_id=$profile_id}
|
||||
|
||||
{/loop}
|
||||
|
||||
</div>
|
||||
@@ -302,12 +307,9 @@
|
||||
<script src="{$asset_url}"></script>
|
||||
{/javascripts}
|
||||
|
||||
{javascripts file='assets/js/main.js'}
|
||||
<script src='{$asset_url}'></script>
|
||||
{/javascripts}
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="javascript-last-call"}
|
||||
{module_include location='profile-edit-js'}
|
||||
{hook name="profile.edit-js" location="profile-edit-js" profile_id={$profile_id} }
|
||||
{hook name="wysiwyg.js" location="wysiwyg-profile-edit-js" }
|
||||
{/block}
|
||||
Reference in New Issue
Block a user