edit.html 4.0 KB

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