2016-07-20 00:46:51 +02:00
|
|
|
<form action='{$LSform_action}' method='post' enctype="multipart/form-data" class='LSform form-horizontal'>
|
2008-11-03 20:25:22 +01:00
|
|
|
{$LSform_header}
|
|
|
|
{if $LSform_layout}
|
|
|
|
<!-- Tabs - Start Title -->
|
2016-07-20 00:46:51 +02:00
|
|
|
<ul class="nav nav-tabs">
|
2008-11-03 20:25:22 +01:00
|
|
|
{foreach from=$LSform_layout item=tab key=tab_key}
|
2016-07-21 01:05:37 +02:00
|
|
|
<li role="presentation" class='LSform_layout' id='LSform_layout_btn_{$tab_key}'><a href="#{$tab_key}">{tr msg=$tab.label}</a></li>
|
2008-11-03 20:25:22 +01:00
|
|
|
{/foreach}
|
|
|
|
</ul>
|
|
|
|
<!-- Tabs - End Title -->
|
2016-07-21 01:05:37 +02:00
|
|
|
{/if}
|
2008-11-03 20:25:22 +01:00
|
|
|
|
2016-07-20 00:46:51 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8">
|
|
|
|
|
2016-07-21 01:05:37 +02:00
|
|
|
{if $LSform_layout}
|
2008-11-03 20:25:22 +01:00
|
|
|
<!-- Tabs - Start Content -->
|
|
|
|
{foreach from=$LSform_layout item=tab key=tab_key}
|
2008-11-04 14:30:17 +01:00
|
|
|
<a name='{$tab_key}'></a>
|
2012-09-02 20:12:26 +02:00
|
|
|
<h2 class='LSform_layout'>{tr msg=$tab.label}</h2>
|
2008-11-10 03:03:44 +01:00
|
|
|
<div class='LSform LSform_layout' id='LSform_layout_div_{$tab_key}'>
|
2008-11-03 20:25:22 +01:00
|
|
|
|
2016-07-20 00:46:51 +02:00
|
|
|
<div class='LSform_container'>
|
2008-11-03 20:25:22 +01:00
|
|
|
{foreach from=$tab.args item=arg}
|
|
|
|
{if $LSform_fields[$arg]}
|
2016-07-20 00:46:51 +02:00
|
|
|
<div class="LSform_attribute form-group{if $LSform_fields[$arg].errors != ''} has-error{/if}">
|
|
|
|
<label class="col-md-4 control-label">{$LSform_fields[$arg].label}{if $LSform_fields[$arg].required} *{/if}{if $LSform_fields[$arg].help_info!=""} <img class='LStips' src="{img name='help'}" alt='?' title="{$LSform_fields[$arg].help_info}"/>{/if}</label>
|
|
|
|
<div class="col-md-8">{$LSform_fields[$arg].html}{if $LSform_fields[$arg].add != ''} <span class='LSform-addfield'>+ Ajouter un champ</span>{/if}</div>
|
|
|
|
</div>
|
2008-11-03 20:25:22 +01:00
|
|
|
{if $LSform_fields[$arg].errors != ''}
|
|
|
|
{foreach from=$LSform_fields[$arg].errors item=error}
|
2016-07-21 01:05:37 +02:00
|
|
|
<div class="form-group LSform-errors">
|
|
|
|
<div class='col-md-offset-4 col-md-8 has-error'>{$error}</div>
|
|
|
|
</div>
|
2008-11-03 20:25:22 +01:00
|
|
|
{/foreach}
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
2016-07-20 00:46:51 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<div class='col-md-offset-4 col-md-8'>
|
|
|
|
<button type="submit" class="btn btn-default">{$LSform_submittxt}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2008-11-03 20:25:22 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
<!-- Tabs - End Content -->
|
|
|
|
{else}
|
2016-07-20 00:46:51 +02:00
|
|
|
<div class='LSform_container'>
|
|
|
|
{foreach from=$LSform_fields item=field}
|
2016-07-21 01:05:37 +02:00
|
|
|
<div class="LSform_attribute form-group{if $field.errors != ''} has-error{/if}">
|
2016-07-20 00:46:51 +02:00
|
|
|
<label class="col-md-4 control-label">{$field.label}{if $field.required} *{/if}{if $field.help_info!=""} <img class='LStips' src="{img name='help'}" alt='?' title="{$field.help_info}"/>{/if}</label>
|
|
|
|
<div class="col-md-8">{$field.html}{if $field.add != ''} <span class='LSform-addfield'>+ Ajouter un champ</span>{/if}</div>
|
|
|
|
</div>
|
2008-11-03 20:25:22 +01:00
|
|
|
{if $field.errors != ''}
|
|
|
|
{foreach from=$field.errors item=error}
|
2016-07-21 01:05:37 +02:00
|
|
|
<div class="form-group LSform-errors">
|
|
|
|
<div class='col-md-offset-4 col-md-8 has-error'>{$error}</div>
|
2016-07-20 00:46:51 +02:00
|
|
|
</div>
|
2008-11-03 20:25:22 +01:00
|
|
|
{/foreach}
|
|
|
|
{/if}
|
2016-07-20 00:46:51 +02:00
|
|
|
{/foreach}
|
|
|
|
<div class="form-group">
|
|
|
|
<div class='col-md-offset-4 col-md-8'>
|
|
|
|
<button type="submit" class="btn btn-default">{$LSform_submittxt}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2008-11-03 20:25:22 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{/if}
|
2016-07-21 01:05:37 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-4">
|
|
|
|
{if $LSformElement_image!=''}
|
|
|
|
<div class='LSformElement_image{if $LSformElement_image_errors} LSformElement_image_errors{/if}'>
|
|
|
|
{if $LSformElement_image_actions!='' && !$LSformElement_image_errors}
|
|
|
|
<ul class='LSformElement_image_actions'>
|
|
|
|
<li><img src='{img name="zoom"}' class='LSformElement_image_actions LSformElement_image_action_zoom' id='LSformElement_image_action_zoom_{$LSformElement_image.id}' /></li>
|
|
|
|
{foreach from=$LSformElement_image_actions item=item}
|
|
|
|
<li><img src='{img name=$item}' class='LSformElement_image_actions LSformElement_image_action_{$item}' id='LSformElement_image_action_{$item}_{$LSformElement_image.id}' /></li>
|
|
|
|
{/foreach}
|
|
|
|
</ul>
|
|
|
|
{/if}
|
|
|
|
<img src='{$LSformElement_image.img}' class='LSformElement_image LSsmoothbox' id='LSformElement_image_{$LSformElement_image.id}' />
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2008-11-03 20:25:22 +01:00
|
|
|
</form>
|