edit.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  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">{:__('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="{$row.product_id|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Roadtype')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <select id="c-roadtype" class="form-control selectpicker" name="row[roadtype]">
  12. {foreach name="roadtypeList" item="vo"}
  13. <option value="{$key}" {in name="key" value="$row.roadtype"}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">{:__('Roadname')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-roadname" class="form-control" name="row[roadname]" type="text" value="{$row.roadname|htmlentities}">
  22. </div>
  23. </div>
  24. <div class="form-group layer-footer">
  25. <label class="control-label col-xs-12 col-sm-2"></label>
  26. <div class="col-xs-12 col-sm-8">
  27. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  28. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  29. </div>
  30. </div>
  31. </form>