edit.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  11. <div class="col-xs-12 col-sm-8">
  12. <input type="text" name="row[title]" value="{$row.title}" id="c-title" class="form-control" data-rule="required" />
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label for="c-text" class="control-label col-xs-12 col-sm-2">{:__('Text')}:</label>
  17. <div class="col-xs-12 col-sm-8">
  18. <input type="text" name="row[text]" value="{$row.text}" id="c-text" class="form-control" data-rule="required; remote(wechat/autoreply/check_text_unique, except={$row.text})" />
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label for="c-eventkey" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  23. <div class="col-xs-12 col-sm-8">
  24. <div class="clickbox">
  25. <input type="hidden" name="row[eventkey]" id="c-eventkey" class="form-control" value="{$row.eventkey}" data-rule="required" readonly />
  26. <span class="create-click"><a href="wechat/response/select" id="select-resources"><i class="weixin-icon big-add-gray"></i><strong>选择现有资源</strong></a><div class="keytitle">资源名:{:$response['title']}</div></span>
  27. <span class="create-click"><a href="wechat/response/add" id="add-resources"><i class="weixin-icon big-add-gray"></i><strong>添加新资源</strong></a></span>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label for="c-remark" class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  33. <div class="col-xs-12 col-sm-8">
  34. <input type="text" name="row[remark]" value="{$row.remark}" id="c-remark" class="form-control" />
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  39. <div class="col-xs-12 col-sm-8">
  40. {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
  41. </div>
  42. </div>
  43. <div class="form-group hide layer-footer">
  44. <label class="control-label col-xs-12 col-sm-2"></label>
  45. <div class="col-xs-12 col-sm-8">
  46. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  47. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  48. </div>
  49. </div>
  50. </form>