edit.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">平台:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <!-- 渠道选择 -->
  12. <div class="channel-list">
  13. {foreach name="platformList" item="vo" key="key"}
  14. <label class="radio-inline">
  15. <input type="radio" name="row[platform]" value="{$key}" data-rule="checked" data-rule-message="请至少选择一个活动渠道" {if condition="$row.platform && $row.platform == $key"}checked{/if}>
  16. {$vo}
  17. </label>
  18. {/foreach}
  19. </div>
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label for="c-iteration_version" class="control-label col-xs-12 col-sm-2">{:__('Iterationversion')}:</label>
  24. <div class="col-xs-12 col-sm-8">
  25. <input id="c-iteration_version" class="form-control" name="row[iteration_version]" type="text" value="{$row.iteration_version}">
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label for="c-old_version" class="control-label col-xs-12 col-sm-2">{:__('Oldversion')}:</label>
  30. <div class="col-xs-12 col-sm-8">
  31. <input id="c-old_version" class="form-control" name="row[old_version]" type="text" value="{$row.old_version}">
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label for="c-new_version" class="control-label col-xs-12 col-sm-2">{:__('Newversion')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <input id="c-new_version" class="form-control" name="row[new_version]" type="text" value="{$row.new_version}">
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label for="c-package_size" class="control-label col-xs-12 col-sm-2">{:__('Packagesize')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <input id="c-package_size" class="form-control" name="row[package_size]" type="text" value="{$row.package_size}">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <textarea id="c-content" class="form-control" name="row[content]">{$row.content}</textarea>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label for="c-download_url" class="control-label col-xs-12 col-sm-2">{:__('Downloadurl')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-download_url" class="form-control" name="row[download_url]" type="text" value="{$row.download_url}">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label for="c-enforce" class="control-label col-xs-12 col-sm-2">{:__('Enforce')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. {:build_radios('row[enforce]', [1=>__('Yes'), 0=>__('No')], $row['enforce'])}
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
  74. </div>
  75. </div>
  76. <div class="form-group hide layer-footer">
  77. <label class="control-label col-xs-12 col-sm-2"></label>
  78. <div class="col-xs-12 col-sm-8">
  79. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  80. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  81. </div>
  82. </div>
  83. </form>