// Adding footer to customer requiered fields

This commit is contained in:
Jerome Nadaud
2013-11-21 09:46:27 +01:00
parent 2df142eb89
commit 0b47dbca21
@@ -33,30 +33,36 @@
<div class="alert alert-info">
{l s='Select the fields you would like to be required for this section.'}
</div>
<table class="table">
<thead>
<tr>
<th class="fixed-width-xs">
<input type="checkbox" onclick="checkDelBoxes(this.form, 'fieldsBox[]', this.checked)" class="noborder" name="checkme">
</th>
<th><span class="title_box">{l s='Field Name'}</span></th>
</tr>
</thead>
<tbody>
{foreach $table_fields as $field}
{if !in_array($field, $required_class_fields)}
<tr>
<td class="noborder">
<input type="checkbox" name="fieldsBox[]" value="{$field}" {if in_array($field, $required_fields)} checked="checked"{/if} />
</td>
<td>
{$field}
</td>
</tr>
{/if}
{/foreach}
</tbody>
</table>
<button class="btn btn-default pull-right" type="submit" name="submitFields"><i class="icon-save"></i> {l s='Save'}</button>
<div class="row">
<table class="table">
<thead>
<tr>
<th class="fixed-width-xs">
<input type="checkbox" onclick="checkDelBoxes(this.form, 'fieldsBox[]', this.checked)" class="noborder" name="checkme">
</th>
<th><span class="title_box">{l s='Field Name'}</span></th>
</tr>
</thead>
<tbody>
{foreach $table_fields as $field}
{if !in_array($field, $required_class_fields)}
<tr>
<td class="noborder">
<input type="checkbox" name="fieldsBox[]" value="{$field}" {if in_array($field, $required_fields)} checked="checked"{/if} />
</td>
<td>
{$field}
</td>
</tr>
{/if}
{/foreach}
</tbody>
</table>
</div>
<div class="panel-footer">
<button name="submitFields" type="submit" class="btn btn-default pull-right">
<i class="process-icon-save "></i> <span>{l s='Save'}</span>
</button>
</div>
</form>
</div>