edit.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <form id="edit-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">{:__('Name')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-name" data-rule="required" readonly class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-desc" data-rule="required" class="form-control" name="row[desc]" type="text" value="{$row.desc|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <div class="input-group">
  18. <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
  19. <div class="input-group-addon no-border no-padding">
  20. <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,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  21. <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>
  22. </div>
  23. <span class="msg-box n-right" for="c-image"></span>
  24. </div>
  25. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  30. <div class="col-xs-12 col-sm-8">
  31. <input id="c-price" data-rule="required" readonly class="form-control" name="row[price]" type="text" value="{$row.price|htmlentities}">
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="control-label col-xs-12 col-sm-2">{:__('Signupendtime')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <input id="c-signupendtime" data-rule="required" readonly class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[signupendtime]" type="text" value="{:$row.signupendtime?datetime($row.signupendtime):''}">
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <input id="c-starttime" data-rule="required" readonly class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[starttime]" type="text" value="{:$row.starttime?datetime($row.starttime):''}">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <input id="c-endtime" data-rule="required" readonly class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:$row.endtime?datetime($row.endtime):''}">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-num" data-rule="required" readonly class="form-control" name="row[num]" type="number" value="{$row.num|htmlentities}">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Activecontent')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <textarea id="c-activecontent" data-rule="required" class="form-control editor" rows="5" name="row[activecontent]" cols="50">{$row.activecontent|htmlentities}</textarea>
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <div class="radio">
  68. {foreach name="statusList" item="vo"}
  69. {if $key != 0}
  70. <label for="row[status]-{$key}"><input id="row[status]-{$key}" {if $row.status == 2 or $row.status == 3}disabled{/if} name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  71. {/if}
  72. {/foreach}
  73. </div>
  74. </div>
  75. </div>
  76. <!--<div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Msgstatus')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <div class="radio">
  80. {foreach name="msgstatusList" item="vo"}
  81. <label for="row[msgstatus]-{$key}"><input id="row[msgstatus]-{$key}" name="row[msgstatus]" type="radio" value="{$key}" {in name="key" value="$row.msgstatus"}checked{/in} /> {$vo}</label>
  82. {/foreach}
  83. </div>
  84. </div>
  85. </div>-->
  86. <div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2">{:__('Showstatus')}:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <div class="radio">
  90. {foreach name="showstatusList" item="vo"}
  91. <label for="row[showstatus]-{$key}"><input id="row[showstatus]-{$key}" name="row[showstatus]" type="radio" value="{$key}" {in name="key" value="$row.showstatus"}checked{/in} /> {$vo}</label>
  92. {/foreach}
  93. </div>
  94. </div>
  95. </div>
  96. <!--<div class="form-group">
  97. <label class="control-label col-xs-12 col-sm-2">{:__('Is_autoshow')}:</label>
  98. <div class="col-xs-12 col-sm-8">
  99. <select id="c-is_autoshow" data-rule="required" class="form-control selectpicker" name="row[is_autoshow]">
  100. {foreach name="isAutoshowList" item="vo"}
  101. <option value="{$key}" {in name="key" value="$row.is_autoshow"}selected{/in}>{$vo}</option>
  102. {/foreach}
  103. </select>
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label class="control-label col-xs-12 col-sm-2">{:__('Showtime')}:</label>
  108. <div class="col-xs-12 col-sm-8">
  109. <input id="c-showtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[showtime]" type="text" value="{:$row.showtime?datetime($row.showtime):''}">
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label class="control-label col-xs-12 col-sm-2">{:__('Is_banner')}:</label>
  114. <div class="col-xs-12 col-sm-8">
  115. <select id="c-is_banner" data-rule="required" class="form-control selectpicker" name="row[is_banner]">
  116. {foreach name="isBannerList" item="vo"}
  117. <option value="{$key}" {in name="key" value="$row.is_banner"}selected{/in}>{$vo}</option>
  118. {/foreach}
  119. </select>
  120. </div>
  121. </div>-->
  122. <div class="form-group">
  123. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  124. <div class="col-xs-12 col-sm-8">
  125. <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
  126. </div>
  127. </div>
  128. <div class="form-group layer-footer">
  129. <label class="control-label col-xs-12 col-sm-2"></label>
  130. <div class="col-xs-12 col-sm-8">
  131. {if $row.status != 2 and $row.status != 3}
  132. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  133. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  134. {/if}
  135. </div>
  136. </div>
  137. </form>