DiverseYouthNightSchool/application/admin/view/xilufitness/user/index/edit.html

92 lines
5.0 KiB
HTML
Raw Normal View History

2024-11-04 10:49:10 +08:00
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<input type="hidden" name="row[brand_id]" id="c-brand_id" value="{$row.brand_id|htmlentities}"/>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}<span style="color: red;">*</span>:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-nickname" data-rule="required" placeholder="请输入" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}<span style="color: red;">*</span>:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right" for="c-avatar"></span>
</div>
<ul class="row list-inline faupload-preview" id="p-avatar"></ul>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
<div class="col-xs-12 col-sm-8">
{:Form::radios("row[gender]",[0 => __('Unknow'), 1 => __('Male'), 2 => __('FeMale')],$row.gender)}
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Is_vip')}:</label>
<div class="col-xs-12 col-sm-8">
{:Form::radios("row[is_vip]",[0 => __('Vip_0'), 1 => __('Vip_1')],$row.is_vip)}
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Point')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-point" min="0" readonly class="form-control" name="row[point]" type="number" value="{$row.point|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Account')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-account" min="0" readonly class="form-control" step="0.01" name="row[account]" type="number" value="{$row.account|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Train_day')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-train_day" min="0" readonly class="form-control" name="row[train_day]" type="number" value="{$row.train_day|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Train_duration')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-train_duration" readonly min="0" class="form-control" step="0.1" name="row[train_duration]" type="number" value="{$row.train_duration|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Train_count')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-train_count" readonly min="0" class="form-control" name="row[train_count]" type="number" value="{$row.train_count|htmlentities}">
</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="$row.status"}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>