testing
This commit is contained in:
@@ -236,7 +236,7 @@ class SearchForm(forms.Form):
|
|||||||
# simple form for Contact page. Sends email to info@rowsandall.com
|
# simple form for Contact page. Sends email to info@rowsandall.com
|
||||||
class EmailForm(forms.Form):
|
class EmailForm(forms.Form):
|
||||||
firstname = forms.CharField(max_length=255)
|
firstname = forms.CharField(max_length=255)
|
||||||
lastname = forms.CharField(max_length=255)
|
lastname = forms.CharField(max_length=255, required=False)
|
||||||
email = forms.EmailField()
|
email = forms.EmailField()
|
||||||
subject = forms.CharField(max_length=255)
|
subject = forms.CharField(max_length=255)
|
||||||
message = forms.CharField(widget=forms.Textarea())
|
message = forms.CharField(widget=forms.Textarea())
|
||||||
|
|||||||
@@ -5,132 +5,132 @@
|
|||||||
|
|
||||||
|
|
||||||
<ul class="main-content">
|
<ul class="main-content">
|
||||||
<li class="grid_2">
|
<li class="grid_2">
|
||||||
{% if form.errors %}
|
{% if form.errors %}
|
||||||
<p style="color: red;">
|
<p style="color: red;">
|
||||||
Please correct the error{{ form.errors|pluralize }} below.
|
Please correct the error{{ form.errors|pluralize }} below.
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<form method="post" action="/rowers/email/send/" id="contactform">{% csrf_token %}
|
<form method="post" action="/rowers/email/send/" id="contactform">{% csrf_token %}
|
||||||
<p>
|
<p>
|
||||||
<table>
|
<table>
|
||||||
<tr><td>
|
<tr><td>
|
||||||
<label>Name <span class="required">*</span></label>
|
<label>Name <span class="required">*</span></label>
|
||||||
<span class="span">
|
<span class="span">
|
||||||
</td><td>
|
</td><td>
|
||||||
<input name= "firstname" class="inputtext" maxlength="255" size="12" />
|
<input name= "firstname" class="inputtext" maxlength="255" size="12" />
|
||||||
<label>First</label>
|
<label>First</label>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr><td>
|
<tr><td>
|
||||||
</span>
|
</span>
|
||||||
<span class="span">
|
<span class="span">
|
||||||
</td><td>
|
</td><td>
|
||||||
<input name= "lastname" class="inputtext" maxlength="255" size="18" />
|
<input name= "lastname" class="inputtext" maxlength="255" size="18" />
|
||||||
<label>Last</label>
|
<label>Last</label>
|
||||||
</span>
|
</span>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr><td>
|
<tr><td>
|
||||||
<label>Email Address <span class="required">*</span></label>
|
<label>Email Address <span class="required">*</span></label>
|
||||||
</td><td>
|
</td><td>
|
||||||
<input name="email" class="inputtext" type="text" maxlength="255" size="35" />
|
<input name="email" class="inputtext" type="text" maxlength="255" size="35" />
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr><td>
|
<tr><td>
|
||||||
<label>Subject <span class="required">*</span></label>
|
<label>Subject <span class="required">*</span></label>
|
||||||
</td><td>
|
</td><td>
|
||||||
<input name="subject" class="inputtext" type="text" maxlength="255" size="45" />
|
<input name="subject" class="inputtext" type="text" maxlength="255" size="45" />
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
<table>
|
<table>
|
||||||
<input type="hidden" name="g-recaptcha-response" id='recaptcha'>
|
<input type="hidden" name="g-recaptcha-response" id='recaptcha'>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr><td>
|
<tr><td>
|
||||||
<label>Message <span class="required">*</span></label>
|
<label>Message <span class="required">*</span></label>
|
||||||
</td><td>
|
</td><td>
|
||||||
<textarea name="message" class="inputtextarea" rows="11" cols="45"></textarea>
|
<textarea name="message" class="inputtextarea" rows="11" cols="45"></textarea>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr><td>
|
<tr><td>
|
||||||
<input type="submit" name="submitform" value="Send Message" />
|
<input type="submit" name="submitform" value="Send Message" />
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="grid_2">
|
<li class="grid_2">
|
||||||
<h1>Bug reporting, feature requests</h1>
|
<h1>Bug reporting, feature requests</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Bug reports and feature requests can be done through our BitBucket page. Please check on the following link if your bug or issue is a known one. Feel free to file any feature request.
|
Bug reports and feature requests can be done through our BitBucket page. Please check on the following link if your bug or issue is a known one. Feel free to file any feature request.
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://bitbucket.org/sanderroosendaal/rowsandall/issues">BitBucket Issue list (click here to go report an issue or request a feature)</a></li>
|
<li><a href="https://bitbucket.org/sanderroosendaal/rowsandall/issues">BitBucket Issue list (click here to go report an issue or request a feature)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="grid_2">
|
<li class="grid_2">
|
||||||
<h1>Facebook Group</h1>
|
<h1>Facebook Group</h1>
|
||||||
|
|
||||||
<p>We run a facebook group where you can post questions and report problems,
|
<p>We run a facebook group where you can post questions and report problems,
|
||||||
especially if you think the wider user community benefits from the answers.</p>
|
especially if you think the wider user community benefits from the answers.</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://www.facebook.com/groups/rowsandall/">https://www.facebook.com/groups/rowsandall/</a></li>
|
<li><a href="https://www.facebook.com/groups/rowsandall/">https://www.facebook.com/groups/rowsandall/</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="grid_2">
|
<li class="grid_2">
|
||||||
<h1>Twitter</h1>
|
<h1>Twitter</h1>
|
||||||
|
|
||||||
<p>You can also check me on Twitter:
|
<p>You can also check me on Twitter:
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://twitter.com/rowsandall">https://twitter.com/rowsandall</a>
|
<li><a href="https://twitter.com/rowsandall">https://twitter.com/rowsandall</a>
|
||||||
</ul>
|
</ul>
|
||||||
When the site is down, this is the appropriate channel to look for apologies, updates, and offer help.
|
When the site is down, this is the appropriate channel to look for apologies, updates, and offer help.
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="grid_2">
|
<li class="grid_2">
|
||||||
<h1>Rowsandall s.r.o.</h1>
|
<h1>Rowsandall s.r.o.</h1>
|
||||||
|
|
||||||
<p><strong>Rowsandall s.r.o.</strong><br />
|
<p><strong>Rowsandall s.r.o.</strong><br />
|
||||||
Nové sady 988/2<br />
|
Nové sady 988/2<br />
|
||||||
602 00 Brno<br />
|
602 00 Brno<br />
|
||||||
Czech Republic<br />
|
Czech Republic<br />
|
||||||
IČ: 070 48 572<br />
|
IČ: 070 48 572<br />
|
||||||
DIČ: CZ 070 48 572 (Nejsme plátce DPH)<br />
|
DIČ: CZ 070 48 572 (Nejsme plátce DPH)<br />
|
||||||
Datová schránka: 7897syr<br />
|
Datová schránka: 7897syr<br />
|
||||||
Email: <a href="mailto:info@rowsandall.com">info@rowsandall.com</a><br />
|
Email: <a href="mailto:info@rowsandall.com">info@rowsandall.com</a><br />
|
||||||
The company is registered in the business register at the
|
The company is registered in the business register at the
|
||||||
Regional Court in Brno (Společnost je zapsána v obchodním rejstříku vedeném u Krajského soudu v Brně, oddíl C, vložka 105845)<br/>
|
Regional Court in Brno (Společnost je zapsána v obchodním rejstříku vedeném u Krajského soudu v Brně, oddíl C, vložka 105845)<br/>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block sidebar %}
|
{% block sidebar %}
|
||||||
{% include 'menu_help.html' %}
|
{% include 'menu_help.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="https://www.google.com/recaptcha/api.js?render=6LdRtMwUAAAAAGcKcFc28pGvmEb1wwDY27i0AX8B"></script>
|
<script src="https://www.google.com/recaptcha/api.js?render=6LdRtMwUAAAAAGcKcFc28pGvmEb1wwDY27i0AX8B"></script>
|
||||||
<script>
|
<script>
|
||||||
// 3
|
// 3
|
||||||
grecaptcha.ready(function() {
|
grecaptcha.ready(function() {
|
||||||
// 4
|
// 4
|
||||||
$('#contactform').submit(function(e){
|
$('#contactform').submit(function(e){
|
||||||
var form = this;
|
var form = this;
|
||||||
// 5
|
// 5
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
grecaptcha.execute('6LdRtMwUAAAAAGcKcFc28pGvmEb1wwDY27i0AX8B', {action: 'contactform'}).then(function(token) {
|
grecaptcha.execute('6LdRtMwUAAAAAGcKcFc28pGvmEb1wwDY27i0AX8B', {action: 'contactform'}).then(function(token) {
|
||||||
// 6
|
// 6
|
||||||
$('#recaptcha').val(token)
|
$('#recaptcha').val(token)
|
||||||
// 7
|
// 7
|
||||||
form.submit()
|
form.submit()
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -42,12 +42,7 @@ class ListWorkoutTest(TestCase):
|
|||||||
rowerplan='coach')
|
rowerplan='coach')
|
||||||
|
|
||||||
self.c = Client()
|
self.c = Client()
|
||||||
self.user_workouts = WorkoutFactory.create_batch(len(workouttypes), user=self.r)
|
self.user_workouts = WorkoutFactory.create_batch(5, user=self.r)
|
||||||
i = 0
|
|
||||||
for workouttype in workouttypes:
|
|
||||||
self.user_workouts[i].workouttype = workouttype[0]
|
|
||||||
self.user_workouts[i].save()
|
|
||||||
i = i+1
|
|
||||||
|
|
||||||
self.factory = RequestFactory()
|
self.factory = RequestFactory()
|
||||||
self.password = faker.word()
|
self.password = faker.word()
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user