add.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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-source="product/index" class="form-control selectpage" data-format-item="{id}-{name}" 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">{:__('Road_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-road_id" data-rule="required" data-source="productroad/index" class="form-control selectpage" data-format-item="{id}-{roadname}" data-field="roadname" name="row[road_id]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-name" class="form-control" name="row[name]" type="text" value="">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number">
  24. </div>
  25. </div>
  26. <!--<div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Roadtype')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <select id="c-roadtype" class="form-control selectpicker" name="row[roadtype]">
  30. {foreach name="roadtypeList" item="vo"}
  31. <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
  32. {/foreach}
  33. </select>
  34. </div>
  35. </div>-->
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Is_qudao')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <select id="c-is_qudao" data-rule="required" class="form-control selectpicker" name="row[is_qudao]">
  40. {foreach name="isQudaoList" item="vo"}
  41. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  42. {/foreach}
  43. </select>
  44. </div>
  45. </div>
  46. <div class="form-group layer-footer">
  47. <label class="control-label col-xs-12 col-sm-2"></label>
  48. <div class="col-xs-12 col-sm-8">
  49. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  50. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  51. </div>
  52. </div>
  53. </form>