edit_number.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-content">
  7. <form method="post" action="{:url('number')}" class="form-horizontal">
  8. <input type="hidden" name="id" value="{$info['id']}">
  9. <input type="hidden" name="seqId" value="{$info['seqId']}">
  10. <div class="form-group">
  11. <label class="col-sm-2 control-label">序号</label>
  12. <div class="col-sm-6">
  13. <input type="text" readonly class="form-control" value="{$info.seqId}">
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-sm-2 control-label">姓名</label>
  18. <div class="col-sm-6">
  19. <input type="text" class="form-control" name="name" value="{$info.name}">
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="col-sm-2 control-label">手机号</label>
  24. <div class="col-sm-6">
  25. <input type="number" class="form-control" name="num" value="{$info.num}">
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="col-sm-2 control-label">设为SOS号码</label>
  30. <div class="col-sm-6">
  31. <label class="cr-inline">
  32. <input type="radio" value="1" name="dial_flag">是&nbsp;&nbsp;
  33. </label>
  34. <label class="cr-inline">
  35. <input type="radio" value="0" name="dial_flag">否
  36. </label>
  37. </div>
  38. </div>
  39. <div class="hr-line-dashed"></div>
  40. <div class="form-group">
  41. <div class="col-sm-4 col-sm-offset-2">
  42. <button class="btn btn-primary ajax-post" data-layer="1" target-form="form-horizontal" type="submit">确 定</button>
  43. </div>
  44. </div>
  45. </form>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. {/block}
  51. {block name="script"}
  52. <script>
  53. $(document).ready(function(){
  54. formSetValue("dial_flag", {$info.dial_flag|default=0});
  55. });
  56. </script>
  57. {/block}