edit.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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">{:__('Topic_ids')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-topic_ids" data-source="topichub/index" data-multiple="true" class="form-control selectpage" name="row[topic_ids]" type="text" value="{$row.topic_ids|htmlentities}">
  6. </div>
  7. </div>-->
  8. <!--<div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  12. </div>
  13. </div>-->
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <textarea id="c-content" class="form-control" name="row[content]" rows="10">{$row.content|htmlentities}</textarea>
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  24. {foreach name="typeList" item="vo"}
  25. <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
  26. {/foreach}
  27. </select>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <div class="input-group">
  34. <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="{$row.images|htmlentities}">
  35. <div class="input-group-addon no-border no-padding">
  36. <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  37. <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  38. </div>
  39. <span class="msg-box n-right" for="c-images"></span>
  40. </div>
  41. <ul class="row list-inline faupload-preview" id="p-images"></ul>
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="control-label col-xs-12 col-sm-2">{:__('Audio_file')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <div class="input-group">
  48. <input id="c-audio_file" class="form-control" size="50" name="row[audio_file]" type="text" value="{$row.audio_file|htmlentities}">
  49. <div class="input-group-addon no-border no-padding">
  50. <span><button type="button" id="faupload-audio_file" class="btn btn-danger faupload" data-input-id="c-audio_file" data-multiple="false" data-preview-id="p-audio_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  51. <span><button type="button" id="fachoose-audio_file" class="btn btn-primary fachoose" data-input-id="c-audio_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  52. </div>
  53. <span class="msg-box n-right" for="c-audio_file"></span>
  54. </div>
  55. <ul class="row list-inline faupload-preview" id="p-audio_file"></ul>
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Audio_second')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-audio_second" class="form-control" name="row[audio_second]" type="number" value="{$row.audio_second|htmlentities}">
  62. </div>
  63. </div>
  64. <!--<div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Goodnum')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-goodnum" data-rule="required" class="form-control" name="row[goodnum]" type="number" value="{$row.goodnum|htmlentities}">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Answernum')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-answernum" data-rule="required" class="form-control" name="row[answernum]" type="number" value="{$row.answernum|htmlentities}">
  74. </div>
  75. </div>-->
  76. <!--<div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Cityname')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-cityname" data-rule="required" class="form-control" name="row[cityname]" type="text" value="{$row.cityname|htmlentities}">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Longitude')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <input id="c-longitude" data-rule="required" class="form-control" name="row[longitude]" type="text" value="{$row.longitude|htmlentities}">
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label class="control-label col-xs-12 col-sm-2">{:__('Latitude')}:</label>
  90. <div class="col-xs-12 col-sm-8">
  91. <input id="c-latitude" data-rule="required" class="form-control" name="row[latitude]" type="text" value="{$row.latitude|htmlentities}">
  92. </div>
  93. </div>-->
  94. <!--<div class="form-group">
  95. <label class="control-label col-xs-12 col-sm-2">{:__('Aite')}:</label>
  96. <div class="col-xs-12 col-sm-8">
  97. <input id="c-aite" data-rule="required" class="form-control" name="row[aite]" type="text" value="{$row.aite|htmlentities}">
  98. </div>
  99. </div>-->
  100. <div class="form-group">
  101. <label class="control-label col-xs-12 col-sm-2">{:__('Is_public')}:</label>
  102. <div class="col-xs-12 col-sm-8">
  103. <select id="c-is_public" data-rule="required" class="form-control selectpicker" name="row[is_public]">
  104. {foreach name="isPublicList" item="vo"}
  105. <option value="{$key}" {in name="key" value="$row.is_public"}selected{/in}>{$vo}</option>
  106. {/foreach}
  107. </select>
  108. </div>
  109. </div>
  110. <div class="form-group">
  111. <label class="control-label col-xs-12 col-sm-2">{:__('Auditstatus')}:</label>
  112. <div class="col-xs-12 col-sm-8">
  113. <div class="radio">
  114. {foreach name="auditstatusList" item="vo"}
  115. <label for="row[auditstatus]-{$key}"><input id="row[auditstatus]-{$key}" name="row[auditstatus]" type="radio" value="{$key}" {in name="key" value="$row.auditstatus"}checked{/in} /> {$vo}</label>
  116. {/foreach}
  117. </div>
  118. </div>
  119. </div>
  120. <div class="form-group">
  121. <label class="control-label col-xs-12 col-sm-2">{:__('Audittime')}:</label>
  122. <div class="col-xs-12 col-sm-8">
  123. <input id="c-audittime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[audittime]" type="text" value="{:$row.audittime?datetime($row.audittime):''}">
  124. </div>
  125. </div>
  126. <div class="form-group">
  127. <label class="control-label col-xs-12 col-sm-2">{:__('Auditremark')}:</label>
  128. <div class="col-xs-12 col-sm-8">
  129. <input id="c-auditremark" class="form-control" name="row[auditremark]" type="text" value="{$row.auditremark|htmlentities}">
  130. </div>
  131. </div>
  132. <div class="form-group layer-footer">
  133. <label class="control-label col-xs-12 col-sm-2"></label>
  134. <div class="col-xs-12 col-sm-8">
  135. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  136. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  137. </div>
  138. </div>
  139. </form>