From 931bf1856223f981df9d5ffbadfa04f64ffa7157 Mon Sep 17 00:00:00 2001 From: taitus Date: Sat, 2 Feb 2019 15:23:48 +0100 Subject: [PATCH] Adds styles (direct-uploads) to admin dashboard actions form --- app/assets/stylesheets/participation.scss | 3 ++- app/views/admin/dashboard/actions/edit.html.erb | 8 +++++--- app/views/admin/dashboard/actions/new.html.erb | 8 +++++--- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index bb600ff83..559599297 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -319,7 +319,8 @@ .legislation-process-edit, .milestone-new, .milestone-edit, -.image-form { +.image-form, +.dashboard-action-form { @include direct-uploads; } diff --git a/app/views/admin/dashboard/actions/edit.html.erb b/app/views/admin/dashboard/actions/edit.html.erb index d3361524c..5a94ec443 100644 --- a/app/views/admin/dashboard/actions/edit.html.erb +++ b/app/views/admin/dashboard/actions/edit.html.erb @@ -3,6 +3,8 @@

<%= t("admin.dashboard.actions.edit.editing") %>

-<%= form_for dashboard_action, url: { action: 'update' } do |f| %> - <%= render 'form', f: f %> -<% end %> +
+ <%= form_for dashboard_action, url: { action: 'update' } do |f| %> + <%= render 'form', f: f %> + <% end %> +
diff --git a/app/views/admin/dashboard/actions/new.html.erb b/app/views/admin/dashboard/actions/new.html.erb index adcb1a9a1..0ef2c672c 100644 --- a/app/views/admin/dashboard/actions/new.html.erb +++ b/app/views/admin/dashboard/actions/new.html.erb @@ -3,6 +3,8 @@

<%= t("admin.dashboard.actions.new.creating") %>

-<%= form_for dashboard_action, url: { action: 'create' } do |f| %> - <%= render 'form', f: f %> -<% end %> +
+ <%= form_for dashboard_action, url: { action: 'create' } do |f| %> + <%= render 'form', f: f %> + <% end %> +