mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
Fix service id bug in template. Use current_service instead
This commit is contained in:
@@ -45,7 +45,6 @@ def service_dashboard(service_id):
|
|||||||
spent_this_month='0.00',
|
spent_this_month='0.00',
|
||||||
statistics=add_rates_to(statistics),
|
statistics=add_rates_to(statistics),
|
||||||
templates=templates,
|
templates=templates,
|
||||||
service_id=str(service_id),
|
|
||||||
template_statistics=template_statistics)
|
template_statistics=template_statistics)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
field_headings=['Template', 'Type', right_aligned_field_heading('Usage')]
|
field_headings=['Template', 'Type', right_aligned_field_heading('Usage')]
|
||||||
) %}
|
) %}
|
||||||
{% call field() %}
|
{% call field() %}
|
||||||
<a href="{{ url_for('.edit_service_template', service_id=service_id, template_id=item.template.id) }}">
|
<a href="{{ url_for('.edit_service_template', service_id=current_service.id, template_id=item.template.id) }}">
|
||||||
{{ item.template.name }}
|
{{ item.template.name }}
|
||||||
</a>
|
</a>
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|||||||
Reference in New Issue
Block a user