Skip to content
Snippets Groups Projects
Commit 30c320c2 authored by kaiyou's avatar kaiyou
Browse files

Improve the actions UI

parent 0e5ca019
No related branches found
No related tags found
No related merge requests found
......@@ -30,10 +30,14 @@
<div class="col-md-6 col-xs-12">
<div class="box">
<div class="box-header">
<h4>{% trans %}Advanced actions{% endtrans %}</h4>
<h4>{% trans %}Actions{% endtrans %}</h4>
</div>
<div class="box-body">
<dl class="dl-horizontal">
{% for transition, (_, _, _, label) in profile.transitions.items() %}
<dt><a href="{{ url_for("profile.start_transition", profile_uuid=profile.uuid, transition=transition) }}">{{ label | capitalize }}</a></dt>
<dd>{{ label | capitalize }} {% trans %}the profile{% endtrans %}</dd>
{% endfor %}
{% for action, (label, for_profile, _, function) in profile.service.application.actions.items() %}
{% if for_profile %}
<dt><a href="{{ url_for(".action", profile_uuid=profile.uuid, action=action) }}">{{ label }}</a></dt>
......
......@@ -36,7 +36,7 @@
<div class="col-md-6 col-xs-12">
<div class="box">
<div class="box-header">
<h4>{% trans %}Advanced actions{% endtrans %}</h4>
<h4>{% trans %}Actions{% endtrans %}</h4>
</div>
<div class="box-body">
<dl class="dl-horizontal">
......
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