This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
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 #231 from WycliffeAssociates/event-update
Event update
- Loading branch information
Showing
13 changed files
with
651 additions
and
61 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<table class="table"> | ||
<tbody> | ||
{% if data %} | ||
|
||
<tr> | ||
<th>Translation Project</th> | ||
<td> | ||
{% if user.is_authenticated %} | ||
<a class="btn btn-primary btn-xs" href="{% url "tracking:charter_update" charter.id %}">Edit</a> | ||
{% else %} | ||
<i class="fa fa-check"></i> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
<tr><th>Start Date</th><td>{{ data.start_date }}</td></tr> | ||
<tr><th>Completion Date</th><td>{{ data.end_date }}</td></tr> | ||
|
||
{% if user.is_authenticated %} | ||
<tr><th>Lead Department</th><td>{{ data.lead_dept }}</td></tr> | ||
<tr><th>Contact Person</th><td>{{ data.contact_person }}</td></tr> | ||
<tr><th>Accounting Number</th><td>{{ data.number }}</td></tr> | ||
<tr><th>Created At</th><td>{{ data.created_at }}</td></tr> | ||
<tr><th>Created By</th><td>{{ data.created_by }}</td></tr> | ||
{% endif %} | ||
|
||
{% else %} | ||
|
||
<tr> | ||
<th>Translation Project</th> | ||
<td> | ||
{% if user.is_authenticated %} | ||
<a class="btn btn-primary btn-xs" href="{% url "tracking:charter_add" %}">Add</a> | ||
{% else %} | ||
<span>Not Started</span> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
|
||
{% endif %} | ||
</tbody> | ||
</table> |
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,24 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('tracking', '0017_auto_20151001_1432'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='event', | ||
name='current_check_level', | ||
field=models.SlugField(choices=[(b'1', b'1'), (b'2', b'2'), (b'3', b'3')], blank=True, null=True, verbose_name=b'Current Checking Level'), | ||
), | ||
migrations.AddField( | ||
model_name='event', | ||
name='target_check_level', | ||
field=models.SlugField(choices=[(b'1', b'1'), (b'2', b'2'), (b'3', b'3')], blank=True, null=True, verbose_name=b'Anticipated Checking Level'), | ||
), | ||
] |
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,46 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('tracking', '0018_auto_20151001_1715'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Output', | ||
fields=[ | ||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), | ||
('name', models.CharField(max_length=200)), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='Publication', | ||
fields=[ | ||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), | ||
('name', models.CharField(max_length=200)), | ||
], | ||
), | ||
migrations.RemoveField( | ||
model_name='event', | ||
name='publishing_process', | ||
), | ||
migrations.RemoveField( | ||
model_name='event', | ||
name='output_target', | ||
), | ||
migrations.AddField( | ||
model_name='event', | ||
name='publication', | ||
field=models.ManyToManyField(to='tracking.Publication', verbose_name=b'Publishing Medium', blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='event', | ||
name='output_target', | ||
field=models.ManyToManyField(to='tracking.Output', verbose_name=b'Output Target', blank=True), | ||
), | ||
] |
Oops, something went wrong.