Skip to content

Commit

Permalink
Merge pull request #207 from gm3dmo/ackwebside
Browse files Browse the repository at this point in the history
Adding web side ack page
  • Loading branch information
gm3dmo authored Aug 19, 2024
2 parents 298fcb9 + 897ee60 commit 8e06ab0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
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

0 comments on commit 8e06ab0

Please sign in to comment.