This repository has been archived by the owner on Jul 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from kbhff/56-first-version-of-sign-up
implements #56 As a user I can sign-up to the system
- Loading branch information
Showing
13 changed files
with
181 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
|
||
from django.conf import settings | ||
from django.core.urlresolvers import reverse | ||
|
||
|
||
def coop_vars(request): | ||
return { | ||
'COOP_NAME': settings.COOP_NAME, | ||
'COOP_DESCRIPTION': settings.COOP_DESCRIPTION, | ||
'SIGNUP_URL': reverse(settings.SIGNUP_URL_NAME), | ||
} |
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,38 @@ | ||
{% extends "eggplant/core/base.html" %} | ||
{% load staticfiles %} | ||
{% load bootstrap3 %} | ||
|
||
{% block app_css %} | ||
{% endblock%} | ||
|
||
{% block app_js %} | ||
{% endblock%} | ||
|
||
{% block content %} | ||
|
||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-5 col-md-offset-3"> | ||
|
||
{% if user.profile.is_complete %} | ||
<h3>Signup</h3> | ||
{% else %} | ||
<h3>Please add Your details</h3> | ||
{% endif %} | ||
<form action="{% url 'eggplant:profiles:signup' %}" method="post"> | ||
{% csrf_token %} | ||
{% bootstrap_form form %} | ||
{% buttons %} | ||
<button type="submit" class="btn btn-primary"> | ||
{% bootstrap_icon "star" %} Submit | ||
</button> | ||
{% endbuttons %} | ||
</form> | ||
|
||
<hr/> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
{% endblock%} |
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