Private
Public Access
1
0

homepage -> landing page

This commit is contained in:
Sander Roosendaal
2019-06-11 21:59:34 +02:00
parent 55e5193808
commit 488e09fd49
6 changed files with 35 additions and 65 deletions

View File

@@ -578,6 +578,12 @@ class RegistrationForm(UserCreationForm):
model = User
fields = ("username", "first_name", "last_name", "email", "password1", "password2")
widgets = {
'username': forms.TextInput(attrs={'autocomplete':'new-password'}),
'password1': forms.PasswordInput(attrs={'autocomplete':'new-password'}),
'password2': forms.PasswordInput(attrs={'autocomplete':'new-password'}),
}
class RegistrationFormTermsOfService(RegistrationForm):
"""
Subclass of ``RegistrationForm`` which adds a required checkbox

View File

@@ -10,7 +10,11 @@
<li class="grid_4">
<h1>New Coach Registration (free Coach Plan)</h1>
</li>
<li class="grid_2">
<li class="grid_4">
<p>
This form is for registration as a coach.
Click <a href="/rowers/register">here to register as a rower</a>.
</p>
<div id="registrationform">
{% if form.errors %}
@@ -19,14 +23,18 @@
</p>
{% endif %}
<form enctype="multipart/form-data" action="" method="post">
<form enctype="multipart/form-data" action="" method="post" autocomplete="off">
{% csrf_token %}
<table width=100%>
{{ form.as_table }}
</table>
<a href="/rowers/legal/">Terms of Service</a>
<input type="hidden" name="next" value="{{ next }}"/>
<input type="submit" value="Submit">
<p>
<a href="/rowers/legal/">Terms of Service</a>
</p>
<p>
<input type="hidden" name="next" value="{{ next }}"/>
<input type="submit" value="Submit">
</p>
</form>
</div>
</li>
@@ -43,32 +51,6 @@
<p>Also, we are restricting access to the site to 16 years and older
because of EU data protection regulations.</p>
</li>
<li class="rounder grid_2">
<a href="/rowers/coachregister">
<h1>Register as a coach (free)</h1>
<p>Click here and fill out the form to start with a free Coach plan. This allows you
to manage up to 10 athletes (who have to be on the Pro plan). You cannot upload your own
workouts.
</p>
<p>
From this free plan, you can upgrade to any of the paid plans, including coach plans for larger
athlete groups or rower plans for managing your own training plan and workouts.
</p>
</a>
</li>
<li class="rounder grid_2">
<a href="/rowers/register">
<h1>Register as an athlete (free)</h1>
<p>Click here and fill out the form to start with a free Athlete plan. This allows you
to store and analyze your own workouts.
</p>
<p>
From this free plan, you can upgrade to any of the paid plans, including
coach plans for managing larger athlete groups or rower plans for expanded
analytics.
</p>
</a>
</li>
</ul>

View File

@@ -179,7 +179,7 @@
</div>
{% else %}
<div class="signin">
<span style="padding:10px"><a href="/rowers/list-workouts/">Enter&nbsp;</a></span>
<span style="padding:10px"><a href="/rowers/list-workouts/">Launch App&nbsp;</a></span>
</div>
{% endif %}
<div class="logo">

View File

@@ -8,9 +8,13 @@
{% block main %}
<ul class="main-content">
<li class="grid_4">
<h1>New User Registration</h1>
<h1>New Rower Registration</h1>
</li>
<li class="grid_2">
<li class="grid_4">
<p>
This form is for registration as a rower.
Click <a href="/rowers/coachregister">here to register as a coach</a>.
</p>
<div id="registrationform">
{% if form.errors %}
@@ -19,14 +23,18 @@
</p>
{% endif %}
<form enctype="multipart/form-data" action="" method="post">
<form enctype="multipart/form-data" action="" method="post" autocomplete="false">
{% csrf_token %}
<table width=100%>
{{ form.as_table }}
</table>
<a href="/rowers/legal/">Terms of Service</a>
<input type="hidden" name="next" value="{{ next }}"/>
<input type="submit" value="Submit">
<p>
<a href="/rowers/legal/">Terms of Service</a>
</p>
<p>
<input type="hidden" name="next" value="{{ next }}"/>
<input type="submit" value="Submit">
</p>
</form>
</div>
</li>
@@ -43,32 +51,6 @@
<p>Also, we are restricting access to the site to 16 years and older
because of EU data protection regulations.</p>
</li>
<li class="rounder grid_2">
<a href="/rowers/coachregister">
<h1>Register as a coach (free)</h1>
<p>Click here and fill out the form to start with a free Coach plan. This allows you
to manage up to 10 athletes (who have to be on the Pro plan). You cannot upload your own
workouts.
</p>
<p>
From this free plan, you can upgrade to any of the paid plans, including coach plans for larger
athlete groups or rower plans for managing your own training plan and workouts.
</p>
</a>
</li>
<li class="rounder grid_2">
<a href="/rowers/register">
<h1>Register as an athlete (free)</h1>
<p>Click here and fill out the form to start with a free Athlete plan. This allows you
to store and analyze your own workouts.
</p>
<p>
From this free plan, you can upgrade to any of the paid plans, including
coach plans for managing larger athlete groups or rower plans for expanded
analytics.
</p>
</a>
</li>
</ul>

Binary file not shown.

View File

@@ -53,7 +53,7 @@ urlpatterns += [
content_type='text/plain')),
re_path(r'^admin/', admin.site.urls),
re_path(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework2')),
re_path(r'^$',rootview),
re_path(r'^$',landingview),
re_path(r'^landing/$',landingview),
re_path(r'^getblogs/$',rowersviews.get_blog_posts),
re_path(r'^login/',