edit.html 4.1 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">{:__('Category_id')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-category_id" data-rule="required" data-source="category/selectpage" data-params='{"custom[type]":"menu"}' class="form-control selectpage" name="row[category_id]" type="text" value="{$row.category_id|htmlentities}">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <div class="input-group">
  28. <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
  29. <div class="input-group-addon no-border no-padding">
  30. <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>
  31. <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>
  32. </div>
  33. <span class="msg-box n-right" for="c-image"></span>
  34. </div>
  35. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-url" class="form-control" name="row[url]" type="text" value="{$row.url|htmlentities}">
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="control-label col-xs-12 col-sm-2">{:__('Routine_url')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <input id="c-routine_url" class="form-control" name="row[routine_url]" type="text" value="{$row.routine_url|htmlentities}">
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
  52. <div class="col-xs-12 col-sm-8">
  53. <input id="c-sort" class="form-control" name="row[sort]" type="number" value="{$row.sort|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>