edit.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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">{:__('Name')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Servicetype_id')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-servicetype_id" data-rule="required" data-source="servicetype/index" data-field="title" class="form-control selectpage" name="row[servicetype_id]" type="text" value="{$row.servicetype_id|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Cooperation_status')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <select id="c-cooperation_status" data-rule="required" class="form-control selectpicker" name="row[cooperation_status]">
  24. {foreach name="cooperationStatusList" item="vo"}
  25. <option value="{$key}" {in name="key" value="$row.cooperation_status"}selected{/in}>{$vo}</option>
  26. {/foreach}
  27. </select>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <textarea id="c-remark" data-rule="" class="form-control" name="row[remark]">{$row.remark|htmlentities}</textarea>
  34. </div>
  35. </div>
  36. <div class="form-group layer-footer">
  37. <label class="control-label col-xs-12 col-sm-2"></label>
  38. <div class="col-xs-12 col-sm-8">
  39. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  40. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  41. </div>
  42. </div>
  43. </form>