edit.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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">{:__('用户昵称')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group" style="display: none">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Eye_type')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <select id="c-eye_type" data-rule="required" class="form-control selectpicker" name="row[eye_type]">
  12. {foreach name="eyeTypeList" item="vo"}
  13. <option value="{$key}" {in name="key" value="$row.eye_type"}selected{/in}>{$vo}</option>
  14. {/foreach}
  15. </select>
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-content" data-rule="required" class="form-control" name="row[content]" type="text" value="{$row.content|htmlentities}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Cover')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <div class="input-group">
  28. <input id="c-cover" class="form-control" size="50" name="row[cover]" type="text" value="{$row.cover|htmlentities}">
  29. <div class="input-group-addon no-border no-padding">
  30. <span><button type="button" id="faupload-cover" class="btn btn-danger faupload" data-input-id="c-cover" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-cover"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  31. <span><button type="button" id="fachoose-cover" class="btn btn-primary fachoose" data-input-id="c-cover" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  32. </div>
  33. <span class="msg-box n-right" for="c-cover"></span>
  34. </div>
  35. <ul class="row list-inline faupload-preview" id="p-cover"></ul>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Album')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <div class="input-group">
  42. <input id="c-album" class="form-control" size="50" name="row[album]" type="text" value="{$row.album|htmlentities}">
  43. <div class="input-group-addon no-border no-padding">
  44. <span><button type="button" id="faupload-album" class="btn btn-danger faupload" data-input-id="c-album" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-album"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  45. <span><button type="button" id="fachoose-album" class="btn btn-primary fachoose" data-input-id="c-album" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  46. </div>
  47. <span class="msg-box n-right" for="c-album"></span>
  48. </div>
  49. <ul class="row list-inline faupload-preview" id="p-album"></ul>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Is_main')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <select id="c-is_main" data-rule="required" class="form-control selectpicker" name="row[is_main]">
  56. {foreach name="isMainList" item="vo"}
  57. <option value="{$key}" {in name="key" value="$row.is_main"}selected{/in}>{$vo}</option>
  58. {/foreach}
  59. </select>
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <div class="radio">
  66. {foreach name="statusList" item="vo"}
  67. <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>
  68. {/foreach}
  69. </div>
  70. </div>
  71. </div>
  72. <div class="form-group">
  73. <label class="control-label col-xs-12 col-sm-2">{:__('Weight')}:</label>
  74. <div class="col-xs-12 col-sm-8">
  75. <input id="c-weight" class="form-control" name="row[weight]" type="number" value="{$row.weight|htmlentities}">
  76. </div>
  77. </div>
  78. <div class="form-group layer-footer">
  79. <label class="control-label col-xs-12 col-sm-2"></label>
  80. <div class="col-xs-12 col-sm-8">
  81. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  82. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  83. </div>
  84. </div>
  85. </form>