Prepare related list component to add on front pages

To make it easier to add the component to the front pages forms and
avoid introducing redundant classes we add the necessary padding
(@include grid-column-gutter) to make it behave  like the  rest of the form
fields.

Note that for the sdg management section we set this value to 0.
This commit is contained in:
taitus
2021-01-22 08:41:46 +01:00
parent 9fe032a515
commit c052e907eb
3 changed files with 9 additions and 1 deletions

View File

@@ -1,4 +1,6 @@
.sdg-related-list-selector {
@include grid-column-gutter;
clear: both;
.amsify-suggestags-area .amsify-select-tag {
color: $white;

View File

@@ -0,0 +1,6 @@
.sdg-relations-edit {
.sdg-related-list-selector {
padding: 0;
}
}

View File

@@ -1,6 +1,6 @@
<%= header %>
<%= form_for record, url: update_path do |f| %>
<%= form_for record, url: update_path, html: { class: "sdg-relations-edit" } do |f| %>
<%= render SDG::RelatedListSelectorComponent.new(f) %>
<%= f.submit %>