2014-01-21 10:26:22 +00:00
|
|
|
{assign var='required_fields' value=$userquery->load_signup_fields()}
|
|
|
|
{assign var='custom_field' value=$userquery->custom_signup_fields}
|
2014-05-09 10:34:00 +00:00
|
|
|
<div class="heading">
|
|
|
|
<h2>Add New User</h2>
|
|
|
|
</div>
|
2014-02-04 14:08:41 +00:00
|
|
|
|
2014-02-25 09:58:26 +00:00
|
|
|
<p class="alert alert-info">Required Member Details</p>
|
|
|
|
<form action="" method="post">
|
|
|
|
<div class="row">
|
2014-02-04 14:08:41 +00:00
|
|
|
|
2014-02-25 09:58:26 +00:00
|
|
|
{$field.class = 'form-control'}
|
|
|
|
{$field = $required_fields[0]}
|
|
|
|
{$field.class = 'form-control'}
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="{$field.id}">{$field.title}</label>
|
|
|
|
{if $field.hint_1}{$field.hint_1}<br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}{if $field.hint_2}{$field.hint_2}{/if}
|
|
|
|
</div>
|
|
|
|
{$field = $required_fields[1]}
|
|
|
|
{$field.class = 'form-control'}
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="{$field.id}">{$field.title}</label>
|
|
|
|
{if $field.hint_1}{$field.hint_1}<br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}{if $field.hint_2}{$field.hint_2}{/if}
|
|
|
|
</div>
|
|
|
|
{$field = $required_fields[6]}
|
|
|
|
{$field.class = 'form-control'}
|
|
|
|
{$field.id = 'datecreated'}
|
|
|
|
<div class="col-md-4 ">
|
|
|
|
<span class="glyphicon glyphicon-calendar"></span>
|
|
|
|
<label for="{$field.id}" >{$field.title}</label>
|
|
|
|
{if $field.hint_1}{$field.hint_1}<br>{/if} {ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}{if $field.hint_2}{$field.hint_2}{/if}
|
2014-01-21 10:26:22 +00:00
|
|
|
|
2014-02-25 09:58:26 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
{$field = $required_fields[2]}
|
2014-01-21 14:07:24 +00:00
|
|
|
{$field.class = 'form-control'}
|
2014-02-25 09:58:26 +00:00
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="{$field.id}">{$field.title}</label>
|
2014-01-21 10:26:22 +00:00
|
|
|
{if $field.hint_1}{$field.hint_1}<br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}{if $field.hint_2}{$field.hint_2}{/if}
|
|
|
|
</div>
|
2014-02-25 09:58:26 +00:00
|
|
|
{$field = $required_fields[7]}
|
|
|
|
{$field.class = 'form-control'}
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="{$field.id}">{$field.title}</label>
|
|
|
|
{if $field.hint_1}{$field.hint_1}<br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}{if $field.hint_2}{$field.hint_2}{/if}
|
2014-01-21 10:26:22 +00:00
|
|
|
</div>
|
2014-02-25 09:58:26 +00:00
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="active">Status</label>
|
|
|
|
<select class="form-control" name="active" id="active">
|
|
|
|
<option value="Ok">Active</option>
|
|
|
|
<option value="ToActivate">Inactive</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-01-21 10:26:22 +00:00
|
|
|
|
2014-02-25 09:58:26 +00:00
|
|
|
<br>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
{$field = $required_fields[3]}
|
|
|
|
{$field.class = 'form-control'}
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="{$field.id}">{$field.title}</label>
|
|
|
|
{if $field.hint_1}{$field.hint_1}<br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}{if $field.hint_2}{$field.hint_2}{/if}
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="level">User level</label>
|
|
|
|
<select class="form-control" name="level" id="level">
|
|
|
|
{assign var=levels value=$userquery->get_levels()}
|
|
|
|
{foreach from=$levels item=level}
|
|
|
|
<option value="{$level.user_level_id}" {if $smarty.post.level==$level.user_level_id} selected{elseif $level.user_level_id==2}selected{/if}>{$level.user_level_name}</option>
|
|
|
|
{/foreach}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
{$field = $required_fields[5]}
|
|
|
|
{$field.class = 'form-control'}
|
|
|
|
{$field.type = 'dropdown'}
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="{$field.id}">{$field.title}</label>
|
|
|
|
{if $field.hint_1}{$field.hint_1}<br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}{if $field.hint_2}{$field.hint_2}{/if}
|
|
|
|
</div>
|
2014-01-21 10:26:22 +00:00
|
|
|
</div>
|
2014-02-25 09:58:26 +00:00
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
{$field = $required_fields[4]}
|
|
|
|
{$field.class = 'form-control'}
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="{$field.id}">{$field.title}</label>
|
|
|
|
{if $field.hint_1}{$field.hint_1}<br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}{if $field.hint_2}{$field.hint_2}{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
|
2014-01-21 10:26:22 +00:00
|
|
|
{if $custom_field}
|
|
|
|
<h3>Other Settings</h3>
|
|
|
|
{foreach from=$custom_field item=field}
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="{$field.id}" class="label">{$field.title}</label>
|
|
|
|
{$field.class=form-control}
|
|
|
|
{if $field.hint_1}{$field.hint_1}<br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}{if $field.hint_2}<br>{$field.hint_2}{/if}
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="submit" name="add_member" value="Add Member" class="btn btn-info" id="add_member" >
|
|
|
|
</div>
|
2014-02-25 09:58:26 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
$( "#datecreated" ).datepicker({
|
|
|
|
showOtherMonths: true,
|
|
|
|
selectOtherMonths: false,
|
|
|
|
dateFormat:"yy-mm-dd"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|