66 lines
3.1 KiB
HTML
66 lines
3.1 KiB
HTML
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
|
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
|
|
</div>
|
|
</div>
|
|
<input type="hidden" name="row[rules]" />
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Tel')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-tel" data-rule="required" class="form-control" name="row[tel]" type="text" value="">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Area_id')}:</label>
|
|
<div class='col-xs-12 col-sm-8'>
|
|
<input id="c-city" data-rule="required" class="form-control" data-toggle="city-picker" name="row[address]" type="text" value="" />
|
|
<input id="area_id" style="display: none" class="form-control" name="row[area_id]" hidden type="text" value="" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">师傅归属:</label>
|
|
<div class='col-xs-12 col-sm-8'>
|
|
<select data-live-search="true" id="worker_type" name="row[type]" class="form-control">
|
|
<option value="1">自营</option>
|
|
<option value="2">非自营</option>
|
|
<option value="3">新师傅</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Deposit_amount')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-deposit_amount" data-rule="required" class="form-control" step="0.01" name="row[deposit_amount]" type="number" value="0.00">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Star')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-star" data-rule="required" class="form-control" max="5" min="1" step="0.1" name="row[star]" type="number" value="5.0">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">师傅技能:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<span class="text-muted"><input type="checkbox" name="" id="checkall" /> <label for="checkall"><span>{:__('Check all')}</span></label></span>
|
|
<span class="text-muted"><input type="checkbox" name="" id="expandall" /> <label for="expandall"><span>{:__('Expand all')}</span></label></span>
|
|
|
|
<div id="treeview"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group layer-footer">
|
|
<label class="control-label col-xs-12 col-sm-2"></label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<script>
|
|
var nodeData = {:json_encode($tree); };
|
|
</script> |