Skip to content

Commit

Permalink
More admin side CSS fixes for cells
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed Jul 17, 2024
1 parent 2078c6f commit aca6f01
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
22 changes: 12 additions & 10 deletions app/cells/decidim/plans/plan_form/contents_edit.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
<% content_form.instance_variable_set(:@template, form.instance_variable_get(:@template)) %>
<% content = content_form.object %>

<%= cell(
content.section_type_manifest.edit_cell,
content,
multilingual_answers: component_settings.multilingual_answers?,
context: {
form: content_form,
parent_form: form,
current_component: current_component
}
) %>
<div class="form form-defaults">
<%= cell(
content.section_type_manifest.edit_cell,
content,
multilingual_answers: component_settings.multilingual_answers?,
context: {
form: content_form,
parent_form: form,
current_component: current_component
}
) %>
</div>

<%= content_form.hidden_field :id %>
<%= content_form.hidden_field :section_id %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/decidim/plans/admin/authors/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td class="table-list__actions">
<% if allowed_to? :edit, :plan, plan: plan %>
<%= icon_link_to(
"circle-x",
"close-circle-line",
destroy_author_path_for(plan, author),
t("actions.remove_author", scope: "decidim.plans"),
method: :delete,
Expand All @@ -49,7 +49,7 @@
</div>

<div class="button--double form-general-submit">
<button class="button" data-open="plan-author-add-modal-for-<%= plan.id %>">
<button class="button button__sm button__secondary" data-dialog-open="plan-author-add-modal-for-<%= plan.id %>">
<%= t(".add_author") %>
</button>
</div>
Expand Down
12 changes: 9 additions & 3 deletions app/views/decidim/plans/admin/plans/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<%= decidim_form_for(@form, html: { class: "form plans-form edit_plan plan_form_admin" }) do |f| %>
<%= render partial: "form", object: f, locals: { title: t(".title") } %>
<% end %>
<% add_decidim_page_title(t(".title")) %>

<div class="item__edit item__edit-1col">
<div class="item__edit-form">
<%= decidim_form_for(@form, html: { class: "form plans-form edit_plan plan_form_admin" }) do |f| %>
<%= render partial: "form", object: f, locals: { title: t(".title") } %>
<% end %>
</div>
</div>

0 comments on commit aca6f01

Please sign in to comment.