add.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <form id="add-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="">
  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]" placeholder="用于模板中标签调用" type="text">
  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">
  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="">
  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="">
  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"></textarea>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <div class="radio">
  50. {foreach name="statusList" item="vo"}
  51. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label>
  52. {/foreach}
  53. </div>
  54. </div>
  55. </div>
  56. <div class="form-group layer-footer">
  57. <label class="control-label col-xs-12 col-sm-2"></label>
  58. <div class="col-xs-12 col-sm-8">
  59. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  60. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  61. </div>
  62. </div>
  63. </form>