/src/Presentation/Nop.Web/Administration/Views/Setting/Forum.cshtml

# · Razor · 232 lines · 232 code · 0 blank · 0 comment · 0 complexity · 7dd105b08b35e6c0002a7cf03ba514e7 MD5 · raw file

  1. @model ForumSettingsModel
  2. @using Telerik.Web.Mvc.UI;
  3. @{
  4. //page title
  5. ViewBag.Title = T("Admin.Configuration.Settings.Forums").Text;
  6. }
  7. @using (Html.BeginForm())
  8. {
  9. <div class="section-header">
  10. <div class="title">
  11. <img src="@Url.Content("~/Administration/Content/images/ico-configuration.png")" alt="" />
  12. @T("Admin.Configuration.Settings.Forums")
  13. </div>
  14. <div class="options">
  15. <input type="submit" name="save" class="t-button" value="@T("Admin.Common.Save")" />
  16. </div>
  17. </div>
  18. @Html.Action("StoreScopeConfiguration", "Setting")
  19. @Html.ValidationSummary(false)
  20. <table class="adminContent">
  21. <tr>
  22. <td class="adminTitle">
  23. @Html.OverrideStoreCheckboxFor(model => model.ForumsEnabled_OverrideForStore, model => model.ForumsEnabled, Model.ActiveStoreScopeConfiguration)
  24. @Html.NopLabelFor(model => model.ForumsEnabled):
  25. </td>
  26. <td class="adminData">
  27. @Html.EditorFor(model => model.ForumsEnabled)
  28. @Html.ValidationMessageFor(model => model.ForumsEnabled)
  29. </td>
  30. </tr>
  31. <tr>
  32. <td class="adminTitle">
  33. @Html.OverrideStoreCheckboxFor(model => model.RelativeDateTimeFormattingEnabled_OverrideForStore, model => model.RelativeDateTimeFormattingEnabled, Model.ActiveStoreScopeConfiguration)
  34. @Html.NopLabelFor(model => model.RelativeDateTimeFormattingEnabled):
  35. </td>
  36. <td class="adminData">
  37. @Html.EditorFor(model => model.RelativeDateTimeFormattingEnabled)
  38. @Html.ValidationMessageFor(model => model.RelativeDateTimeFormattingEnabled)
  39. </td>
  40. </tr>
  41. <tr>
  42. <td class="adminTitle">
  43. @Html.OverrideStoreCheckboxFor(model => model.ShowCustomersPostCount_OverrideForStore, model => model.ShowCustomersPostCount, Model.ActiveStoreScopeConfiguration)
  44. @Html.NopLabelFor(model => model.ShowCustomersPostCount):
  45. </td>
  46. <td class="adminData">
  47. @Html.EditorFor(model => model.ShowCustomersPostCount)
  48. @Html.ValidationMessageFor(model => model.ShowCustomersPostCount)
  49. </td>
  50. </tr>
  51. <tr>
  52. <td class="adminTitle">
  53. @Html.OverrideStoreCheckboxFor(model => model.AllowGuestsToCreatePosts_OverrideForStore, model => model.AllowGuestsToCreatePosts, Model.ActiveStoreScopeConfiguration)
  54. @Html.NopLabelFor(model => model.AllowGuestsToCreatePosts):
  55. </td>
  56. <td class="adminData">
  57. @Html.EditorFor(model => model.AllowGuestsToCreatePosts)
  58. @Html.ValidationMessageFor(model => model.AllowGuestsToCreatePosts)
  59. </td>
  60. </tr>
  61. <tr>
  62. <td class="adminTitle">
  63. @Html.OverrideStoreCheckboxFor(model => model.AllowGuestsToCreateTopics_OverrideForStore, model => model.AllowGuestsToCreateTopics, Model.ActiveStoreScopeConfiguration)
  64. @Html.NopLabelFor(model => model.AllowGuestsToCreateTopics):
  65. </td>
  66. <td class="adminData">
  67. @Html.EditorFor(model => model.AllowGuestsToCreateTopics)
  68. @Html.ValidationMessageFor(model => model.AllowGuestsToCreateTopics)
  69. </td>
  70. </tr>
  71. <tr>
  72. <td class="adminTitle">
  73. @Html.OverrideStoreCheckboxFor(model => model.AllowCustomersToEditPosts_OverrideForStore, model => model.AllowCustomersToEditPosts, Model.ActiveStoreScopeConfiguration)
  74. @Html.NopLabelFor(model => model.AllowCustomersToEditPosts):
  75. </td>
  76. <td class="adminData">
  77. @Html.EditorFor(model => model.AllowCustomersToEditPosts)
  78. @Html.ValidationMessageFor(model => model.AllowCustomersToEditPosts)
  79. </td>
  80. </tr>
  81. <tr>
  82. <td class="adminTitle">
  83. @Html.OverrideStoreCheckboxFor(model => model.AllowCustomersToDeletePosts_OverrideForStore, model => model.AllowCustomersToDeletePosts, Model.ActiveStoreScopeConfiguration)
  84. @Html.NopLabelFor(model => model.AllowCustomersToDeletePosts):
  85. </td>
  86. <td class="adminData">
  87. @Html.EditorFor(model => model.AllowCustomersToDeletePosts)
  88. @Html.ValidationMessageFor(model => model.AllowCustomersToDeletePosts)
  89. </td>
  90. </tr>
  91. <tr>
  92. <td class="adminTitle">
  93. @Html.OverrideStoreCheckboxFor(model => model.AllowCustomersToManageSubscriptions_OverrideForStore, model => model.AllowCustomersToManageSubscriptions, Model.ActiveStoreScopeConfiguration)
  94. @Html.NopLabelFor(model => model.AllowCustomersToManageSubscriptions):
  95. </td>
  96. <td class="adminData">
  97. @Html.EditorFor(model => model.AllowCustomersToManageSubscriptions)
  98. @Html.ValidationMessageFor(model => model.AllowCustomersToManageSubscriptions)
  99. </td>
  100. </tr>
  101. <tr>
  102. <td class="adminTitle">
  103. @Html.OverrideStoreCheckboxFor(model => model.TopicsPageSize_OverrideForStore, model => model.TopicsPageSize, Model.ActiveStoreScopeConfiguration)
  104. @Html.NopLabelFor(model => model.TopicsPageSize):
  105. </td>
  106. <td class="adminData">
  107. @Html.EditorFor(model => model.TopicsPageSize)
  108. @Html.ValidationMessageFor(model => model.TopicsPageSize)
  109. </td>
  110. </tr>
  111. <tr>
  112. <td class="adminTitle">
  113. @Html.OverrideStoreCheckboxFor(model => model.PostsPageSize_OverrideForStore, model => model.PostsPageSize, Model.ActiveStoreScopeConfiguration)
  114. @Html.NopLabelFor(model => model.PostsPageSize):
  115. </td>
  116. <td class="adminData">
  117. @Html.EditorFor(model => model.PostsPageSize)
  118. @Html.ValidationMessageFor(model => model.PostsPageSize)
  119. </td>
  120. </tr>
  121. <tr>
  122. <td class="adminTitle">
  123. @Html.OverrideStoreCheckboxFor(model => model.SearchResultsPageSize_OverrideForStore, model => model.SearchResultsPageSize, Model.ActiveStoreScopeConfiguration)
  124. @Html.NopLabelFor(model => model.SearchResultsPageSize):
  125. </td>
  126. <td class="adminData">
  127. @Html.EditorFor(model => model.SearchResultsPageSize)
  128. @Html.ValidationMessageFor(model => model.SearchResultsPageSize)
  129. </td>
  130. </tr>
  131. <tr>
  132. <td class="adminTitle">
  133. @Html.OverrideStoreCheckboxFor(model => model.ForumEditor_OverrideForStore, model => model.ForumEditor, Model.ActiveStoreScopeConfiguration)
  134. @Html.NopLabelFor(model => model.ForumEditor):
  135. </td>
  136. <td class="adminData">
  137. @Html.DropDownListFor(model => model.ForumEditor, Model.ForumEditorValues)
  138. @Html.ValidationMessageFor(model => model.ForumEditor)
  139. </td>
  140. </tr>
  141. <tr>
  142. <td class="adminTitle">
  143. @Html.OverrideStoreCheckboxFor(model => model.SignaturesEnabled_OverrideForStore, model => model.SignaturesEnabled, Model.ActiveStoreScopeConfiguration)
  144. @Html.NopLabelFor(model => model.SignaturesEnabled):
  145. </td>
  146. <td class="adminData">
  147. @Html.EditorFor(model => model.SignaturesEnabled)
  148. @Html.ValidationMessageFor(model => model.SignaturesEnabled)
  149. </td>
  150. </tr>
  151. <tr class="adminSeparator">
  152. <td colspan="2">
  153. <hr />
  154. </td>
  155. </tr>
  156. <tr>
  157. <td class="adminTitle">
  158. @Html.OverrideStoreCheckboxFor(model => model.AllowPrivateMessages_OverrideForStore, model => model.AllowPrivateMessages, Model.ActiveStoreScopeConfiguration)
  159. @Html.NopLabelFor(model => model.AllowPrivateMessages):
  160. </td>
  161. <td class="adminData">
  162. @Html.EditorFor(model => model.AllowPrivateMessages)
  163. @Html.ValidationMessageFor(model => model.AllowPrivateMessages)
  164. </td>
  165. </tr>
  166. <tr>
  167. <td class="adminTitle">
  168. @Html.OverrideStoreCheckboxFor(model => model.ShowAlertForPM_OverrideForStore, model => model.ShowAlertForPM, Model.ActiveStoreScopeConfiguration)
  169. @Html.NopLabelFor(model => model.ShowAlertForPM):
  170. </td>
  171. <td class="adminData">
  172. @Html.EditorFor(model => model.ShowAlertForPM)
  173. @Html.ValidationMessageFor(model => model.ShowAlertForPM)
  174. </td>
  175. </tr>
  176. <tr>
  177. <td class="adminTitle">
  178. @Html.OverrideStoreCheckboxFor(model => model.NotifyAboutPrivateMessages_OverrideForStore, model => model.NotifyAboutPrivateMessages, Model.ActiveStoreScopeConfiguration)
  179. @Html.NopLabelFor(model => model.NotifyAboutPrivateMessages):
  180. </td>
  181. <td class="adminData">
  182. @Html.EditorFor(model => model.NotifyAboutPrivateMessages)
  183. @Html.ValidationMessageFor(model => model.NotifyAboutPrivateMessages)
  184. </td>
  185. </tr>
  186. <tr class="adminSeparator">
  187. <td colspan="2">
  188. <hr />
  189. </td>
  190. </tr>
  191. <tr>
  192. <td class="adminTitle">
  193. @Html.OverrideStoreCheckboxFor(model => model.ForumFeedsEnabled_OverrideForStore, model => model.ForumFeedsEnabled, Model.ActiveStoreScopeConfiguration)
  194. @Html.NopLabelFor(model => model.ForumFeedsEnabled):
  195. </td>
  196. <td class="adminData">
  197. @Html.EditorFor(model => model.ForumFeedsEnabled)
  198. @Html.ValidationMessageFor(model => model.ForumFeedsEnabled)
  199. </td>
  200. </tr>
  201. <tr>
  202. <td class="adminTitle">
  203. @Html.OverrideStoreCheckboxFor(model => model.ForumFeedCount_OverrideForStore, model => model.ForumFeedCount, Model.ActiveStoreScopeConfiguration)
  204. @Html.NopLabelFor(model => model.ForumFeedCount):
  205. </td>
  206. <td class="adminData">
  207. @Html.EditorFor(model => model.ForumFeedCount)
  208. @Html.ValidationMessageFor(model => model.ForumFeedCount)
  209. </td>
  210. </tr>
  211. <tr>
  212. <td class="adminTitle">
  213. @Html.OverrideStoreCheckboxFor(model => model.ActiveDiscussionsFeedEnabled_OverrideForStore, model => model.ActiveDiscussionsFeedEnabled, Model.ActiveStoreScopeConfiguration)
  214. @Html.NopLabelFor(model => model.ActiveDiscussionsFeedEnabled):
  215. </td>
  216. <td class="adminData">
  217. @Html.EditorFor(model => model.ActiveDiscussionsFeedEnabled)
  218. @Html.ValidationMessageFor(model => model.ActiveDiscussionsFeedEnabled)
  219. </td>
  220. </tr>
  221. <tr>
  222. <td class="adminTitle">
  223. @Html.OverrideStoreCheckboxFor(model => model.ActiveDiscussionsFeedCount_OverrideForStore, model => model.ActiveDiscussionsFeedCount, Model.ActiveStoreScopeConfiguration)
  224. @Html.NopLabelFor(model => model.ActiveDiscussionsFeedCount):
  225. </td>
  226. <td class="adminData">
  227. @Html.EditorFor(model => model.ActiveDiscussionsFeedCount)
  228. @Html.ValidationMessageFor(model => model.ActiveDiscussionsFeedCount)
  229. </td>
  230. </tr>
  231. </table>
  232. }