{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'configuration'} {/block} {block name="page-title"}{intl l='Edit a profile'}{/block} {block name="check-resource"}admin.configuration.profile{/block} {block name="check-access"}update{/block} {block name="main-content"} {assign oder_tab {$smarty.get.tab|default:$smarty.post.tab|default:'data'}}
{loop type="profile" name="profile" id=$profile_id backend_context="1" lang=$edit_language_id} {hook name="profile-edit.top" profile_id=$profile_id}
{intl l="Editing profile '%name'" name={$TITLE}}
{form name="thelia.admin.profile.modification"} {include file = "includes/inner-form-toolbar.html" hide_submit_buttons = false page_url = {url path="/admin/configuration/profiles/update/$profile_id" tab=data} close_url = {url path="/admin/configuration/profiles"} } {* Be sure to get the product ID, even if the form could not be validated *} {form_hidden_fields} {form_field field='success_url'} {/form_field} {form_field field='locale'} {/form_field} {if $form_error}
{$form_error_message}
{/if} {form_field field='title'}
{$label} :
{/form_field} {form_field field='chapo'}
{$label} :
{/form_field} {form_field field='description'}
{$label} : {intl l="The detailed description."} {if $error}{$value}{else}{if $IS_TRANSLATED == 1}{$DESCRIPTION}{/if}{/if}
{/form_field} {form_field field='postscriptum'}
{$label} :
{/form_field}

{intl l='Profile created on %date_create. Last modification: %date_change' date_create={format_date date=$CREATE_DATE} date_change={format_date date=$UPDATE_DATE}}

{/form}
{form name="thelia.admin.profile.resource-access.modification"} {form_hidden_fields} {* Be sure to get the product ID, even if the form could not be validated *} {if $form_error}
{$form_error_message}
{/if}

{intl l="Manage resource rights"}
{intl l="Resource"} | {intl l="Title"} | {intl l="Rights"}
--- | --- | ---
{intl l="View"} | {intl l="Create"} | {intl l="Update"} | {intl l="Delete"}
{form_tagged_fields tag='resources'} {loop type="resource" name="resource-list" code=$attr_list.resource_code profile=$ID backend_context="1"}
{$CODE} | {$TITLE} |  |  |  |
{/loop} {/form_tagged_fields}

{/form}
{form name="thelia.admin.profile.module-access.modification"} {form_hidden_fields} {* Be sure to get the product ID, even if the form could not be validated *} {if $form_error}
{$form_error_message}
{/if}

{intl l="Manage module rights"}
{intl l="Module"} | {intl l="Title"} | {intl l="Rights"}
--- | --- | ---
{intl l="View"} | {intl l="Create"} | {intl l="Update"} | {intl l="Delete"}
{form_tagged_fields tag='modules'} {loop type="module" name="module-list" code=$attr_list.module_code profile=$ID backend_context="1"}
{$CODE} | {$TITLE} |  |  |  |
{/loop} {/form_tagged_fields}

{/form}
{hook name="profile-edit.bottom" profile_id=$profile_id} {/loop}
{/block} {block name="javascript-initialization"} {javascripts file='assets/js/bootstrap-switch/bootstrap-switch.js'}
{/javascripts} {/block} {block name="javascript-last-call"} {hook name="profile.edit-js" location="profile-edit-js" profile_id={$profile_id} } {hook name="wysiwyg.js" location="wysiwyg-profile-edit-js" } {/block}