{form name='lps-area-general-update'}
    <div class="form-container">

        {if $form_error}
        <div class="alert alert-danger">{$form_error_message}</div>
        {/if}

        {loop name="area" type="lps_area" id="$area_id"}
        <form action="{url path='/admin/module/LivraisonParSecteurs/edit' area_id={$area_id}}" method="POST" class="clearfix"  {form_enctype form=$form}>
            {form_hidden_fields form=$form}

            {include
            file = "includes/inner-form-toolbar.html"
            hide_flags = true
            hide_submit_buttons = false
            page_url     = "{url path='/admin/module/LivraisonParSecteurs/edit' area_id=$area_id}"
            close_url    = "{url path='/admin/module/LivraisonParSecteurs'}"
            current_tab = "general"
            }

            {form_field form=$form field="area_id"}
            <input type="hidden" name="{$name}" value="{$area_id}"/>
            {/form_field}

            <div class="row form-inline">
                <div class="col-md-6">
                    {form_field form=$form field="price"}
                    <div class="form-group form-inline">
                        <label class="control-label" for="{$label_attr.for}">
                            {intl l=$label d='livraisonparsecteurs'}
                            {if $required}<span class="required">*</span>{/if}
                        </label>

                        <input type="text" id="{$label_attr.for}" class="form-control" name="{$name}" value="{$PRICE}" {if $required}required{/if} />
                    </div>
                    {form_error form=$form field="price"}{$message}{/form_error}
                    {/form_field}
                </div>

                <div class="col-md-6">
                    {form_field form=$form field="active"}
                    <div class="form-group">
                        <label class="control-label" for="{$label_attr.for}">
                            {intl l=$label d='livraisonparsecteurs'}
                        </label>

                        <div class="make-switch switch-small toggle-active" data-id="{$ID}" data-on="success"
                             data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>"
                             data-off-label="<i class='glyphicon glyphicon-remove'></i>">
                            <input type="checkbox" class="link" {if $ACTIVE == 1}checked="checked"{/if}>
                        </div>
                        <input type="hidden" id="{$label_attr.for}" name="{$name}" value="{$ACTIVE}"/>
                    </div>
                    {/form_field}
                </div>
            </div>
        </form>
        {/loop}
    </div>
{/form}
