add.html 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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">{:__('Name')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-name" class="form-control" name="row[name]" type="text">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-phone" class="form-control" name="row[phone]" type="text">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-address" class="form-control" name="row[address]" type="text">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Install_address')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-install_address" class="form-control" name="row[install_address]" type="text">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Latitude')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-latitude" class="form-control" name="row[latitude]" type="text">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Longitude')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <div class="input-group">
  46. <input id="c-longitude" class="form-control" size="50" name="row[longitude]" type="text">
  47. <div class="input-group-addon no-border no-padding">
  48. <a target="_blank" href="https://lbs.qq.com/getPoint/"><button type="button" class="btn btn-primary" ><i class="fa fa-list"></i>选择地址</button></a>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
  55. <div class="col-xs-12 col-sm-8">
  56. <div class="input-group">
  57. <input id="c-images" class="form-control" size="50" name="row[images]" type="text">
  58. <div class="input-group-addon no-border no-padding">
  59. <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  60. <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  61. </div>
  62. <span class="msg-box n-right" for="c-images"></span>
  63. </div>
  64. <ul class="row list-inline faupload-preview" id="p-images"></ul>
  65. </div>
  66. </div>
  67. <div class="form-group">
  68. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  69. <div class="col-xs-12 col-sm-8">
  70. <div class="radio">
  71. {foreach name="statusList" item="vo"}
  72. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
  73. {/foreach}
  74. </div>
  75. </div>
  76. </div>
  77. <div class="form-group layer-footer">
  78. <label class="control-label col-xs-12 col-sm-2"></label>
  79. <div class="col-xs-12 col-sm-8">
  80. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  81. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  82. </div>
  83. </div>
  84. </form>