edit.html 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="form-group">
  3. <label for="c-url" class="control-label col-xs-12 col-sm-2">{:__('Category')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <select name="row[category]" class="form-control">
  6. <option value="">{:__('Please select category')}</option>
  7. {foreach name="categoryList" id="item"}
  8. <option value="{$key}" {if $key==$row.category}selected{/if}>{$item}</option>
  9. {/foreach}
  10. </select>
  11. </div>
  12. </div>
  13. <div class="form-group">
  14. <label for="c-url" class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
  15. <div class="col-xs-12 col-sm-8">
  16. <input type="text" name="row[url]" value="{$row.url|htmlentities}" id="c-url" class="form-control" required />
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <label for="c-imagewidth" class="control-label col-xs-12 col-sm-2">{:__('Imagewidth')}:</label>
  21. <div class="col-xs-12 col-sm-8">
  22. <input type="text" name="row[imagewidth]" value="{$row.imagewidth}" id="c-imagewidth" class="form-control" required />
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <label for="c-imageheight" class="control-label col-xs-12 col-sm-2">{:__('Imageheight')}:</label>
  27. <div class="col-xs-12 col-sm-8">
  28. <input type="text" name="row[imageheight]" value="{$row.imageheight}" id="c-imageheight" class="form-control" required />
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label for="c-imagetype" class="control-label col-xs-12 col-sm-2">{:__('Imagetype')}:</label>
  33. <div class="col-xs-12 col-sm-8">
  34. <input type="text" name="row[imagetype]" value="{$row.imagetype|htmlentities}" id="c-imagetype" class="form-control" required />
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <label for="c-imageframes" class="control-label col-xs-12 col-sm-2">{:__('Imageframes')}:</label>
  39. <div class="col-xs-12 col-sm-8">
  40. <input type="number" name="row[imageframes]" value="{$row.imageframes}" id="c-imageframes" class="form-control" />
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label for="c-filename" class="control-label col-xs-12 col-sm-2">{:__('Filename')}:</label>
  45. <div class="col-xs-12 col-sm-8">
  46. <input type="text" name="row[filename]" value="{$row.filename|htmlentities}" id="c-filename" class="form-control" />
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <label for="c-filesize" class="control-label col-xs-12 col-sm-2">{:__('Filesize')}:</label>
  51. <div class="col-xs-12 col-sm-8">
  52. <input type="number" name="row[filesize]" value="{$row.filesize}" id="c-filesize" class="form-control" />
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label for="c-mimetype" class="control-label col-xs-12 col-sm-2">{:__('Mimetype')}:</label>
  57. <div class="col-xs-12 col-sm-8">
  58. <input type="text" name="row[mimetype]" value="{$row.mimetype|htmlentities}" id="c-mimetype" class="form-control" />
  59. </div>
  60. </div>
  61. <div class="form-group">
  62. <label for="c-extparam" class="control-label col-xs-12 col-sm-2">{:__('Extparam')}:</label>
  63. <div class="col-xs-12 col-sm-8">
  64. <input type="text" name="row[extparam]" value="{$row.extparam|htmlentities}" id="c-extparam" class="form-control" />
  65. </div>
  66. </div>
  67. <div class="form-group">
  68. <label for="c-uploadtime" class="control-label col-xs-12 col-sm-2">{:__('Uploadtime')}:</label>
  69. <div class="col-xs-12 col-sm-8">
  70. <input type="datetime" name="row[uploadtime]" value="{$row.uploadtime|datetime}" id="c-uploadtime" class="form-control datetimepicker" />
  71. </div>
  72. </div>
  73. <div class="form-group">
  74. <label for="c-storage" class="control-label col-xs-12 col-sm-2">{:__('Storage')}:</label>
  75. <div class="col-xs-12 col-sm-8">
  76. <input type="text" name="row[storage]" value="{$row.storage}" id="c-storage" class="form-control" />
  77. </div>
  78. </div>
  79. <div class="form-group hide layer-footer">
  80. <label class="control-label col-xs-12 col-sm-2"></label>
  81. <div class="col-xs-12 col-sm-8">
  82. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  83. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  84. </div>
  85. </div>
  86. </form>