-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/kartoza/prj.app into 137…
…1_certification_type
- Loading branch information
Showing
9 changed files
with
206 additions
and
31 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
18 changes: 18 additions & 0 deletions
18
django_project/certification/migrations/0007_courseconvener_is_active.py
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,18 @@ | ||
# Generated by Django 2.2.18 on 2021-11-26 04:51 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('certification', '0006_auto_20210730_0615'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='courseconvener', | ||
name='is_active', | ||
field=models.BooleanField(default=True, help_text='Inactive Convener will not be available in your organisation list.'), | ||
), | ||
] |
14 changes: 14 additions & 0 deletions
14
django_project/certification/migrations/0010_merge_20220212_0417.py
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,14 @@ | ||
# Generated by Django 2.2.18 on 2022-02-12 02:17 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('certification', '0007_courseconvener_is_active'), | ||
('certification', '0009_course_certificate_type'), | ||
] | ||
|
||
operations = [ | ||
] |
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
50 changes: 50 additions & 0 deletions
50
django_project/certification/templates/certifying_organisation/includes/convenor_list.html
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,50 @@ | ||
<tr style="border-bottom: 1px solid #e9e9e9;"> | ||
<td class="list"> | ||
<div class="col-lg-10"> | ||
{% if courseconvener.is_active %} | ||
{% if courseconvener.user.first_name %} | ||
{{ courseconvener.user.first_name }} {{ courseconvener.user.last_name }} | ||
{% else %} | ||
{{ courseconvener.user }} | ||
{% endif %} | ||
{% elif user_can_delete %} | ||
<span style="font-style: italic; font-size: 0.8em; color: #777"> | ||
{% if courseconvener.user.first_name %} | ||
{{ courseconvener.user.first_name }} {{ courseconvener.user.last_name }} | ||
{% else %} | ||
{{ courseconvener.user }} | ||
{% endif %} | ||
</span> | ||
<span style="font-size: 0.7em; color: #777"> [inactive]</span> | ||
{% endif %} | ||
</div> | ||
</td> | ||
{% if user_can_delete %} | ||
<td> | ||
<div class="btn-group pull-right button-action"> | ||
{% if courseconvener.course_set.exists %} | ||
<a class="btn btn-default btn-xs btn-disabled tooltip-toggle" | ||
{% if courseconvener.is_active %} | ||
data-title="Cannot delete this Convener. Please deactivate the Convener in Edit menu." | ||
{% else %} | ||
data-title="Cannot delete this Convener. You can reactivate the Convener in Edit menu." | ||
{% endif %} | ||
> | ||
<span class="glyphicon glyphicon-minus"></span> | ||
</a> | ||
{% else %} | ||
<a class="btn btn-default btn-xs btn-delete tooltip-toggle" | ||
href='{% url "courseconvener-delete" project_slug=certifyingorganisation.project.slug organisation_slug=certifyingorganisation.slug slug=courseconvener.slug %}' | ||
data-title="Delete {{ courseconvener.user.first_name }} {{ courseconvener.user.last_name }} <{{ courseconvener.user }}>"> | ||
<span class="glyphicon glyphicon-minus"></span> | ||
</a> | ||
{% endif %} | ||
<a class="btn btn-default btn-xs tooltip-toggle" | ||
href='{% url "courseconvener-update" project_slug=certifyingorganisation.project.slug organisation_slug=certifyingorganisation.slug slug=courseconvener.slug %}' | ||
data-title="Edit {{ courseconvener.user.first_name }} {{ courseconvener.user.last_name }} <{{ courseconvener.user }}>"> | ||
<span class="glyphicon glyphicon-pencil"></span> | ||
</a> | ||
</div> | ||
</td> | ||
{% endif %} | ||
</tr> |
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