Removed external_url input

This commit is contained in:
María Checa
2018-01-08 17:09:30 +01:00
parent bce0729a61
commit 5161988844
4 changed files with 2 additions and 11 deletions

View File

@@ -103,7 +103,7 @@ module Budgets
def investment_params def investment_params
params.require(:budget_investment) params.require(:budget_investment)
.permit(:title, :description, :external_url, :heading_id, :tag_list, .permit(:title, :description, :heading_id, :tag_list,
:organization_name, :location, :terms_of_service, :skip_map, :organization_name, :location, :terms_of_service, :skip_map,
image_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy], image_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy],
documents_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy], documents_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy],

View File

@@ -17,10 +17,6 @@
<%= f.cktext_area :description, maxlength: SpendingProposal.description_max_length, ckeditor: { language: I18n.locale } %> <%= f.cktext_area :description, maxlength: SpendingProposal.description_max_length, ckeditor: { language: I18n.locale } %>
</div> </div>
<div class="small-12 column">
<%= f.text_field :external_url %>
</div>
<% if feature?(:allow_images) %> <% if feature?(:allow_images) %>
<div class="images small-12 column"> <div class="images small-12 column">
<%= render 'images/nested_image', imageable: @investment, f: f %> <%= render 'images/nested_image', imageable: @investment, f: f %>

View File

@@ -103,10 +103,6 @@
<%= safe_html_with_links @investment.description %> <%= safe_html_with_links @investment.description %>
<% if @investment.external_url.present? %>
<p><%= text_with_links @investment.external_url %></p>
<% end %>
<h2><%= t("valuation.budget_investments.show.info") %></h2> <h2><%= t("valuation.budget_investments.show.info") %></h2>
<p><strong><%= t("valuation.budget_investments.show.by") %>:</strong> <p><strong><%= t("valuation.budget_investments.show.by") %>:</strong>

View File

@@ -369,7 +369,6 @@ feature 'Emails' do
select "#{group.name}: #{heading.name}", from: 'budget_investment_heading_id' select "#{group.name}: #{heading.name}", from: 'budget_investment_heading_id'
fill_in 'budget_investment_title', with: 'Build a hospital' fill_in 'budget_investment_title', with: 'Build a hospital'
fill_in 'budget_investment_description', with: 'We have lots of people that require medical attention' fill_in 'budget_investment_description', with: 'We have lots of people that require medical attention'
fill_in 'budget_investment_external_url', with: 'http://http://hospitalsforallthepeople.com/'
check 'budget_investment_terms_of_service' check 'budget_investment_terms_of_service'
click_button 'Create Investment' click_button 'Create Investment'