diff --git a/app/views/budgets/investments/_image_form.html.erb b/app/views/budgets/investments/_image_form.html.erb index 919b2ed10..1b321de15 100644 --- a/app/views/budgets/investments/_image_form.html.erb +++ b/app/views/budgets/investments/_image_form.html.erb @@ -1,16 +1,19 @@ <%= form_for([@investment.budget, @investment], url: update_image_budget_investment_path(@investment.budget, @investment), multipart: true, method: :put) do |f| %> <%= render 'shared/errors', resource: @investment %> +
<%= t("budgets.investments.edit_image.#{investment_image_advice_note_key(@investment)}", title: @investment.title) %>

+ <% if @investment.image.exists? %>
<%= image_tag @investment.image.url(:large) %>
<% end %> +
<%= f.file_field :image, accept: 'image/jpeg', label: false, class:'show-for-sr' %> @@ -19,6 +22,7 @@

<%= investment_image_file_name(@investment) %>

+ <% if @investment.errors.has_key?(:image) %>
@@ -26,10 +30,12 @@
<% end %> +
<%= f.label :image_title, t("budgets.investments.edit_image.form.image_title") %> <%= f.text_field :image_title, placeholder: t("budgets.investments.edit_image.form.image_title"), label: false %>
+
<%= f.submit(class: "button", value: t("budgets.investments.edit_image.form.submit_button")) %> <% if @investment.image.exists? %> @@ -40,5 +46,6 @@ data: { confirm: "¿Está seguro que desea eliminar la imagen del proyecto?" } %> <% end %>
+
<% end %>