作者 开飞机的舒克

学生管理优化

... ... @@ -67,12 +67,12 @@
<input id="c-phone" class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
</div>
</div>
{/* <div class="form-group">*/}
{/* <label class="control-label col-xs-12 col-sm-2">{:__('Earn_score')&cc;:</label>*/}
{/* <div class="col-xs-12 col-sm-8">*/}
{/* <input id="c-earn_score" class="form-control" step="0.01" name="row[earn_score]" type="number" value="{$row.earn_score|htmlentities&cc;">*/}
{/* </div>*/}
{/* </div>*/}
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Earn_score')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-earn_score" class="form-control" step="0.01" name="row[earn_score]" type="number" value="{$row.earn_score|htmlentities}">
</div>
</div>
{/* <div class="form-group">*/}
{/* <label class="control-label col-xs-12 col-sm-2">{:__('Unique')&cc;:</label>*/}
{/* <div class="col-xs-12 col-sm-8">*/}
... ...
... ... @@ -82,13 +82,13 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
columns: [
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'id', title: __('Id'),operate: false},
{field: 'name', title: __('Name'), operate: 'LIKE'},
{field: 'gender', title: __('Gender'), searchList: {"0":__('Gender 0'),"1":__('Gender 1')}, formatter: Table.api.formatter.normal},
{field: 'avatar', title: __('Avatar'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},
{field: 'phone', title: __('Phone'), operate: 'LIKE'},
{field: 'team.title', title: __('Team.title'), operate: 'LIKE'},
{field: 'team_rank', title: __('Team_rank')},
{field: 'team_rank', title: __('Team_rank'),operate: false},
{field: 'birthday', title: __('Birthday'),operate:false, addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime,datetimeFormat: "YYYY-MM-DD"},
{field: 'grade.name', title: __('Grade.name'), operate: 'LIKE'},
{field: 'school.title', title: __('School.title'), operate: 'LIKE'},
... ...