diff --git a/app/assets/stylesheets/admin/budgets/form.scss b/app/assets/stylesheets/admin/budgets/form.scss index 9d0407030..1a928dd48 100644 --- a/app/assets/stylesheets/admin/budgets/form.scss +++ b/app/assets/stylesheets/admin/budgets/form.scss @@ -1,5 +1,12 @@ .admin .budgets-form { @include full-width-form; + @include direct-uploads; + + .button { + &.upload-image { + margin-bottom: $line-height / 2; + } + } > fieldset { border-top: 4px solid $admin-border-color; diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 947d347ff..4b9d57611 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -1136,6 +1136,12 @@ padding-bottom: $line-height; padding-top: $line-height * 4; + &.with-background-image { + background-position: center; + background-repeat: no-repeat; + background-size: cover; + } + .budget-title { font-weight: bold; text-transform: uppercase; diff --git a/app/components/admin/budgets/form_component.html.erb b/app/components/admin/budgets/form_component.html.erb index 621804c8f..12464d641 100644 --- a/app/components/admin/budgets/form_component.html.erb +++ b/app/components/admin/budgets/form_component.html.erb @@ -36,6 +36,13 @@ <%= f.select :currency_symbol, currency_symbol_select_options %> + + <% if feature?(:allow_images) %> +
<%= t("admin.budgets.edit.image_description") %>
+