Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding web side ack page #207

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmp/static/cmp/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@
margin-top: 2%;
}

.name-column {
width: 15%; /* Adjust this value as needed */
}
.tasks-column {
width: 85%; /* Adjust this value as needed */
}

.search-input {
margin-top: 20px; /* Adjust as needed */
Expand Down
2 changes: 1 addition & 1 deletion cmp/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
path('countries/', views.countries, name='countries'),
path('cemeteries/', views.cemeteries, name='cemeteries'),
path('pow-camps/', views.powcamps, name='powcamps'),

path('ranks/', views.ranks, name='ranks'),
path('acknowledgements/', views.acknowledgements, name='acknowledgements'),

# Mangagement URLs
# create an index page for mgmt urls to link to /mgmt/countries
Expand Down
4 changes: 4 additions & 0 deletions cmp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def ranks(request):
ranks = Rank.objects.all()
return render(request, 'cmp/ranks.html', {'ranks': ranks})

def acknowledgements(request):
acknowledgements = Acknowledgement.objects.all()
return render(request, 'cmp/acknowledgements.html', {'acknowledgements': acknowledgements})


#def index(request):
# return render(request, "cmp/index.html")
Expand Down
8 changes: 4 additions & 4 deletions templates/cmp/acknowledgements.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ <h1>Acknowledgements</h1>
<thead>
<tr>

<th><h3>Name</h3></th>
<th><h3>Tasks</h3></th>
<th class="name-column"><h3>Name</h3></th>
<th class="tasks-column"><h3>Tasks</h3></th>
</tr>
</thead>
<tbody>
{% for person in acknowledgements |dictsort:"surname" %}
{% for person in acknowledgements|dictsort:"surname" %}
<tr>
<td>{{ person.surname }}</td>
<td>{{ person.name }} {{ person.surname }} </td>
<td>
{{ person.notes }}
</a>
Expand Down
Loading