When a proposal is being submitted, we want to allow the submitter to fill out the form once with all the required data. This change unifies the forms for both editing and creating proposals. This allows us to ensure that features are added in parallel to both workflows. We also reduce the number of duplicate lines by removing duplicates from the new.html.haml file. We also increase the column size in css to have both pages show the same width forms.
25 lines
793 B
Text
25 lines
793 B
Text
.container
|
|
.row
|
|
.col-md-12
|
|
.page-header
|
|
%h1 New Proposal
|
|
.row
|
|
.col-md-12
|
|
= render partial: 'encouragement_text'
|
|
.row
|
|
.col-md-12
|
|
- if !current_user
|
|
%legend
|
|
%span
|
|
=link_to('#signup', role: 'tab', "aria-controls" => "home", "data-toggle" => "tab") do
|
|
= CONFIG['name']
|
|
Account
|
|
%span.pull-right#account-already
|
|
=link_to('#signin', role: 'tab', "aria-controls" => "home", "data-toggle" => "tab") do
|
|
Already have an account?
|
|
.tab-content
|
|
.tab-pane.active{role: 'tabpanel', id: 'signup'}
|
|
= render partial: 'proposal_form'
|
|
|
|
.tab-pane{role: 'tabpanel', id: 'signin'}
|
|
= render partial: 'devise/shared/sign_in_form_embedded'
|