diff --git a/settings.py_example b/settings.py_example index fa85871..5d14334 100644 --- a/settings.py_example +++ b/settings.py_example @@ -42,4 +42,30 @@ FUNDING_STATUSES[2] = 'funding' FUNDING_STATUSES[3] = 'wip' FUNDING_STATUSES[4] = 'completed' -USER_REG_DISABLED = False \ No newline at end of file +USER_REG_DISABLED = False + +PROPOSAL_CONTENT_DEFAULT = """ +#### Why? + +What problem(s) are you trying to solve? + +#### How much? + +What is the total cost in WOW? List expenses per item. Total hours of work and per hour rate. What exchange rates are you using? + +#### What? + +Describe your idea in detail. + +#### Milestones? + +Break down tasks into different stages. Each stage should have the estimated number of days/weeks needed and cost per stage. + +#### Outcomes? + +What will be delivered? What goals will be reached? + +#### Why you? + +What skills and experience do you have? +""".strip() diff --git a/wowfunding/routes.py b/wowfunding/routes.py index 6cd0c07..1456d10 100644 --- a/wowfunding/routes.py +++ b/wowfunding/routes.py @@ -18,11 +18,17 @@ def about(): return make_response(render_template('about.html')) +@app.route('/proposal/add/disclaimer') +def proposal_add_disclaimer(): + return make_response(render_template(('proposal/disclaimer.html'))) + + @app.route('/proposal/add') def proposal_add(): if current_user.is_anonymous: return make_response(redirect(url_for('login'))) - return make_response(render_template(('proposal/edit.html'))) + default_content = settings.PROPOSAL_CONTENT_DEFAULT + return make_response(render_template('proposal/edit.html', default_content=default_content)) @app.route('/proposal/comment', methods=['POST']) diff --git a/wowfunding/templates/navbar.html b/wowfunding/templates/navbar.html index c48b892..2247d24 100644 --- a/wowfunding/templates/navbar.html +++ b/wowfunding/templates/navbar.html @@ -17,7 +17,7 @@