edit.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. {:token()}
  3. <div class="form-group">
  4. <label for="c-pid" class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
  5. <div class="col-xs-12 col-sm-8">
  6. <select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[pid]">
  7. {foreach name="parentList" item="vo"}
  8. <option value="{$key}" {in name="key" value="$row.pid"}selected{/in}>{$vo.name}</option>
  9. {/foreach}
  10. </select>
  11. </div>
  12. </div>
  13. <div class="form-group">
  14. <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  15. <div class="col-xs-12 col-sm-8">
  16. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  21. <div class="col-xs-12 col-sm-8">
  22. <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
  23. </div>
  24. </div>
  25. <div class="form-group layer-footer">
  26. <label class="control-label col-xs-12 col-sm-2"></label>
  27. <div class="col-xs-12 col-sm-8">
  28. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  29. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  30. </div>
  31. </div>
  32. </form>