edit.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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">{:__('Doctor_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-doctor_id" data-rule="required" data-source="doctor/index" disabled data-field="nickname" class="form-control selectpage" name="row[doctor_id]" type="text" value="{$row.doctor_id|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Typing_switch')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-typing_switch" name="row[typing_switch]" type="hidden" value="{$row.typing_switch}">
  12. <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-typing_switch" data-yes="1" data-no="0" >
  13. <i class="fa fa-toggle-on text-success {eq name="$row.typing_switch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
  14. </a>
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label class="control-label col-xs-12 col-sm-2">{:__('Video_switch')}:</label>
  19. <div class="col-xs-12 col-sm-8">
  20. <input id="c-video_switch" name="row[video_switch]" type="hidden" value="{$row.video_switch}">
  21. <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-video_switch" data-yes="1" data-no="0" >
  22. <i class="fa fa-toggle-on text-success {eq name="$row.video_switch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
  23. </a>
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Typing_price')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-typing_price" class="form-control" step="0.01" name="row[typing_price]" type="number" value="{$row.typing_price|htmlentities}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Video_price')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-video_price" class="form-control" step="0.01" name="row[video_price]" type="number" value="{$row.video_price|htmlentities}">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Notice_switch')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-notice_switch" name="row[notice_switch]" type="hidden" value="{$row.notice_switch}">
  42. <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-notice_switch" data-yes="1" data-no="0" >
  43. <i class="fa fa-toggle-on text-success {eq name="$row.notice_switch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
  44. </a>
  45. </div>
  46. </div>
  47. <div class="form-group layer-footer">
  48. <label class="control-label col-xs-12 col-sm-2"></label>
  49. <div class="col-xs-12 col-sm-8">
  50. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  51. </div>
  52. </div>
  53. </form>