add.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435
  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">{:__('Box_name')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-box_name" class="form-control" type="text" value="{$box_info.box_name}" readonly="readonly">
  6. <input id="c-app_id" class="form-control" name="row[box_id]" type="hidden" value="{$box_info.box_id}">
  7. </div>
  8. </div>
  9. <div class="form-group">
  10. <label class="control-label col-xs-12 col-sm-2">{:__('Goods_name')}:</label>
  11. <div class="col-xs-12 col-sm-8">
  12. <input id="c-goods_id" data-rule="required" data-source="goods/goods/selectpage" data-field="goods_name" class="form-control selectpage" name="row[goods_id]" type="text" value="">
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="control-label col-xs-12 col-sm-2">{:__('Rate')}(%):</label>
  17. <div class="col-xs-12 col-sm-8">
  18. <input id="c-rate" class="form-control" step="1" name="row[rate]" type="number" data-rule="range(0~)">
  19. </div>
  20. <p style="line-height: 30px;margin: 0!important;" class="text-red">(如:5%,填5)</p>
  21. </div>
  22. <div class="form-group">
  23. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  24. <div class="col-xs-12 col-sm-8">
  25. <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
  26. </div>
  27. </div>
  28. <div class="form-group layer-footer">
  29. <label class="control-label col-xs-12 col-sm-2"></label>
  30. <div class="col-xs-12 col-sm-8">
  31. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  32. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  33. </div>
  34. </div>
  35. </form>