add.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="form-group">
  3. <label class="control-label col-xs-12 col-sm-2">{:__('Platform')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <select id="c-platform" class="form-control selectpicker" name="row[platform]">
  6. {foreach name="platformList" item="vo"}
  7. <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
  8. {/foreach}
  9. </select>
  10. </div>
  11. </div>
  12. <div class="form-group">
  13. <label class="control-label col-xs-12 col-sm-2">{:__('Version')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-version" class="form-control" name="row[version]" type="text">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <textarea id="c-content" class="form-control" rows="5" name="row[content]" cols="50"></textarea>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Download_file')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <div class="input-group">
  28. <input id="c-download_file" class="form-control" size="50" name="row[download_file]" type="text">
  29. <div class="input-group-addon no-border no-padding">
  30. <span><button type="button" id="faupload-download_file" class="btn btn-danger faupload" data-input-id="c-download_file" data-multiple="false" data-preview-id="p-download_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  31. <span><button type="button" id="fachoose-download_file" class="btn btn-primary fachoose" data-input-id="c-download_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  32. </div>
  33. <span class="msg-box n-right" for="c-download_file"></span>
  34. </div>
  35. <ul class="row list-inline faupload-preview" id="p-download_file"></ul>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Enforce')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. {:Form::radios('row[enforce]',[0=>'否',1=>'是'],0)}
  42. </div>
  43. </div>
  44. <div class="form-group layer-footer">
  45. <label class="control-label col-xs-12 col-sm-2"></label>
  46. <div class="col-xs-12 col-sm-8">
  47. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  48. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  49. </div>
  50. </div>
  51. </form>