{form name=$form_name}
{form_hidden_fields form=$form}

{render_form_field form=$form field="success_url" value={url path="/admin/module/LivraisonParSecteurs/edit?area_id={$area_id}#cities"}}
{render_form_field form=$form field="error_url" value={url path="/admin/module/LivraisonParSecteurs/edit?area_id={$area_id}#cities"}}

{form_field form=$form field="area_id"}
<div class="form-group hidden">
    <input type="hidden" class="form-control" name="{$name}" id="{$label_attr.for}"
           value="{$area_id}"/>
</div>
{/form_field}

<div class="row">
    <div class="col-sm-12">

        {form_field form=$form field="zipcode"}
        <div class="form-group">
            <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="" {if $required}required{/if} />
        </div>
        {form_error form=$form field="zipcode"}{$message}{/form_error}
        {/form_field}

        {form_field form=$form field="title"}
        <div class="form-group">
            <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="" {if $required}required{/if} />
        </div>
        {form_error form=$form field="title"}{$message}{/form_error}
        {/form_field}

        <div class="row">
            <div class="col-sm-6">
                {form_field form=$form field="latitude"}
                <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="" {if $required}required{/if} />
                </div>
                {form_error form=$form field="latitude"}{$message}{/form_error}
                {/form_field}
            </div>
            <div class="col-sm-6">
                {form_field form=$form field="longitude"}
                <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="" {if $required}required{/if} />
                </div>
                {form_error form=$form field="longitude"}{$message}{/form_error}
                {/form_field}
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <span class="help-block" style="text-align: center">{intl l="Format to respect" d="livraisonparsecteurs"}</span>
            </div>
        </div>

    </div>
</div>
{/form}