edit.html 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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">{:__('Name')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
  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" value="{$row.phone|htmlentities}">
  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" value="{$row.address|htmlentities}">
  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" value="{$row.install_address|htmlentities}">
  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" value="{$row.latitude|htmlentities}">
  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. <input id="c-longitude" class="form-control" name="row[longitude]" type="text" value="{$row.longitude|htmlentities}">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <div class="input-group">
  52. <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="{$row.images|htmlentities}">
  53. <div class="input-group-addon no-border no-padding">
  54. <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>
  55. <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>
  56. </div>
  57. <span class="msg-box n-right" for="c-images"></span>
  58. </div>
  59. <ul class="row list-inline faupload-preview" id="p-images"></ul>
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <div class="radio">
  66. {foreach name="statusList" item="vo"}
  67. <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>
  68. {/foreach}
  69. </div>
  70. </div>
  71. </div>
  72. <div class="form-group layer-footer">
  73. <label class="control-label col-xs-12 col-sm-2"></label>
  74. <div class="col-xs-12 col-sm-8">
  75. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  76. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  77. </div>
  78. </div>
  79. </form>