作者 王智

1

1 <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action=""> 1 <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
2 2
3 - <div class="form-group">  
4 - <label class="control-label col-xs-12 col-sm-2">{:__('Token')}:</label>  
5 - <div class="col-xs-12 col-sm-8">  
6 - <input id="c-token" class="form-control" name="row[token]" type="text" value="{$row.token|htmlentities}">  
7 - </div>  
8 - </div>  
9 - <div class="form-group">  
10 - <label class="control-label col-xs-12 col-sm-2">{:__('Openid')}:</label>  
11 - <div class="col-xs-12 col-sm-8">  
12 - <input id="c-openid" data-rule="required" class="form-control" name="row[openid]" type="text" value="{$row.openid|htmlentities}">  
13 - </div>  
14 - </div>  
15 - <div class="form-group">  
16 - <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>  
17 - <div class="col-xs-12 col-sm-8">  
18 - <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">  
19 - </div>  
20 - </div>  
21 - <div class="form-group">  
22 - <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>  
23 - <div class="col-xs-12 col-sm-8">  
24 - <div class="input-group">  
25 - <input id="c-avatar" data-rule="required" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">  
26 - <div class="input-group-addon no-border no-padding">  
27 - <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" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>  
28 - <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>  
29 - </div>  
30 - <span class="msg-box n-right" for="c-avatar"></span>  
31 - </div>  
32 - <ul class="row list-inline faupload-preview" id="p-avatar"></ul>  
33 - </div>  
34 - </div> 3 +<!-- <div class="form-group">-->
  4 +<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Token')}:</label>-->
  5 +<!-- <div class="col-xs-12 col-sm-8">-->
  6 +<!-- <input id="c-token" class="form-control" name="row[token]" type="text" value="{$row.token|htmlentities}">-->
  7 +<!-- </div>-->
  8 +<!-- </div>-->
  9 +<!-- <div class="form-group">-->
  10 +<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Openid')}:</label>-->
  11 +<!-- <div class="col-xs-12 col-sm-8">-->
  12 +<!-- <input id="c-openid" data-rule="required" class="form-control" name="row[openid]" type="text" value="{$row.openid|htmlentities}">-->
  13 +<!-- </div>-->
  14 +<!-- </div>-->
  15 +<!-- <div class="form-group">-->
  16 +<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>-->
  17 +<!-- <div class="col-xs-12 col-sm-8">-->
  18 +<!-- <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">-->
  19 +<!-- </div>-->
  20 +<!-- </div>-->
  21 +<!-- <div class="form-group">-->
  22 +<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>-->
  23 +<!-- <div class="col-xs-12 col-sm-8">-->
  24 +<!-- <div class="input-group">-->
  25 +<!-- <input id="c-avatar" data-rule="required" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">-->
  26 +<!-- <div class="input-group-addon no-border no-padding">-->
  27 +<!-- <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" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
  28 +<!-- <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>-->
  29 +<!-- </div>-->
  30 +<!-- <span class="msg-box n-right" for="c-avatar"></span>-->
  31 +<!-- </div>-->
  32 +<!-- <ul class="row list-inline faupload-preview" id="p-avatar"></ul>-->
  33 +<!-- </div>-->
  34 +<!-- </div>-->
35 <div class="form-group"> 35 <div class="form-group">
36 <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label> 36 <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
37 <div class="col-xs-12 col-sm-8"> 37 <div class="col-xs-12 col-sm-8">
@@ -7,7 +7,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -7,7 +7,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
7 extend: { 7 extend: {
8 index_url: 'user/index' + location.search, 8 index_url: 'user/index' + location.search,
9 add_url: 'user/add', 9 add_url: 'user/add',
10 - // edit_url: 'user/edit', 10 + edit_url: 'user/edit',
11 // del_url: 'user/del', 11 // del_url: 'user/del',
12 multi_url: 'user/multi', 12 multi_url: 'user/multi',
13 import_url: 'user/import', 13 import_url: 'user/import',
@@ -32,7 +32,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -32,7 +32,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
32 {field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1')}, formatter: Table.api.formatter.status}, 32 {field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1')}, formatter: Table.api.formatter.status},
33 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, 33 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
34 {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, 34 {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
35 - // {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} 35 + {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
36 ] 36 ]
37 ] 37 ]
38 }); 38 });