Browse files

added audience field in proposal and list existing proposals in sidebar

  • Loading branch information...
Rija Ménagé
Rija Ménagé committed Feb 6, 2014
1 parent 37470c7 commit 2f86e8ce73d6beb0f792f98e93d18ba26b3126e8
@@ -69,6 +69,6 @@ def set_proposal

# Never trust parameters from the scary internet, only allow the white list through.
def proposal_params
params.require(:proposal).permit(:topic_synopsis, :premise, :outline, :conflicts, :characters, :interviews, :form_style, :resolution, :differentiation, :distribution, :project_id)
params.require(:proposal).permit(:topic_synopsis, :premise, :outline, :conflicts, :audience, :characters, :interviews, :form_style, :resolution, :differentiation, :distribution, :project_id)
@@ -11,7 +11,8 @@
<li><%= link_to 'Edit Project Information', edit_project_path(session[:current_project]), :class => "btn btn-link pull-left" %> </li>
<% end %>
<li><a class="btn btn-link pull-left" href="/import_other">Import from other projects</a></li>
<li><a class="btn btn-link pull-left" href="/proposals/new">Proposal and budget editor</a></li>
<li><a class="btn btn-link pull-left" href="/proposals/">Documentary Proposals</a></li>
<li><a class="btn btn-link pull-left" href="/proposals/new">New Documentary Proposal</a></li>
<li><a class="btn btn-link pull-left" href="/submit_festival">Submit project to a festival</a></li>
<!-- <li><a class="btn btn-link pull-left" href="/crowdfund">Crowdfunding Tool</a></li> -->
@@ -48,6 +48,24 @@ projected “crisis” or emotional apex and the falling action after it

<div class="field">
<%= f.label :audience %><br>
<%= f.text_area :audience, :rows => 10, :class => "input-xxlarge" %>
<span class="help-inline">
<span class="label-warning">This section is about the audience of the project</span>
You need to be specific about the demographics of the target audience in terms of such items as:
<li>economic background</li>
<li>size of potential audience</li>

<div class="field">
<%= f.label :outline %><br>
<%= f.text_area :outline, :rows => 10, :class => "input-xxlarge" %>
@@ -21,6 +21,13 @@


<%= @proposal.audience %>


<%= @proposal.outline %>
@@ -0,0 +1,5 @@
class AddAudienceToProposals < ActiveRecord::Migration
def change
add_column :proposals, :audience, :text
@@ -11,7 +11,7 @@
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20140204094929) do
ActiveRecord::Schema.define(version: 20140206005956) do

create_table "budget_lines", force: true do |t|
t.integer "phase"
@@ -173,6 +173,7 @@
t.integer "project_id"
t.datetime "created_at"
t.datetime "updated_at"
t.text "audience"

add_index "proposals", ["project_id"], name: "index_proposals_on_project_id"

0 comments on commit 2f86e8c

Please sign in to comment.