Skip to content

Commit

Permalink
Release v0.1.2, merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdp committed Jul 5, 2016
2 parents d2a7830 + d84624f commit 41fd764
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 18 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file. Notes should be geared towards the managers of
xSACdb instances. This project will soon adhere to [Semantic Versioning](http://semver.org/).


## [0.1.2] - 2016-07-05

### Changed
- Display qualification list on training dash for users without any qualifications or training_for, #144

### Fixed
- Updating planned SDC dates and notes fails.
- Upcoming SDC sorted by date.
- Server error when generating pool sheet, #223


## [0.1.1] - 2016-05-24

### Fixed
Expand Down
1 change: 1 addition & 0 deletions src/templates_global/print_template.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% load staticfiles %}
<!doctype html>
<html>
<head>
Expand Down
3 changes: 3 additions & 0 deletions src/xSACdb/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,6 @@
('xsd_training', 'TraineeGroup'),
('xsd_sites', 'Site'),
]

## TODO HACK, disable email sending to prevent #173 on servers without email provision
EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
4 changes: 2 additions & 2 deletions src/xSACdb/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Version file, currently manually updated

VERSION = {
'tag': '0.1.1',
'released': '2016-05-24',
'tag': '0.1.2',
'released': '2016-07-05',
}
2 changes: 1 addition & 1 deletion src/xsd_training/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Meta:
class PerformedSDCUpdateForm(forms.ModelForm):
class Meta:
model=PerformedSDC
fields= ('sdc', 'datetime', 'notes')
fields= ('datetime', 'notes')

class QualificationSelectForm(forms.Form):
qualification=forms.ModelChoiceField(queryset=Qualification.objects.all())
Expand Down
9 changes: 1 addition & 8 deletions src/xsd_training/templates/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@

<div class="span4">
<p>Welcome to your club training logbook. From here you can lookup all your upcoming and past lessons including lesson feedback.</p>
{% if profile.top_qual == None and profile.training_for == None %}
<div class="alert alert-info">
<i class="fa fa-info-circle"></i> No data
</div>
{% else %}

<table class="table">
<tr><td><i class="indicator fa fa-chevron-circle-right"></i></td><td>Training For</td><td><i class="indicator fa fa-star"></td><td>Current Qualification</td></tr>
</table>
Expand All @@ -19,9 +15,6 @@
{{qual.title}}
</div>
{% endfor %}
{% endif %}



</div>

Expand Down
7 changes: 4 additions & 3 deletions src/xsd_training/templates/performedsdc_update.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{% extends 'training_template.html' %}
{% load staticfiles %}
{% load bootstrap_toolkit %}

{% block training_content %}
<div class="span3">
<form action="." method="POST">
{% csrf_token %}
<input type="hidden" name="action" value="detail" />
<h2>{{psdc.sdc}}</h2>
<p>This skill development course is planned for {{form.datetime}}</p>
<p>{{form.notes}}</p>
<h2>{{ psdc.sdc }}</h2>
<p>This skill development course is planned for {{ form.datetime|as_bootstrap }}</p>
<p>{{ form.notes|as_bootstrap }}</p>

<input type="submit" class="btn btn-primary" value="Save Changes" />
</form>
Expand Down
3 changes: 1 addition & 2 deletions src/xsd_training/templates/pool_sheet_generate.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@
{% endfor %}
</table>


{% endblock %}
{% endblock %}
7 changes: 6 additions & 1 deletion src/xsd_training/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ def test_200(self):
def test_content(self):
c = self.get_client()
r = c.get(self.URL)
self.assertIn('No data', r.content)

self.assertIn('Ocean Diver', r.content)
self.assertIn('Sports Diver', r.content)
self.assertIn('Dive Leader', r.content)
self.assertIn('Advanced Diver', r.content)
self.assertIn('First Class Diver', r.content)

def test_content_with_tf(self):
# Set training_for so list appears
Expand Down
2 changes: 1 addition & 1 deletion src/xsd_training/views/sdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class PerformedSDCList(RequireVerified, ListView):

def get_queryset(self):
queryset=super(PerformedSDCList, self).get_queryset()
queryset=queryset.filter(completed=False)
queryset=queryset.filter(completed=False).order_by('datetime')
return queryset

class PerformedSDCDetail(RequireVerified, DetailView):
Expand Down

0 comments on commit 41fd764

Please sign in to comment.