edit.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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">{:__('Type')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <select id="c-type" class="form-control selectpicker" name="row[type]">
  6. {foreach name="typeList" item="vo"}
  7. <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
  8. {/foreach}
  9. </select>
  10. </div>
  11. </div>
  12. <div class="form-group">
  13. <label class="control-label col-xs-12 col-sm-2">{:__('Tempkey')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-tempkey" class="form-control" name="row[tempkey]" type="text" value="{$row.tempkey|htmlentities}">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <textarea id="c-info" class="form-control " rows="5" name="row[info]" cols="50">{$row.info|htmlentities}</textarea>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <div class="radio">
  34. {foreach name="statusList" item="vo"}
  35. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  36. {/foreach}
  37. </div>
  38. </div>
  39. </div>
  40. <div class="form-group layer-footer">
  41. <label class="control-label col-xs-12 col-sm-2"></label>
  42. <div class="col-xs-12 col-sm-8">
  43. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  44. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  45. </div>
  46. </div>
  47. </form>