edit.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <form id="edit-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">{:__('Productcode')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-productcode" class="form-control" name="row[productcode]" type="text" value="{$row.productcode|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Productprice')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-productprice" class="form-control" name="row[productprice]" type="text" value="{$row.productprice|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Productunit')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-productunit" class="form-control" name="row[productunit]" type="text" value="{$row.productunit|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Productcount')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-productcount" class="form-control" name="row[productcount]" type="number" value="{$row.productcount|htmlentities}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-remark" class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('User_switch')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-user_switch" name="row[user_switch]" type="hidden" value="{$row.user_switch}">
  36. <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-user_switch" data-yes="1" data-no="0" >
  37. <i class="fa fa-toggle-on text-success {eq name="$row.user_switch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
  38. </a>
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label class="control-label col-xs-12 col-sm-2">{:__('Pay_switch')}:</label>
  43. <div class="col-xs-12 col-sm-8">
  44. <input id="c-pay_switch" name="row[pay_switch]" type="hidden" value="{$row.pay_switch}">
  45. <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-pay_switch" data-yes="1" data-no="0" >
  46. <i class="fa fa-toggle-on text-success {eq name="$row.pay_switch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
  47. </a>
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  52. <div class="col-xs-12 col-sm-8">
  53. <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
  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-primary btn-embossed disabled">{:__('OK')}</button>
  60. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  61. </div>
  62. </div>
  63. </form>