edit.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <link href="__CDN__/assets/addons/wechat/css/menu.css?v={$site.version}" rel="stylesheet">
  2. <style>
  3. .clickbox {margin:0;text-align: left;}
  4. .create-click {
  5. margin-left:0;
  6. }
  7. </style>
  8. <form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
  9. <!-- <div class="form-group">-->
  10. <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>-->
  11. <!-- <div class="col-xs-12 col-sm-8">-->
  12. <!-- <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" value="{$row.cid}">-->
  13. <!-- </div>-->
  14. <!-- </div>-->
  15. {eq name="admin.cid" value="0"}
  16. <div class="form-group">
  17. <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
  18. <div class="col-xs-12 col-sm-8">
  19. <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" value="{$row.cid}">
  20. </div>
  21. </div>
  22. {else/}
  23. <input id="c-cid" name="row[cid]" type="hidden" value="{$admin.cid}">
  24. {/eq}
  25. <div class="form-group">
  26. <label for="c-plan_id" class="control-label col-xs-12 col-sm-2">{:__('Plan_id')}:</label>
  27. <div class="col-xs-12 col-sm-8">
  28. <input type="text" name="row[plan_id]" value="{$row.plan_id}" id="c-plan_id" class="form-control" data-rule="required" />
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label class="control-label col-xs-12 col-sm-2">{:__('Hidedata')}:</label>
  33. <div class="col-xs-12 col-sm-8">
  34. <div class="radio">
  35. {foreach name="hidedataList" item="vo"}
  36. <label for="row[hidedata]-{$key}"><input id="row[hidedata]-{$key}" name="row[hidedata]" type="radio" value="{$key}" {in name="key" value="$row.hidedata"}checked{/in} /> {$vo}</label>
  37. {/foreach}
  38. </div>
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  43. <div class="col-xs-12 col-sm-8">
  44. <input type="text" name="row[title]" value="{$row.title}" id="c-title" class="form-control" data-rule="required" />
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label for="c-info" class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
  49. <div class="col-xs-12 col-sm-8">
  50. <input type="text" name="row[info]" value="{$row.info}" id="c-info" class="form-control" data-rule="required" />
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  55. <div class="col-xs-12 col-sm-8">
  56. <div class="input-group">
  57. <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
  58. <div class="input-group-addon no-border no-padding">
  59. <span><button type="button" id="faupload-image" class="btn btn-danger faupload" 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>
  60. <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>
  61. </div>
  62. <span class="msg-box n-right" for="c-image"></span>
  63. </div>
  64. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  65. </div>
  66. </div>
  67. <div class="form-group">
  68. <label class="control-label col-xs-12 col-sm-2">{:__('Text')}:</label>
  69. <div class="col-xs-12 col-sm-8">
  70. <textarea id="c-text" data-rule="required" class="form-control editor" rows="5" name="row[text]" cols="50">{$row.text|htmlentities}</textarea>
  71. </div>
  72. </div>
  73. <!-- <div class="form-group">-->
  74. <!-- <label for="c-text" class="control-label col-xs-12 col-sm-2">{:__('Text')}:</label>-->
  75. <!-- <div class="col-xs-12 col-sm-8">-->
  76. <!-- <input type="text" name="row[text]" value="{$row.text}" id="c-text" class="form-control" data-rule="required; remote(wechat/plan/check_text_unique, except={$row.text})" />-->
  77. <!-- </div>-->
  78. <!-- </div>-->
  79. <div class="form-group hide layer-footer">
  80. <label class="control-label col-xs-12 col-sm-2"></label>
  81. <div class="col-xs-12 col-sm-8">
  82. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  83. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  84. </div>
  85. </div>
  86. </form>