edit.html 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <form id="edit-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" value="{$row.cid}">
  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="{$row.user_id|htmlentities}">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Volunteer_id')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-volunteer_id" data-rule="required" data-source="volunteer/index" class="form-control selectpage" name="row[volunteer_id]" type="text" value="{$row.volunteer_id|htmlentities}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Institution_id')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-institution_id" data-rule="required" data-source="institution/institution/index" class="form-control selectpage" name="row[institution_id]" type="text" value="{$row.institution_id|htmlentities}">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-phone" data-rule="required" class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Certificateimage')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <div class="input-group">
  52. <input id="c-certificateimage" data-rule="required" class="form-control" size="50" name="row[certificateimage]" type="text" value="{$row.certificateimage|htmlentities}">
  53. <div class="input-group-addon no-border no-padding">
  54. <span><button type="button" id="faupload-certificateimage" class="btn btn-danger faupload" data-input-id="c-certificateimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-certificateimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  55. <span><button type="button" id="fachoose-certificateimage" class="btn btn-primary fachoose" data-input-id="c-certificateimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  56. </div>
  57. <span class="msg-box n-right" for="c-certificateimage"></span>
  58. </div>
  59. <ul class="row list-inline faupload-preview" id="p-certificateimage"></ul>
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('Receive')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <input id="c-receive" class="form-control" name="row[receive]" type="number" value="{$row.receive|htmlentities}">
  66. </div>
  67. </div>
  68. <div class="form-group">
  69. <label class="control-label col-xs-12 col-sm-2">{:__('Refuse')}:</label>
  70. <div class="col-xs-12 col-sm-8">
  71. <input id="c-refuse" class="form-control" name="row[refuse]" type="number" value="{$row.refuse|htmlentities}">
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="control-label col-xs-12 col-sm-2">{:__('Out')}:</label>
  76. <div class="col-xs-12 col-sm-8">
  77. <input id="c-out" class="form-control" name="row[out]" type="number" value="{$row.out|htmlentities}">
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Start_hour')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <input id="c-start_hour" data-rule="required" class="form-control" name="row[start_hour]" type="number" value="{$row.start_hour|htmlentities}">
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2">{:__('End_hour')}:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <input id="c-end_hour" data-rule="required" class="form-control" name="row[end_hour]" type="number" value="{$row.end_hour|htmlentities}">
  90. </div>
  91. </div>
  92. <div class="form-group">
  93. <label class="control-label col-xs-12 col-sm-2">{:__('Work_week')}:</label>
  94. <div class="col-xs-12 col-sm-8">
  95. <select id="c-work_week" class="form-control selectpicker" multiple="" name="row[work_week][]">
  96. {foreach name="workWeekList" item="vo"}
  97. <option value="{$key}" {in name="key" value="$row.work_week"}selected{/in}>{$vo}</option>
  98. {/foreach}
  99. </select>
  100. </div>
  101. </div>
  102. <div class="form-group">
  103. <label class="control-label col-xs-12 col-sm-2">{:__('Speciali')}:</label>
  104. <div class="col-xs-12 col-sm-8">
  105. <input id="c-speciali" class="form-control" name="row[speciali]" type="text" value="{$row.speciali|htmlentities}">
  106. </div>
  107. </div>
  108. <div class="form-group">
  109. <label class="control-label col-xs-12 col-sm-2">{:__('Latitude')}:</label>
  110. <div class="col-xs-12 col-sm-8">
  111. <input id="c-latitude" data-rule="required" class="form-control" name="row[latitude]" type="text" value="{$row.latitude|htmlentities}">
  112. </div>
  113. </div>
  114. <div class="form-group">
  115. <label class="control-label col-xs-12 col-sm-2">{:__('Longitude')}:</label>
  116. <div class="col-xs-12 col-sm-8">
  117. <input id="c-longitude" data-rule="required" class="form-control" name="row[longitude]" type="text" value="{$row.longitude|htmlentities}">
  118. </div>
  119. </div>
  120. <div class="form-group">
  121. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  122. <div class="col-xs-12 col-sm-8">
  123. <div class="radio">
  124. {foreach name="statusList" item="vo"}
  125. <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>
  126. {/foreach}
  127. </div>
  128. </div>
  129. </div>
  130. <div class="form-group layer-footer">
  131. <label class="control-label col-xs-12 col-sm-2"></label>
  132. <div class="col-xs-12 col-sm-8">
  133. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  134. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  135. </div>
  136. </div>
  137. </form>