{* DELETE modal *}
{capture "schedule_delete"}
    {intl l="Do you really want to delete this delivery day ?" d="livraisonparsecteurs"}
    <input type="hidden" name="area-schedule_id" id="attr-area-schedule-id-delete" value=""/>
    <input type="hidden" name="area_id" value="{$smarty.get.area_id}"/>
    <input type="hidden" name="success_url" value="{url path="/admin/module/LivraisonParSecteurs/edit?area_id={$area_id}#schedule"}"/>
{/capture}

{include file="includes/generic-confirm-dialog.html"
dialog_id       = "area-schedule-delete"
dialog_title    = {intl l="Delete an entry of schedule" d="livraisonparsecteurs"}
dialog_message  = {$smarty.capture.schedule_delete nofilter}
dialog_ok_label     = {intl l="Delete"}
dialog_cancel_label = {intl l="Cancel"}
form_action         = {token_url path='/admin/module/LivraisonParSecteurs/schedule/delete'}
}


{* UPDATE Modal*}
{form name="lps-area-schedule-update"}
    {capture "schedule_update"}
        {form_field form=$form field="area-schedule_id"}
        <input type="hidden" id="attr-area-schedule-id-update" name="area-schedule_id" value=""/>
        {/form_field}
        {form_field form=$form field="area_id"}
        <input type="hidden" id="area_id" name="area_id" value="{$smarty.get.area_id}"/>
        {/form_field}

        {include file="form/area-schedule-create.html" form_name="lps-area-schedule-update" update=true}
    {/capture}

    {include file="includes/generic-create-dialog.html"
    dialog_id       = "area-schedule-update"
    dialog_title    = {intl l="Modify a delivery day" d="livraisonparsecteurs"}
    dialog_body     = {$smarty.capture.schedule_update nofilter}
    dialog_ok_label     = {intl l="Save"}
    dialog_cancel_label = {intl l="Cancel"}
    form_action        = {url path='admin/module/LivraisonParSecteurs/schedule/update'}
    form_enctype       = {form_enctype form=$form}
    }
{/form}


{* CREATE Modal *}
{form name="lps-area-schedule-create"}
    {capture "schedule_create"}
        {include file="form/area-schedule-create.html" form_name="lps-area-schedule-create" area_id=$smarty.get.area_id}
    {/capture}

    {include file="includes/generic-create-dialog.html"
    dialog_id       = "area-schedule-create"
    dialog_title    = {intl l="Create a delivery day" d="livraisonparsecteurs"}
    dialog_body     = {$smarty.capture.schedule_create nofilter}
    dialog_ok_label     = {intl l="Create"}
    dialog_cancel_label = {intl l="Cancel"}
    form_action        = {url path="admin/module/LivraisonParSecteurs/schedule/create"}
    form_enctype       = {form_enctype form=$form}
    }
{/form}