add.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. {eq name="admin.cid" value="0"}
  3. <div class="form-group">
  4. <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
  5. <div class="col-xs-12 col-sm-8">
  6. <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" >
  7. </div>
  8. </div>
  9. {else/}
  10. <input id="c-cid" name="row[cid]" type="hidden" value="{$admin.cid}">
  11. {/eq}
  12. <div class="form-group">
  13. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Latitude')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-latitude" class="form-control" name="row[latitude]" type="text">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Longitude')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-longitude" class="form-control" name="row[longitude]" type="text">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Rescue_id')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-rescue_id" data-rule="required" data-source="sos/rescue/index" class="form-control selectpage" name="row[rescue_id]" type="text" value="">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Processtime')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-processtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[processtime]" type="text" value="{:date('Y-m-d H:i:s')}">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Process_remark')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-process_remark" class="form-control" name="row[process_remark]" type="text">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('User_phone')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-user_phone" class="form-control" name="row[user_phone]" type="text">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('User_phone_show')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <input id="c-user_phone_show" class="form-control" name="row[user_phone_show]" type="text">
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="control-label col-xs-12 col-sm-2">{:__('Rescue_phone')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <input id="c-rescue_phone" class="form-control" name="row[rescue_phone]" type="text">
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label class="control-label col-xs-12 col-sm-2">{:__('Rescue_phone_show')}:</label>
  68. <div class="col-xs-12 col-sm-8">
  69. <input id="c-rescue_phone_show" class="form-control" name="row[rescue_phone_show]" type="text">
  70. </div>
  71. </div>
  72. <div class="form-group">
  73. <label class="control-label col-xs-12 col-sm-2">{:__('Channel_number')}:</label>
  74. <div class="col-xs-12 col-sm-8">
  75. <input id="c-channel_number" class="form-control" name="row[channel_number]" type="text">
  76. </div>
  77. </div>
  78. <div class="form-group">
  79. <label class="control-label col-xs-12 col-sm-2">{:__('Confirmtime')}:</label>
  80. <div class="col-xs-12 col-sm-8">
  81. <input id="c-confirmtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[confirmtime]" type="text" value="{:date('Y-m-d H:i:s')}">
  82. </div>
  83. </div>
  84. <div class="form-group">
  85. <label class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
  86. <div class="col-xs-12 col-sm-8">
  87. <input id="c-endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:date('Y-m-d H:i:s')}">
  88. </div>
  89. </div>
  90. <div class="form-group">
  91. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  92. <div class="col-xs-12 col-sm-8">
  93. <div class="radio">
  94. {foreach name="statusList" item="vo"}
  95. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  96. {/foreach}
  97. </div>
  98. </div>
  99. </div>
  100. <div class="form-group layer-footer">
  101. <label class="control-label col-xs-12 col-sm-2"></label>
  102. <div class="col-xs-12 col-sm-8">
  103. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  104. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  105. </div>
  106. </div>
  107. </form>