Removes unnecessary styles for admin budgets groups

This commit is contained in:
decabeza
2018-10-18 18:16:11 +02:00
parent d5aa4f7807
commit 22d8a26b33
3 changed files with 2 additions and 15 deletions

View File

@@ -1194,17 +1194,6 @@ table {
}
}
.max-headings-label {
color: $text-medium;
font-size: $small-font-size;
margin-left: $line-height / 2;
}
.current-of-max-headings {
color: #000;
font-weight: bold;
}
// 11. Newsletters
// -----------------

View File

@@ -4,7 +4,7 @@
<th colspan="4" class="with-button">
<%= content_tag(:span, group.name, class:"group-toggle-#{group.id}", id:"group-name-#{group.id}") %>
<%= content_tag(:span, (render 'admin/budgets/max_headings_label', current: group.max_votable_headings, max: group.headings.count, group: group if group.max_votable_headings), class:"max-headings-label group-toggle-#{group.id}", id:"max-heading-label-#{group.id}") %>
<%= content_tag(:span, (render 'admin/budgets/max_headings_label', current: group.max_votable_headings, max: group.headings.count, group: group if group.max_votable_headings), class:"small group-toggle-#{group.id}", id:"max-heading-label-#{group.id}") %>
<%= render 'admin/budgets/group_form', budget: @budget, group: group, id: "group-form-#{group.id}", button_title: t("admin.budgets.form.submit"), css_class: "group-toggle-#{group.id}" %>
<%= link_to t("admin.budgets.form.edit_group"), "#", class: "button float-right js-toggle-link hollow", data: { "toggle-selector" => ".group-toggle-#{group.id}" } %>

View File

@@ -1,4 +1,2 @@
<%= t("admin.budgets.form.max_votable_headings")%>
<%= content_tag(:strong,
t("admin.budgets.form.current_of_max_headings", current: current, max: max),
class: "current-of-max-headings") %>
<%= t("admin.budgets.form.current_of_max_headings", current: current, max: max) %>