adds external link
This commit is contained in:
@@ -60,7 +60,7 @@ class ProposalsController < ApplicationController
|
||||
private
|
||||
|
||||
def proposal_params
|
||||
params.require(:proposal).permit(:title, :question, :description, :tag_list, :terms_of_service, :captcha, :captcha_key)
|
||||
params.require(:proposal).permit(:title, :question, :description, :external_url, :tag_list, :terms_of_service, :captcha, :captcha_key)
|
||||
end
|
||||
|
||||
def load_featured_tags
|
||||
|
||||
@@ -17,6 +17,11 @@
|
||||
<%= f.cktext_area :description, maxlength: Proposal.description_max_length, ckeditor: { language: I18n.locale }, label: false %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 column">
|
||||
<%= f.label :external_url, t("proposals.form.proposal_external_url") %>
|
||||
<%= f.text_field :external_url, placeholder: t("proposals.form.proposal_external_url"), label: false %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 column">
|
||||
<%= f.label :tag_list, t("proposals.form.tags_label") %>
|
||||
<span class="note"><%= t("proposals.form.tags_instructions") %></span>
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
</div>
|
||||
|
||||
<%= @proposal.description %>
|
||||
<%= @proposal.external_url %>
|
||||
|
||||
<%= render 'shared/tags', proposal: @proposal %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user