DiverseYouthNightSchool/application/admin/view/school/classes/evaluate/add.html

151 lines
8.2 KiB
HTML
Raw Permalink Normal View History

2024-12-11 19:03:47 +08:00
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
2024-12-11 19:03:47 +08:00
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Shop_id')}:</label>
2024-12-11 19:03:47 +08:00
<div class="col-xs-12 col-sm-8">
<input id="c-shop_id" data-rule="required" data-source="dyqc/manystore_shop/index" class="form-control selectpage" name="row[shop_id]" type="text" value="{$q_shop_id}">
2024-12-11 19:03:47 +08:00
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Teacher_id')}:</label>
2024-12-11 19:03:47 +08:00
<div class="col-xs-12 col-sm-8">
<input id="c-teacher_id" data-rule="required" data-source="school/classes/teacher/index" data-field="name" class="form-control selectpage" name="row[teacher_id]" type="text" value="{$q_teacher_id}">
2024-12-11 19:03:47 +08:00
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Classes_lib_id')}:</label>
2024-12-11 19:03:47 +08:00
<div class="col-xs-12 col-sm-8">
<input id="c-classes_lib_id" data-rule="required" data-source="school/classes/classes_lib/index" data-field="title" class="form-control selectpage" name="row[classes_lib_id]" type="text" value="{$q_classes_lib_id}">
2024-12-11 19:03:47 +08:00
</div>
</div>
2024-12-11 19:03:47 +08:00
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
2024-12-11 19:03:47 +08:00
<div class="col-xs-12 col-sm-8">
<input id="c-user_id" data-source="user/user/index" data-field="mobile" data-format-item="{id} - {nickname} - {mobile}" class="form-control selectpage" name="row[user_id]" type="text" value="{$q_user_id}">
<span style="color: red">(虚拟反馈则此项无需填写)</span>
2024-12-11 19:03:47 +08:00
</div>
</div>
2024-12-11 19:03:47 +08:00
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Classes_order_id')}:</label>
2024-12-11 19:03:47 +08:00
<div class="col-xs-12 col-sm-8">
<input id="c-classes_order_id" data-source="school/classes/order/order/index" data-field="order_no" class="form-control selectpage" name="row[classes_order_id]" type="text" value="{$q_classes_order_id}">
<span style="color: red">(虚拟反馈则此项无需填写)</span>
2024-12-11 19:03:47 +08:00
</div>
</div>
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Manystore_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-manystore_id" data-rule="required" data-source="manystore/index" class="form-control selectpage" name="row[manystore_id]" type="text" value="">-->
<!-- </div>-->
<!-- </div>-->
2024-12-11 19:03:47 +08:00
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$q_image}" >
2024-12-11 19:03:47 +08:00
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-image"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-image"></ul>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$q_nickname}">
2024-12-11 19:03:47 +08:00
</div>
</div>
2024-12-11 19:03:47 +08:00
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Classes_star')}: </label>
2024-12-11 19:03:47 +08:00
<div class="col-xs-12 col-sm-8">
<!-- <input id="c-classes_star" data-rule="required" class="form-control" step="0.1" name="row[classes_star]" type="number" value="{$row.classes_star|htmlentities}">-->
<input id="c-classes_star" name="row[classes_star]" type="text" data-rule="required" class="form-control slider" data-slider-min="5" data-slider-max="50" data-slider-step="5" data-slider-value="5" data-slider-tooltip="show" />
<span style="color: red">(5-50 对应 0.5星-5.0星)</span>
2024-12-11 19:03:47 +08:00
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Teacher_star')}:</label>
<div class="col-xs-12 col-sm-8">
<!-- <input id="c-teacher_star" data-rule="required" class="form-control" step="0.1" name="row[teacher_star]" type="number" value="{$row.teacher_star|htmlentities}">-->
<input id="c-teacher_star" name="row[teacher_star]" type="text" data-rule="required" class="form-control slider" data-slider-min="5" data-slider-max="50" data-slider-step="5" data-slider-value="5" data-slider-tooltip="show" />
<span style="color: red">(5-50 对应 0.5星-5.0星)</span>
2024-12-11 19:03:47 +08:00
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Shop_star')}:</label>
<div class="col-xs-12 col-sm-8">
<!-- <input id="c-shop_star" data-rule="required" class="form-control" step="0.1" name="row[shop_star]" type="number" value="{$row.shop_star|htmlentities}">-->
<input id="c-shop_star" name="row[shop_star]" type="text" data-rule="required" class="form-control slider" data-slider-min="5" data-slider-max="50" data-slider-step="5" data-slider-value="5" data-slider-tooltip="show" />
<span style="color: red">(5-50 对应 0.5星-5.0星)</span>
2024-12-11 19:03:47 +08:00
</div>
</div>
2024-12-11 19:03:47 +08:00
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Message_text')}:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="c-message_text" data-rule="required" class="form-control " rows="5" name="row[message_text]" cols="50"></textarea>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Evaluate_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-evaluate_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[evaluate_time]" type="text" value="{:date('Y-m-d H:i:s')}">
</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="1"}checked{/in} /> {$vo}</label>
{/foreach}
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Top')}:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-top" class="form-control selectpicker" name="row[top]">
{foreach name="topList" item="vo"}
<option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
</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>