Skip to content
Snippets Groups Projects
Commit 9e221411 authored by kaiyou's avatar kaiyou
Browse files

Support basic service management

parent 66b38bf5
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@
{% endblock %}
{% block actions %}
<a href="{{ url_for("profile.list", service_uuid=service.uuid) }}" class="btn btn-primary">{% trans %}View profiles{% endtrans %}</a>
<a href="{{ url_for("profile.list_for_service", service_uuid=service.uuid) }}" class="btn btn-primary">{% trans %}View profiles{% endtrans %}</a>
<a href="{{ url_for(".edit", service_uuid=service.uuid) }}" class="btn btn-primary">{% trans %}Edit this service{% endtrans %}</a>
<a href="{{ url_for(".delete", service_uuid=service.uuid) }}" class="btn btn-danger">{% trans %}Delete this service{% endtrans %}</a>
{% endblock %}
......@@ -12,15 +12,23 @@
<tr>
<th>{% trans %}Service{% endtrans %}</th>
<th>{% trans %}Provider{% endtrans %}</th>
<th>{% trans %}Type{% endtrans %}</th>
<th>{% trans %}Policy{% endtrans %}</th>
<th>{% trans %}Max profiles{% endtrans %}</th>
<th>{% trans %}Actions{% endtrans %}</th>
</tr>
{% for service in services %}
<tr>
<td><a href="{{ url_for(".details", service_uuid=service.uuid) }}">{{ service.name }}</a></td>
<td>{{ service.provider }}</td>
<td>{{ service.protocol }}</td>
<td>{{ service.policy }}</td>
<td>{{ service.max_profiles }}</td>
<td>
<a href="{{ url_for(".details", service_uuid=service.uuid)}}">Details</a>
<a href="{{ url_for("profile.list_for_service", service_uuid=service.uuid)}}">Profiles</a>
<a href="{{ url_for(".edit", service_uuid=service.uuid)}}">Edit</a>
</td>
</tr>
{% endfor %}
</table>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment