edit.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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">{:__('Company_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-company_id" data-rule="required" data-source="company/index" data-field="companyname" class="form-control selectpage" name="row[company_id]" type="text" value="{$row.company_id|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-pid" class="form-control" name="row[pid]" type="number" value="{$row.pid|htmlentities}">
  12. </div>
  13. </div>-->
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
  18. </div>
  19. </div>
  20. <?php if($row['pid'] != 0){ ?>
  21. <div class="form-group">
  22. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  23. <div class="col-xs-12 col-sm-8">
  24. <select id="c-type" class="form-control selectpicker" name="row[type]">
  25. {foreach name="typeList" item="vo"}
  26. <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
  27. {/foreach}
  28. </select>
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
  33. <div class="col-xs-12 col-sm-8">
  34. <input id="c-info" class="form-control" name="row[info]" type="text" value="{$row.info|htmlentities}">
  35. </div>
  36. </div>
  37. <?php } ?>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
  42. </div>
  43. </div>
  44. <div class="form-group layer-footer">
  45. <label class="control-label col-xs-12 col-sm-2"></label>
  46. <div class="col-xs-12 col-sm-8">
  47. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  48. </div>
  49. </div>
  50. </form>