removes tags from spending proposals
This commit is contained in:
@@ -26,7 +26,7 @@ class SpendingProposalsController < ApplicationController
|
||||
private
|
||||
|
||||
def spending_proposal_params
|
||||
params.require(:spending_proposal).permit(:title, :description, :external_url, :tag_list, :terms_of_service, :captcha, :captcha_key)
|
||||
params.require(:spending_proposal).permit(:title, :description, :external_url, :terms_of_service, :captcha, :captcha_key)
|
||||
end
|
||||
|
||||
end
|
||||
@@ -1,7 +1,6 @@
|
||||
class SpendingProposal < ActiveRecord::Base
|
||||
include Measurable
|
||||
include Sanitizable
|
||||
include Taggable
|
||||
|
||||
apply_simple_captcha
|
||||
|
||||
|
||||
@@ -17,17 +17,6 @@
|
||||
<%= f.text_field :external_url, placeholder: t("spending_proposals.form.external_url"), label: false %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 column">
|
||||
<%= f.label :tag_list, t("spending_proposals.form.tags_label") %>
|
||||
<p class="note"><%= t("spending_proposals.form.tags_instructions") %></p>
|
||||
<span class="tags">
|
||||
<% @featured_tags.each do |tag| %>
|
||||
<a class="js-add-tag-link"><%= tag.name %></a>
|
||||
<% end %>
|
||||
</span>
|
||||
<%= f.text_field :tag_list, value: @spending_proposal.tag_list.to_s, label: false, placeholder: t("spending_proposals.form.tags_placeholder"), class: 'js-tag-list' %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 column">
|
||||
<% if @spending_proposal.new_record? %>
|
||||
<%= f.label :terms_of_service do %>
|
||||
|
||||
@@ -263,9 +263,6 @@ en:
|
||||
title: "Spending proposal title"
|
||||
description: "Description"
|
||||
external_url: "Link to additional documentation"
|
||||
tags_label: "Tags"
|
||||
tags_instructions: "Tag this spending proposal. You can choose from our tags or add your own."
|
||||
tags_placeholder: "Enter the tags you would like to use, separated by commas (',')"
|
||||
submit_buttons:
|
||||
new: Create
|
||||
create: Create
|
||||
|
||||
@@ -263,9 +263,6 @@ es:
|
||||
title: "Título de la propuesta de gasto"
|
||||
description: "Descripción detallada"
|
||||
external_url: "Enlace a documentación adicional"
|
||||
tags_label: "Temas"
|
||||
tags_instructions: "Etiqueta esta propuesta de gasto. Puedes elegir entre nuestras sugerencias o introducir las que desees."
|
||||
tags_placeholder: "Escribe las etiquetas que desees separadas por una coma (',')"
|
||||
submit_buttons:
|
||||
new: Crear
|
||||
create: Crear
|
||||
|
||||
Reference in New Issue
Block a user