edit.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <!--<div class="form-group">
  3. <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-username" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
  6. </div>
  7. </div>-->
  8. <!--<div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-company_id" data-rule="required" data-source="company/index" data-field="companyname" class="form-control selectpage" name="row[company_id]" type="text" value="{$row.company_id|htmlentities}">
  12. </div>
  13. </div>-->
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Contactname')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-contactname" class="form-control" name="row[contactname]" type="text" value="{$row.contactname|htmlentities}">
  24. </div>
  25. </div>
  26. <!--<div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-mobile" disabled class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
  30. </div>
  31. </div>-->
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <div class="input-group">
  36. <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
  37. <div class="input-group-addon no-border no-padding">
  38. <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>
  39. <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>
  40. </div>
  41. <span class="msg-box n-right" for="c-avatar"></span>
  42. </div>
  43. <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  44. </div>
  45. </div>
  46. <!--<div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Prevtime')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <input id="c-prevtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[prevtime]" type="text" value="{:$row.prevtime?datetime($row.prevtime):''}">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Logintime')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-logintime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[logintime]" type="text" value="{:$row.logintime?datetime($row.logintime):''}">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Loginip')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-loginip" class="form-control" name="row[loginip]" type="text" value="{$row.loginip|htmlentities}">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Joinip')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-joinip" class="form-control" name="row[joinip]" type="text" value="{$row.joinip|htmlentities}">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Jointime')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-jointime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[jointime]" type="text" value="{:$row.jointime?datetime($row.jointime):''}">
  74. </div>
  75. </div>-->
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <div class="radio">
  80. {foreach name="statusList" item="vo"}
  81. <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>
  82. {/foreach}
  83. </div>
  84. </div>
  85. </div>
  86. <!--<div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2">{:__('Mini_openid')}:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <input id="c-mini_openid" class="form-control" name="row[mini_openid]" type="text" value="{$row.mini_openid|htmlentities}">
  90. </div>
  91. </div>-->
  92. <div class="form-group">
  93. <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
  94. <div class="col-xs-12 col-sm-8">
  95. <input id="c-address" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
  96. </div>
  97. </div>
  98. <div class="form-group layer-footer">
  99. <label class="control-label col-xs-12 col-sm-2"></label>
  100. <div class="col-xs-12 col-sm-8">
  101. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  102. </div>
  103. </div>
  104. </form>