Permalink
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)
end
end
@@ -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> -->
</ul>
@@ -48,6 +48,24 @@ projected “crisis” or emotional apex and the falling action after it
</span>
</div>

<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:
<ul>
<li>age</li>
<li>gender</li>
<li>economic background</li>
<li>ethnicity</li>
<li>religion</li>
<li>geography</li>
<li>size of potential audience</li>
</ul>
</span>
</div>

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

<hr/>

<p>
<strong>Audience:</strong>
<%= @proposal.audience %>
</p>

<hr/>

<p>
<strong>Outline:</strong>
<%= @proposal.outline %>
@@ -0,0 +1,5 @@
class AddAudienceToProposals < ActiveRecord::Migration
def change
add_column :proposals, :audience, :text
end
end
@@ -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"
end

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

0 comments on commit 2f86e8c

Please sign in to comment.