You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

71 lines
3.2 KiB

  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="form-group">
  3. <label class="control-label col-xs-12 col-sm-2">{:__('Product_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-product_id" data-rule="required" data-field="title" data-source="unishop/product/index" class="form-control selectpage" name="row[product_id]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="username" class="form-control selectpage" name="row[user_id]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Comment')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-comment" data-rule="required" class="form-control" name="row[comment]" type="text">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Rate')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <select id="c-rate" data-rule="required" class="form-control selectpicker" name="row[rate]">
  24. {foreach name="rateList" item="vo"}
  25. <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
  26. {/foreach}
  27. </select>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-order_id" data-rule="" class="form-control" name="row[order_id]" type="text" value="">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Spec')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-spec" data-rule="" class="form-control" name="row[spec]" type="text" value="">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Anonymous')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <select id="c-anonymous" data-rule="required" class="form-control selectpicker" name="row[anonymous]">
  46. {foreach name="anonymousList" item="vo"}
  47. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  48. {/foreach}
  49. </select>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Toptime')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. {:build_radios('row[toptime]', [time()=>__('Yes'), '0'=>__('No')], 0)}
  56. </div>
  57. </div>
  58. <div class="form-group layer-footer">
  59. <label class="control-label col-xs-12 col-sm-2"></label>
  60. <div class="col-xs-12 col-sm-8">
  61. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  62. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  63. </div>
  64. </div>
  65. </form>