111 lines
6.2 KiB
HTML
111 lines
6.2 KiB
HTML
|
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||
|
<input type="hidden" name="row[brand_id]" id="c-brand_id" value="1"/>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Camp_id')}<span style="color: red;">*</span>:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-camp_id" placeholder="请选择" data-rule="required" data-source="xilufitness/course/camp/index" data-field="title" class="form-control selectpage" name="row[camp_id]" type="text" value="">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Shop_id')}<span style="color: red;">*</span>:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-shop_id" min="0" placeholder="请选择" data-rule="required" data-source="xilufitness/shop/index" data-field="shop_name" data-multiple="true" class="form-control selectpage" type="text" value="">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group" style="display: none;">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Coach_list')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8" id="coach_list">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Camp_duration')}<span style="color: red;">*</span>:</label>
|
||
|
<div class="col-xs-12 col-sm-4">
|
||
|
<div class="input-group">
|
||
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||
|
<input id="c-start_at" placeholder="请选择" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" name="row[start_at]" type="text">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-xs-12 col-sm-4">
|
||
|
<div class="input-group">
|
||
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||
|
<input id="c-end_at" placeholder="请选择" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" name="row[end_at]" type="text">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Class_duration')}<span style="color: red;">*</span>:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<div class="input-group">
|
||
|
<input id="c-class_duration" placeholder="请输入" data-rule="required" class="form-control" name="row[class_duration]" type="text">
|
||
|
<div class="input-group-addon">/{:__('Minute')}</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Sign_count')}<span style="color: red;">*</span>:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-sign_count" min="0" placeholder="请输入" data-rule="required" class="form-control" name="row[sign_count]" type="number" value="1">
|
||
|
<span class="help-block" style="color: red;">用户报名可选人数的配置</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Camp_count')}<span style="color: red;">*</span>:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-camp_count" min="0" placeholder="请输入" data-rule="required" class="form-control" name="row[camp_count]" type="number" value="">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Total_count')}<span style="color: red;">*</span>:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-total_count" min="0" placeholder="请输入" data-rule="required" class="form-control" name="row[total_count]" type="number" value="">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Camp_plan')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<table class="table table-condensed">
|
||
|
<tbody id="plan_list">
|
||
|
<tr>
|
||
|
<td>{:__('Plan_date')}</td>
|
||
|
<td>{:__('Start_at')}</td>
|
||
|
<td>{:__('End_at')}</td>
|
||
|
<td><span class="btn btn-success addPlan"><i class="fa fa-plus"></i>{:__('Add_plan')}</span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><input placeholder="请选择" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" name="row[day_date][]" type="text"></td>
|
||
|
<td><input placeholder="请选择" data-rule="required" class="form-control datetimepicker" data-date-format="HH:mm" name="row[day_start_at][]" type="text"></td>
|
||
|
<td><input placeholder="请选择" data-rule="required" class="form-control datetimepicker" data-date-format="HH:mm" name="row[day_end_at][]" type="text"></td>
|
||
|
<td><span class="btn btn-danger delPlan"><i class="fa fa-trash"></i>{:__('Del_plan')}</span></td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<textarea id="c-description" placeholder="请输入" class="form-control" name="row[description]" rows="5"></textarea>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
|
||
|
<div class="radio">
|
||
|
{foreach name="statusList" item="vo"}
|
||
|
<label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label>
|
||
|
{/foreach}
|
||
|
</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>
|