forked from fredwu/angel_nest
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:fredwu/angel_nest
- Loading branch information
Showing
23 changed files
with
226 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
ul#proposal_section_selector.multistage_selector | ||
li= link_to t('label.product'), '#product' | ||
li= link_to t('label.market'), '#market' | ||
li= link_to t('label.competition'), '#competition' | ||
li= link_to t('label.investment'), '#investment', :class => 'last' | ||
.clear | ||
|
||
= simple_form_for resource, :url => '/', :html => { :class => 'multistage read_only' } do |f| | ||
fieldset#product | ||
legend= t('label.product') | ||
= f.input :new_business_model if resource.new_business_model | ||
= f.input :new_product if resource.new_product | ||
= f.label :pitch | ||
.attribute= resource.pitch | ||
= f.label :introduction | ||
.attribute= resource.introduction | ||
.grouped_buttons | ||
= submit_tag t('label.next'), :class => 'navigation next' | ||
fieldset#market | ||
legend= t('label.market') | ||
h2= t('label.one_year_market') | ||
= f.label :one_year_target_audience | ||
.attribute= resource.one_year_target_audience | ||
= f.input :one_year_per_capita_annual_spending | ||
= f.input :one_year_number_of_users | ||
= f.input :one_year_market_cap | ||
= f.input :one_year_penetration_rate | ||
= f.label :one_year_marketing_strategy | ||
.attribute= resource.one_year_marketing_strategy | ||
= f.input :one_year_gross_profit_margin | ||
br | ||
h2= t('label.five_year_market') | ||
= f.label :five_year_target_audience | ||
.attribute= resource.five_year_target_audience | ||
= f.input :five_year_per_capita_annual_spending | ||
= f.input :five_year_number_of_users | ||
= f.input :five_year_market_cap | ||
= f.input :five_year_penetration_rate | ||
= f.label :five_year_marketing_strategy | ||
.attribute= resource.five_year_marketing_strategy | ||
= f.input :five_year_gross_profit_margin | ||
.grouped_buttons | ||
= submit_tag t('label.prev'), :class => 'navigation prev' | ||
= submit_tag t('label.next'), :class => 'navigation next' | ||
fieldset#competition | ||
legend= t('label.competition') | ||
= f.label :competitors_details | ||
.attribute= resource.competitors_details | ||
= f.label :competitive_edges | ||
.attribute= resource.competitive_edges | ||
= f.label :competing_strategy | ||
.attribute= resource.competing_strategy | ||
.grouped_buttons | ||
= submit_tag t('label.prev'), :class => 'navigation prev' | ||
= submit_tag t('label.next'), :class => 'navigation next' | ||
fieldset#investment | ||
legend= t('label.investment') | ||
= f.input :investment_amount | ||
= f.label :investment_currency | ||
.attribute= resource.investment_currency | ||
= f.input :equity_percentage | ||
= f.label :spending_plan | ||
.attribute= resource.spending_plan | ||
= f.input :next_investment_round | ||
.grouped_buttons | ||
= submit_tag t('label.prev'), :class => 'navigation prev' | ||
- unless resource.proposal_stage_identifier == 'submitted' | ||
= submit_tag t('label.save_draft') | ||
= submit_tag t('label.submit_proposal') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
= render 'form', :submit_path => startup_proposal_path(parent, resource) | ||
= render 'form', :submit_path => startup_proposal_path(parent, resource), :meta => {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
= render 'form', :submit_path => startup_proposals_path(parent) | ||
= render 'form', :submit_path => startup_proposals_path(parent), :meta => {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
= render 'users/mini_profile', :user => current_user, :meta => {} | ||
|
||
hr | ||
h3= t('label.startup_proposals') | ||
ul | ||
li= link_to_current t('label.inbox_proposals') , my_message_inbox_path(:inbox_proposals) | ||
li= link_to_current t('label.sent_proposals') , my_message_inbox_path(:sent_proposals) | ||
li= link_to_current t('label.archived_proposals') , my_message_inbox_path(:archived_proposals) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.grid_3 | ||
= render 'message_inboxes' | ||
= render 'users/message_inboxes' | ||
.grid_9 | ||
= render 'messages/index', :collection => @messages, :meta => { :linkable => true, :new_message? => true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.grid_3 | ||
= render 'users/proposal_inboxes' | ||
.grid_9 | ||
= render 'messages/index', :collection => @messages, :meta => { :linkable => true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Array | ||
def for_auto_suggest | ||
map { |r| { :id => r.id, :name => r.name } } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Warden::Mixins::Common | ||
# overwrites session reset so that we could keep things like 'last_visited_page' | ||
def reset_session! | ||
nil | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.