add.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <form id="add-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">{:__('Active_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-active_id" data-rule="required" data-source="active/index" class="form-control selectpage" name="row[active_id]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <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="">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Credtype')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-credtype" data-rule="required" class="form-control" name="row[credtype]" type="text" value="">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Idcard')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-idcard" data-rule="required" class="form-control" name="row[idcard]" type="text" value="">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="text" value="">
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="control-label col-xs-12 col-sm-2">{:__('Emergencycontact')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <input id="c-emergencycontact" data-rule="required" class="form-control" name="row[emergencycontact]" type="text" value="">
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="control-label col-xs-12 col-sm-2">{:__('Contactmobile')}:</label>
  52. <div class="col-xs-12 col-sm-8">
  53. <input id="c-contactmobile" data-rule="required" class="form-control" name="row[contactmobile]" type="text" value="">
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="control-label col-xs-12 col-sm-2">{:__('Insurance')}:</label>
  58. <div class="col-xs-12 col-sm-8">
  59. <input id="c-insurance" data-rule="required" class="form-control" name="row[insurance]" type="text" value="">
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('Originalprice')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <input id="c-originalprice" data-rule="required" class="form-control" name="row[originalprice]" type="text" value="0">
  66. </div>
  67. </div>
  68. <div class="form-group">
  69. <label class="control-label col-xs-12 col-sm-2">{:__('Vipprice')}:</label>
  70. <div class="col-xs-12 col-sm-8">
  71. <input id="c-vipprice" data-rule="required" class="form-control" name="row[vipprice]" type="text" value="0">
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_id')}:</label>
  76. <div class="col-xs-12 col-sm-8">
  77. <input id="c-coupon_id" data-rule="required" data-source="coupon/index" class="form-control selectpage" name="row[coupon_id]" type="text" value="">
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Coupontype')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <select id="c-coupontype" data-rule="required" class="form-control selectpicker" name="row[coupontype]">
  84. {foreach name="coupontypeList" item="vo"}
  85. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  86. {/foreach}
  87. </select>
  88. </div>
  89. </div>
  90. <div class="form-group">
  91. <label class="control-label col-xs-12 col-sm-2">{:__('Couponprice')}:</label>
  92. <div class="col-xs-12 col-sm-8">
  93. <input id="c-couponprice" data-rule="required" class="form-control" name="row[couponprice]" type="text" value="0">
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label class="control-label col-xs-12 col-sm-2">{:__('Is_free')}:</label>
  98. <div class="col-xs-12 col-sm-8">
  99. <select id="c-is_free" data-rule="required" class="form-control selectpicker" name="row[is_free]">
  100. {foreach name="isFreeList" item="vo"}
  101. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  102. {/foreach}
  103. </select>
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  108. <div class="col-xs-12 col-sm-8">
  109. <input id="c-price" data-rule="required" class="form-control" name="row[price]" type="text" value="0">
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label class="control-label col-xs-12 col-sm-2">{:__('Is_self')}:</label>
  114. <div class="col-xs-12 col-sm-8">
  115. <select id="c-is_self" data-rule="required" class="form-control selectpicker" name="row[is_self]">
  116. {foreach name="isSelfList" item="vo"}
  117. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  118. {/foreach}
  119. </select>
  120. </div>
  121. </div>
  122. <div class="form-group">
  123. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  124. <div class="col-xs-12 col-sm-8">
  125. <div class="radio">
  126. {foreach name="statusList" item="vo"}
  127. <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>
  128. {/foreach}
  129. </div>
  130. </div>
  131. </div>
  132. <div class="form-group">
  133. <label class="control-label col-xs-12 col-sm-2">{:__('Modifystatus')}:</label>
  134. <div class="col-xs-12 col-sm-8">
  135. <div class="radio">
  136. {foreach name="modifystatusList" item="vo"}
  137. <label for="row[modifystatus]-{$key}"><input id="row[modifystatus]-{$key}" name="row[modifystatus]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  138. {/foreach}
  139. </div>
  140. </div>
  141. </div>
  142. <div class="form-group layer-footer">
  143. <label class="control-label col-xs-12 col-sm-2"></label>
  144. <div class="col-xs-12 col-sm-8">
  145. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  146. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  147. </div>
  148. </div>
  149. </form>