edit.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="form-group">
  3. <label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-type" data-rule="required" class="form-control selectpage" data-source="blog/block/selectpage_type" placeholder="类型为自定义,可任意输入" data-primary-key="type" data-field="type" name="row[type]" type="text" value="{$row.type}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}" placeholder="用于模板中标签调用">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <div class="input-group">
  24. <input id="c-image" data-rule="" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
  25. <div class="input-group-addon no-border no-padding">
  26. <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  27. <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  28. </div>
  29. <span class="msg-box n-right" for="c-image"></span>
  30. </div>
  31. <ul class="row list-inline plupload-preview" id="p-image"></ul>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label for="c-url" class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <input id="c-url" data-rule="" class="form-control" name="row[url]" type="text" value="{$row.url|htmlentities}">
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <textarea id="c-content" data-rule="" class="form-control editor" rows="15" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  48. <div class="col-xs-12 col-sm-4">
  49. <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <div class="radio">
  56. {foreach name="statusList" item="vo"}
  57. <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>
  58. {/foreach}
  59. </div>
  60. </div>
  61. </div>
  62. <div class="form-group layer-footer">
  63. <label class="control-label col-xs-12 col-sm-2"></label>
  64. <div class="col-xs-12 col-sm-8">
  65. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  66. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  67. </div>
  68. </div>
  69. </form>