{intl d="carouselv2.bo.default" l="Configure carousel"}
{if isset($success) && $success}
{intl l="Configuration correctly saved" d="carouselv2.bo.default"}
{/if} {form name="carouselv2.configuration"}
{include "includes/inner-form-toolbar.html" hide_flags = 1 close_url={url path='/admin/modules'}}
{form_field field="success_url"} {/form_field} {form_hidden_fields} Général {render_form_field field="size"} {render_form_field field="effetdelay"} {render_form_field field="navigation"} {render_form_field field="chapo"} {render_form_field field="description"} {render_form_field field="postscriptum"}
Item {render_form_field field="addtitle"} {render_form_field field="addchapo"} {render_form_field field="adddescription"} {render_form_field field="addpostscriptum"} {render_form_field field="addbtn"} {render_form_field field="choicecolor"} {render_form_field field="addvideo"} {render_form_field field="choiceposition"} {render_form_field field="choicedate"} {include "includes/inner-form-toolbar.html" hide_flags = 1 close_url={url path='/admin/modules'} page_bottom = 1}
{/form}
{intl d="carouselv2.bo.default" l="Configure options carousel"} {* *} {include file='renderer/buttons.html' btn_group=false buttons=[ [ 'type' => 'create', 'class' => 'action-btn', 'title' => {intl l='Add a new option'}, 'href' => '#option_creation_dialog', 'auth' => ['resource' => 'carouselv2.add'], 'data' => [ 'toggle' => 'modal' ] ] ]}
{if isset($successoption) && $successoption}
{intl l="Configuration correctly saved" d="carouselv2.bo.default"}
{/if} {form name="carouselv2.options.update"}
{include "includes/inner-form-toolbar.html" hide_flags = 1 close_url={url path='/admin/modules'}} {form_field field="success_url"} {/form_field} {form_hidden_fields} {loop type="carouselv2options" name="option" order="source"} {/loop}
id title value type visible supprimer
{$ID} {render_form_field field="title{$ID}"} {render_form_field field="value{$ID}"} {form_field field="type{$ID}"} {* *} {/form_field} {render_form_field field="visible{$ID}"} {if file_exists("{$smarty.current_dir}/assets/img/positiontextmedia{$VALUE}.jpg") && $TYPE==4} {$TITLE} {/if}{if file_exists("{$smarty.current_dir}/assets/img/mobile{$VALUE}.jpg") && $TYPE==5} {$TITLE} {/if} {render_form_field field="delete{$ID}"}
{include "includes/inner-form-toolbar.html" hide_flags = 1 close_url={url path='/admin/modules'} page_bottom = 1}
{/form}
{* -- Adding a new option ------------------------------------------------- *} {form name="carouselv2.options.add"} {* Capture the dialog body, to pass it to the generic dialog *} {capture "option_creation_dialog"} {form_hidden_fields} {* on success, redirect to the edition page, _ID_ is replaced with the created object ID, see controller *} {render_form_field field="success_url" value={url path='/admin/module/Carouselv2'}} {render_form_field field="title"} {render_form_field field="value"} {form_field field="type"} {/form_field} {render_form_field field="visible"} {/capture} {include file = "includes/generic-create-dialog.html" dialog_id = "option_creation_dialog" dialog_title = {intl l="Créer une nouvelle option"} dialog_body = {$smarty.capture.option_creation_dialog nofilter} dialog_ok_label = {intl l="Créer une nouvelle option"} form_action = {url path="/admin/module/Carouselv2/options/add"} form_enctype = {form_enctype} form_error_message = $form_error_message } {/form}