0
0

index2.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-title">
  7. <h5>点餐配置</h5>
  8. <div class="ibox-tools">
  9. </div>
  10. </div>
  11. <div class="ibox-content">
  12. <form method="post" action="{:url('add')}" class="form-horizontal">
  13. <input type="hidden" name="id" value="{$info['id']|default='0'}">
  14. <div class="form-group">
  15. <label class="col-sm-2 control-label">app_id<span class="text-danger">*</span></label>
  16. <div class="col-sm-6">
  17. <input type="text" class="form-control" name="app_id" value="{$info.app_id|default=''}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="col-sm-2 control-label">secret<span class="text-danger">*</span></label>
  22. <div class="col-sm-6">
  23. <input type="text" class="form-control" name="secret" value="{$info.secret|default=''}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="col-sm-2 control-label">mch_id<span class="text-danger">*</span></label>
  28. <div class="col-sm-6">
  29. <input type="text" class="form-control" name="mch_id" value="{$info.mch_id|default=''}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="col-sm-2 control-label">key<span class="text-danger">*</span></label>
  34. <div class="col-sm-6">
  35. <input type="text" class="form-control" name="key" value="{$info.key|default=''}">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="col-sm-2 control-label">cert_path</label>
  40. <div class="col-sm-6">
  41. {:widget_view('common/upfile',['name'=>'cert_path','multi'=>0,'accept'=>'','val'=>isset($info)?$info['cert_path']:''])}
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="col-sm-2 control-label">key_path</label>
  46. <div class="col-sm-6">
  47. {:widget_view('common/upfile',['name'=>'key_path','multi'=>0,'accept'=>'','val'=>isset($info)?$info['key_path']:''])}
  48. </div>
  49. </div>
  50. <div class="hr-line-dashed"></div>
  51. <div class="form-group">
  52. <div class="col-sm-6 col-sm-offset-2">
  53. <button class="btn btn-primary ajax-post" target-form="form-horizontal" type="submit">确 定</button>
  54. </div>
  55. </div>
  56. </form>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. {/block}
  62. {block name="script"}
  63. <script>
  64. </script>
  65. {/block}