add.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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">{:__('Money')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-money" data-rule="required" class="form-control" step="0.01" name="row[money]" type="number" value="0.00">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Real_money')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-real_money" data-rule="required" class="form-control" step="0.01" name="row[real_money]" type="number" value="0.00">
  12. </div>
  13. </div>
  14. <!--<div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  18. {foreach name="typeList" item="vo"}
  19. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  20. {/foreach}
  21. </select>
  22. </div>
  23. </div>-->
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Is_show')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <select id="c-is_show" data-rule="required" class="form-control selectpicker" name="row[is_show]">
  28. {foreach name="isShowList" item="vo"}
  29. <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
  30. {/foreach}
  31. </select>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="control-label col-xs-12 col-sm-2">{:__('Weight')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <input id="c-weight" data-rule="required" class="form-control" name="row[weight]" type="number" value="0">
  38. </div>
  39. </div>
  40. <div class="form-group layer-footer">
  41. <label class="control-label col-xs-12 col-sm-2"></label>
  42. <div class="col-xs-12 col-sm-8">
  43. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  44. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  45. </div>
  46. </div>
  47. </form>