DEV: add classes to sections in category settings (#12150)
Some had them, most didn't.
This commit is contained in:
parent
5117f0a3e8
commit
da8b0818ef
|
@ -9,7 +9,7 @@
|
|||
{{category-name-fields category=category tagName=""}}
|
||||
|
||||
{{#if canSelectParentCategory}}
|
||||
<section class="field">
|
||||
<section class="field parent-category">
|
||||
<label>{{i18n "category.parent"}}</label>
|
||||
{{category-chooser
|
||||
value=category.parent_category_id
|
||||
|
@ -27,7 +27,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if subCategories}}
|
||||
<section class="field">
|
||||
<section class="field subcategories">
|
||||
<label>{{i18n "categories.subcategories"}}</label>
|
||||
{{#each subCategories as |s|}}
|
||||
{{category-badge s hideParent="true"}}
|
||||
|
@ -36,7 +36,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if showDescription}}
|
||||
<section class="field">
|
||||
<section class="field description">
|
||||
<label>{{i18n "category.description"}}</label>
|
||||
{{#if category.description}}
|
||||
{{html-safe category.description}}
|
||||
|
@ -50,7 +50,7 @@
|
|||
</section>
|
||||
{{/if}}
|
||||
|
||||
<section class="field">
|
||||
<section class="field category-colors">
|
||||
{{#if noCategoryStyle}}
|
||||
<label>
|
||||
{{d-icon "exclamation-triangle"}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<section class="field">
|
||||
<section class="field category-logo">
|
||||
<label>{{i18n "category.logo"}}</label>
|
||||
{{image-uploader
|
||||
imageUrl=logoImageUrl
|
||||
|
@ -8,7 +8,7 @@
|
|||
class="no-repeat contain-image"}}
|
||||
</section>
|
||||
|
||||
<section class="field">
|
||||
<section class="field category-background-image">
|
||||
<label>{{i18n "category.background_image"}}</label>
|
||||
{{image-uploader
|
||||
imageUrl=backgroundImageUrl
|
||||
|
|
|
@ -9,13 +9,13 @@
|
|||
{{/if}}
|
||||
|
||||
{{#unless showPositionInput}}
|
||||
<section class="field">
|
||||
<section class="field position-disabled">
|
||||
{{i18n "category.position_disabled"}}
|
||||
<a href={{get-url "/admin/site_settings/category/basic"}}>{{i18n "category.position_disabled_click"}}</a>
|
||||
</section>
|
||||
{{/unless}}
|
||||
|
||||
<section class="field">
|
||||
<section class="field num-featured-topics">
|
||||
<label for="category-number-featured-topics">
|
||||
{{#if category.parent_category_id}}
|
||||
{{i18n "category.subcategory_num_featured_topics"}}
|
||||
|
@ -26,7 +26,7 @@
|
|||
{{text-field value=category.num_featured_topics id="category-number-featured-topics" type="number"}}
|
||||
</section>
|
||||
|
||||
<section class="field">
|
||||
<section class="field search-priority">
|
||||
<label for="category-search-priority">
|
||||
{{i18n "category.search_priority.label"}}
|
||||
</label>
|
||||
|
@ -54,7 +54,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if siteSettings.topic_featured_link_enabled}}
|
||||
<section class="field">
|
||||
<section class="field topic-featured-link-allowed">
|
||||
<div class="allowed-topic-featured-link-category">
|
||||
<label class="checkbox-label">
|
||||
{{input type="checkbox" checked=category.topic_featured_link_allowed}}
|
||||
|
@ -64,14 +64,14 @@
|
|||
</section>
|
||||
{{/if}}
|
||||
|
||||
<section class="field">
|
||||
<section class="field navigate-to-first-post-after-read">
|
||||
<label>
|
||||
{{input type="checkbox" checked=category.navigate_to_first_post_after_read}}
|
||||
{{i18n "category.navigate_to_first_post_after_read"}}
|
||||
</label>
|
||||
</section>
|
||||
|
||||
<section class="field">
|
||||
<section class="field all-topics-wiki">
|
||||
<label>
|
||||
{{input type="checkbox" checked=category.all_topics_wiki}}
|
||||
{{i18n "category.all_topics_wiki"}}
|
||||
|
@ -82,7 +82,7 @@
|
|||
<section>
|
||||
<h3>{{i18n "category.settings_sections.moderation"}}</h3>
|
||||
{{#if siteSettings.enable_category_group_moderation}}
|
||||
<section class="field">
|
||||
<section class="field reviewable-by-group">
|
||||
<label for="reviewable-by-group">
|
||||
{{i18n "category.reviewable_by_group"}}
|
||||
</label>
|
||||
|
@ -95,21 +95,21 @@
|
|||
</section>
|
||||
{{/if}}
|
||||
|
||||
<section class="field">
|
||||
<section class="field require-topic-approval">
|
||||
<label>
|
||||
{{input type="checkbox" checked=category.custom_fields.require_topic_approval}}
|
||||
{{i18n "category.require_topic_approval"}}
|
||||
</label>
|
||||
</section>
|
||||
|
||||
<section class="field">
|
||||
<section class="field require-reply-approval">
|
||||
<label>
|
||||
{{input type="checkbox" checked=category.custom_fields.require_reply_approval}}
|
||||
{{i18n "category.require_reply_approval"}}
|
||||
</label>
|
||||
</section>
|
||||
|
||||
<section class="field">
|
||||
<section class="field auto-close">
|
||||
<div class="control-group">
|
||||
<label for="topic-auto-close">
|
||||
{{i18n "topic.auto_close.label"}}
|
||||
|
@ -137,7 +137,7 @@
|
|||
</section>
|
||||
{{/if}}
|
||||
|
||||
<section class="field">
|
||||
<section class="field num-auto-bump-daily">
|
||||
<label for="category-number-daily-bump">
|
||||
{{i18n "category.num_auto_bump_daily"}}
|
||||
</label>
|
||||
|
@ -182,7 +182,7 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<section class="field">
|
||||
<section class="field sort-order">
|
||||
<label for="category-sort-order">
|
||||
{{i18n "category.sort_order"}}
|
||||
</label>
|
||||
|
@ -211,7 +211,7 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<section class="field">
|
||||
<section class="field default-filter">
|
||||
<label for="category-default-filter">
|
||||
{{i18n "category.default_list_filter"}}
|
||||
</label>
|
||||
|
@ -270,7 +270,7 @@
|
|||
<h3>{{i18n "category.settings_sections.email"}}</h3>
|
||||
|
||||
{{#if emailInEnabled}}
|
||||
<section class="field">
|
||||
<section class="field category-email-in">
|
||||
<label for="category-email-in">
|
||||
{{d-icon "far-envelope"}}
|
||||
{{i18n "category.email_in"}}
|
||||
|
@ -278,14 +278,14 @@
|
|||
{{text-field id="category-email-in" class="email-in" value=category.email_in}}
|
||||
</section>
|
||||
|
||||
<section class="field">
|
||||
<section class="field email-in-allow-strangers">
|
||||
<label>
|
||||
{{input type="checkbox" checked=category.email_in_allow_strangers}}
|
||||
{{i18n "category.email_in_allow_strangers"}}
|
||||
</label>
|
||||
</section>
|
||||
|
||||
<section class="field">
|
||||
<section class="field mailinglist-mirror">
|
||||
<label>
|
||||
{{input type="checkbox" checked=category.mailinglist_mirror}}
|
||||
{{i18n "category.mailinglist_mirror"}}
|
||||
|
@ -296,7 +296,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#unless emailInEnabled}}
|
||||
<section class="field">
|
||||
<section class="field email-in-disabled">
|
||||
{{i18n "category.email_in_disabled"}}
|
||||
<a href={{get-url "/admin/site_settings/category/email"}}>{{i18n "category.email_in_disabled_click"}}</a>
|
||||
</section>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<section class="field">
|
||||
<section class="field allowed-tags">
|
||||
<label for="category-allowed-tags">{{i18n "category.tags_allowed_tags"}}</label>
|
||||
{{tag-chooser
|
||||
id="category-allowed-tags"
|
||||
|
@ -13,7 +13,7 @@
|
|||
}}
|
||||
</section>
|
||||
|
||||
<section class="field">
|
||||
<section class="field allowed-tag-groups">
|
||||
<label for="category-allowed-tag-groups">{{i18n "category.tags_allowed_tag_groups"}}</label>
|
||||
{{tag-group-chooser
|
||||
id="category-allowed-tag-groups"
|
||||
|
@ -22,27 +22,27 @@
|
|||
{{#link-to "tagGroups" class="manage-tag-groups"}}{{i18n "category.manage_tag_groups_link"}}{{/link-to}}
|
||||
</section>
|
||||
|
||||
<section class="field">
|
||||
<section class="field allow-global-tags">
|
||||
<label>
|
||||
{{input type="checkbox" checked=category.allow_global_tags id="allow_global_tags" disabled=disableAllowGlobalTags}}
|
||||
{{i18n "category.allow_global_tags_label"}}
|
||||
</label>
|
||||
</section>
|
||||
|
||||
<section class="field">
|
||||
<section class="field tags-tab-description">
|
||||
{{i18n "category.tags_tab_description"}}
|
||||
</section>
|
||||
|
||||
<section class="field">
|
||||
<section class="field required-tag-group-description">
|
||||
{{i18n "category.required_tag_group_description"}}
|
||||
</section>
|
||||
|
||||
<section class="field with-items">
|
||||
<section class="field-item">
|
||||
<section class="field-item min-tags-from-required-group">
|
||||
<label>{{i18n "category.min_tags_from_required_group_label"}}</label>
|
||||
{{text-field value=category.min_tags_from_required_group id="category-min-tags-from-group" type="number" min="1"}}
|
||||
</section>
|
||||
<section class="field-item">
|
||||
<section class="field-item required-tag-group">
|
||||
<label>{{i18n "category.required_tag_group_label"}}</label>
|
||||
{{tag-group-chooser
|
||||
id="category-required-tag-group"
|
||||
|
|
Loading…
Reference in New Issue