Tidying up labels
This commit is contained in:
parent
c4eb45514f
commit
b09b8e2660
@ -48,7 +48,7 @@
|
|||||||
<input class="eleven wide column" type="text" name="budget_id" value="{{ claim.budget_id }}">
|
<input class="eleven wide column" type="text" name="budget_id" value="{{ claim.budget_id }}">
|
||||||
</div>
|
</div>
|
||||||
<div class="ui required inline grid field">
|
<div class="ui required inline grid field">
|
||||||
<label class="three wide column">Claimee</label>
|
<label class="three wide column">Submitter</label>
|
||||||
<div class="eleven wide column">
|
<div class="eleven wide column">
|
||||||
<div class="ui list">
|
<div class="ui list">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<td>{{ claim.date }}</td>
|
<td>{{ claim.date }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Claimee</td>
|
<td>Submitter</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="ui list">
|
<div class="ui list">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
<td>{{ claim.date }}</td>
|
<td>{{ claim.date }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Claimee</td>
|
<td>Submitter</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="ui list">
|
<div class="ui list">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
|
@ -276,10 +276,10 @@ def budget_action(request, budget, revision):
|
|||||||
emailer = Emailer()
|
emailer = Emailer()
|
||||||
for user in User.objects.filter(groups__name='Treasury'):
|
for user in User.objects.filter(groups__name='Treasury'):
|
||||||
if user != request.user:
|
if user != request.user:
|
||||||
emailer.send_mail([user.email], 'New comment on budget: {}'.format(revision.name), 'sstreasury/email/commented.md', {'revision': revision, 'comment': comment})
|
emailer.send_mail([user.email], 'New comment on budget: {}'.format(revision.name), 'sstreasury/email/budget_commented.md', {'revision': revision, 'comment': comment})
|
||||||
for user in revision.contributors.all():
|
for user in revision.contributors.all():
|
||||||
if user != request.user:
|
if user != request.user:
|
||||||
emailer.send_mail([user.email], 'New comment on budget: {}'.format(revision.name), 'sstreasury/email/commented.md', {'revision': revision, 'comment': comment})
|
emailer.send_mail([user.email], 'New comment on budget: {}'.format(revision.name), 'sstreasury/email/budget_commented.md', {'revision': revision, 'comment': comment})
|
||||||
|
|
||||||
if 'Submit' in actions:
|
if 'Submit' in actions:
|
||||||
if not revision.can_submit(request.user):
|
if not revision.can_submit(request.user):
|
||||||
@ -290,9 +290,9 @@ def budget_action(request, budget, revision):
|
|||||||
|
|
||||||
emailer = Emailer()
|
emailer = Emailer()
|
||||||
for user in User.objects.filter(groups__name='Treasury'):
|
for user in User.objects.filter(groups__name='Treasury'):
|
||||||
emailer.send_mail([user.email], 'Action required: Budget submitted: {}'.format(revision.name), 'sstreasury/email/submitted_treasurer.md', {'revision': revision})
|
emailer.send_mail([user.email], 'Action required: Budget submitted: {}'.format(revision.name), 'sstreasury/email/budget_submitted_treasurer.md', {'revision': revision})
|
||||||
for user in revision.contributors.all():
|
for user in revision.contributors.all():
|
||||||
emailer.send_mail([user.email], 'Budget submitted: {}'.format(revision.name), 'sstreasury/email/submitted_drafter.md', {'revision': revision})
|
emailer.send_mail([user.email], 'Budget submitted: {}'.format(revision.name), 'sstreasury/email/budget_submitted_drafter.md', {'revision': revision})
|
||||||
|
|
||||||
if 'Withdraw' in actions:
|
if 'Withdraw' in actions:
|
||||||
if not revision.can_withdraw(user):
|
if not revision.can_withdraw(user):
|
||||||
@ -310,9 +310,9 @@ def budget_action(request, budget, revision):
|
|||||||
|
|
||||||
emailer = Emailer()
|
emailer = Emailer()
|
||||||
for user in User.objects.filter(groups__name='Secretary'):
|
for user in User.objects.filter(groups__name='Secretary'):
|
||||||
emailer.send_mail([user.email], 'Action required: Budget endorsed: {}'.format(revision.name), 'sstreasury/email/endorsed_secretary.md', {'revision': revision})
|
emailer.send_mail([user.email], 'Action required: Budget endorsed: {}'.format(revision.name), 'sstreasury/email/budget_endorsed_secretary.md', {'revision': revision})
|
||||||
for user in revision.contributors.all():
|
for user in revision.contributors.all():
|
||||||
emailer.send_mail([user.email], 'Budget endorsed, awaiting committee approval: {}'.format(revision.name), 'sstreasury/email/endorsed.md', {'revision': revision})
|
emailer.send_mail([user.email], 'Budget endorsed, awaiting committee approval: {}'.format(revision.name), 'sstreasury/email/budget_endorsed_drafter.md', {'revision': revision})
|
||||||
|
|
||||||
if 'Return' in actions:
|
if 'Return' in actions:
|
||||||
if not revision.can_return(user):
|
if not revision.can_return(user):
|
||||||
@ -323,7 +323,7 @@ def budget_action(request, budget, revision):
|
|||||||
|
|
||||||
emailer = Emailer()
|
emailer = Emailer()
|
||||||
for user in revision.contributors.all():
|
for user in revision.contributors.all():
|
||||||
emailer.send_mail([user.email], 'Action required: Budget returned for re-drafting: {}'.format(revision.name), 'sstreasury/email/returned.md', {'revision': revision})
|
emailer.send_mail([user.email], 'Action required: Budget returned for re-drafting: {}'.format(revision.name), 'sstreasury/email/budget_returned.md', {'revision': revision})
|
||||||
|
|
||||||
if 'Approve' in actions:
|
if 'Approve' in actions:
|
||||||
if not revision.can_approve(user):
|
if not revision.can_approve(user):
|
||||||
@ -334,7 +334,7 @@ def budget_action(request, budget, revision):
|
|||||||
|
|
||||||
emailer = Emailer()
|
emailer = Emailer()
|
||||||
for user in revision.contributors.all():
|
for user in revision.contributors.all():
|
||||||
emailer.send_mail([user.email], 'Budget approved: {}'.format(revision.name), 'sstreasury/email/approved.md', {'revision': revision})
|
emailer.send_mail([user.email], 'Budget approved: {}'.format(revision.name), 'sstreasury/email/budget_approved.md', {'revision': revision})
|
||||||
|
|
||||||
if 'CmteReturn' in actions:
|
if 'CmteReturn' in actions:
|
||||||
if not revision.can_cmtereturn(user):
|
if not revision.can_cmtereturn(user):
|
||||||
@ -345,7 +345,7 @@ def budget_action(request, budget, revision):
|
|||||||
|
|
||||||
emailer = Emailer()
|
emailer = Emailer()
|
||||||
for user in revision.contributors.all():
|
for user in revision.contributors.all():
|
||||||
emailer.send_mail([user.email], 'Action required: Budget returned for re-drafting: {}'.format(revision.name), 'sstreasury/email/returned_committee.md', {'revision': revision})
|
emailer.send_mail([user.email], 'Action required: Budget returned for re-drafting: {}'.format(revision.name), 'sstreasury/email/budget_returned_committee.md', {'revision': revision})
|
||||||
|
|
||||||
return redirect(reverse('budget_view', kwargs={'id': budget.id}))
|
return redirect(reverse('budget_view', kwargs={'id': budget.id}))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user