edit.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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">{:__('Order_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value="{$row.order_id|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Goods_type')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <select id="c-goods_type" class="form-control selectpicker" name="row[goods_type]">
  12. {foreach name="goodsTypeList" item="vo"}
  13. <option value="{$key}" {in name="key" value="$row.goods_type"}selected{/in}>{$vo}</option>
  14. {/foreach}
  15. </select>
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Goods_id')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-goods_id" data-rule="required" data-source="goods/index" class="form-control selectpage" name="row[goods_id]" type="text" value="{$row.goods_id|htmlentities}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
  28. </div>
  29. </div>
  30. <div class="form-group layer-footer">
  31. <label class="control-label col-xs-12 col-sm-2"></label>
  32. <div class="col-xs-12 col-sm-8">
  33. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  34. </div>
  35. </div>
  36. </form>