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:
@@ -1,4 +1,6 @@
|
|||||||
.sdg-related-list-selector {
|
.sdg-related-list-selector {
|
||||||
|
@include grid-column-gutter;
|
||||||
|
clear: both;
|
||||||
|
|
||||||
.amsify-suggestags-area .amsify-select-tag {
|
.amsify-suggestags-area .amsify-select-tag {
|
||||||
color: $white;
|
color: $white;
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
.sdg-relations-edit {
|
||||||
|
|
||||||
|
.sdg-related-list-selector {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<%= header %>
|
<%= 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) %>
|
<%= render SDG::RelatedListSelectorComponent.new(f) %>
|
||||||
|
|
||||||
<%= f.submit %>
|
<%= f.submit %>
|
||||||
|
|||||||
Reference in New Issue
Block a user