Remove raw IDs from some places
This commit is contained in:
@@ -304,72 +304,74 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<h3 class="title is-7">Actions</h3>
|
||||
<p class="help">Enable/disable each step and use the reorder capsule to change execution order.</p>
|
||||
<table class="table is-fullwidth is-striped is-size-7">
|
||||
<thead>
|
||||
<tr><th scope="col">Type</th><th scope="col">Enabled</th><th scope="col">Reorder</th><th scope="col">Actions</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for action_row in profile.actions.all %}
|
||||
<tr>
|
||||
<td>
|
||||
{% if action_row.action_type == "extract_bp" %}Extract Business Plan
|
||||
{% elif action_row.action_type == "save_document" %}Save Document
|
||||
{% elif action_row.action_type == "post_result" %}Post Result
|
||||
{% else %}{{ action_row.action_type }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ action_row.enabled }}</td>
|
||||
<td>
|
||||
<span class="command-order-capsule">
|
||||
<form method="post" class="command-order-capsule-form" aria-label="Move action {{ action_row.action_type }} up for {{ profile.name }}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="action" value="action_move">
|
||||
<input type="hidden" name="command_action_id" value="{{ action_row.id }}">
|
||||
<input type="hidden" name="direction" value="up">
|
||||
{% if scope_service and scope_identifier %}
|
||||
<input type="hidden" name="service" value="{{ scope_service }}">
|
||||
<input type="hidden" name="identifier" value="{{ scope_identifier }}">
|
||||
{% endif %}
|
||||
<button class="button is-small is-light command-order-btn" type="submit" {% if forloop.first %}disabled{% endif %} aria-label="Move up">▲</button>
|
||||
</form>
|
||||
<form method="post" class="command-order-capsule-form" aria-label="Move action {{ action_row.action_type }} down for {{ profile.name }}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="action" value="action_move">
|
||||
<input type="hidden" name="command_action_id" value="{{ action_row.id }}">
|
||||
<input type="hidden" name="direction" value="down">
|
||||
{% if scope_service and scope_identifier %}
|
||||
<input type="hidden" name="service" value="{{ scope_service }}">
|
||||
<input type="hidden" name="identifier" value="{{ scope_identifier }}">
|
||||
{% endif %}
|
||||
<button class="button is-small is-light command-order-btn" type="submit" {% if forloop.last %}disabled{% endif %} aria-label="Move down">▼</button>
|
||||
</form>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<form method="post" aria-label="Update action {{ action_row.action_type }} for {{ profile.name }}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="action" value="action_update">
|
||||
<input type="hidden" name="command_action_id" value="{{ action_row.id }}">
|
||||
{% if scope_service and scope_identifier %}
|
||||
<input type="hidden" name="service" value="{{ scope_service }}">
|
||||
<input type="hidden" name="identifier" value="{{ scope_identifier }}">
|
||||
{% if profile.show_actions_editor %}
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<h3 class="title is-7">Actions</h3>
|
||||
<p class="help">Enable/disable each step and use the reorder capsule to change execution order.</p>
|
||||
<table class="table is-fullwidth is-striped is-size-7">
|
||||
<thead>
|
||||
<tr><th scope="col">Type</th><th scope="col">Enabled</th><th scope="col">Reorder</th><th scope="col">Actions</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for action_row in profile.actions.all %}
|
||||
<tr>
|
||||
<td>
|
||||
{% if action_row.action_type == "extract_bp" %}Extract Business Plan
|
||||
{% elif action_row.action_type == "save_document" %}Save Document
|
||||
{% elif action_row.action_type == "post_result" %}Post Result
|
||||
{% else %}{{ action_row.action_type }}
|
||||
{% endif %}
|
||||
<label class="checkbox is-size-7"><input type="checkbox" name="enabled" value="1" {% if action_row.enabled %}checked{% endif %}> enabled</label>
|
||||
<button class="button is-link is-light is-small" type="submit">Save</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr><td colspan="4">No actions.</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
<td>{{ action_row.enabled }}</td>
|
||||
<td>
|
||||
<span class="command-order-capsule">
|
||||
<form method="post" class="command-order-capsule-form" aria-label="Move action {{ action_row.action_type }} up for {{ profile.name }}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="action" value="action_move">
|
||||
<input type="hidden" name="command_action_id" value="{{ action_row.id }}">
|
||||
<input type="hidden" name="direction" value="up">
|
||||
{% if scope_service and scope_identifier %}
|
||||
<input type="hidden" name="service" value="{{ scope_service }}">
|
||||
<input type="hidden" name="identifier" value="{{ scope_identifier }}">
|
||||
{% endif %}
|
||||
<button class="button is-small is-light command-order-btn" type="submit" {% if forloop.first %}disabled{% endif %} aria-label="Move up">▲</button>
|
||||
</form>
|
||||
<form method="post" class="command-order-capsule-form" aria-label="Move action {{ action_row.action_type }} down for {{ profile.name }}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="action" value="action_move">
|
||||
<input type="hidden" name="command_action_id" value="{{ action_row.id }}">
|
||||
<input type="hidden" name="direction" value="down">
|
||||
{% if scope_service and scope_identifier %}
|
||||
<input type="hidden" name="service" value="{{ scope_service }}">
|
||||
<input type="hidden" name="identifier" value="{{ scope_identifier }}">
|
||||
{% endif %}
|
||||
<button class="button is-small is-light command-order-btn" type="submit" {% if forloop.last %}disabled{% endif %} aria-label="Move down">▼</button>
|
||||
</form>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<form method="post" aria-label="Update action {{ action_row.action_type }} for {{ profile.name }}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="action" value="action_update">
|
||||
<input type="hidden" name="command_action_id" value="{{ action_row.id }}">
|
||||
{% if scope_service and scope_identifier %}
|
||||
<input type="hidden" name="service" value="{{ scope_service }}">
|
||||
<input type="hidden" name="identifier" value="{{ scope_identifier }}">
|
||||
{% endif %}
|
||||
<label class="checkbox is-size-7"><input type="checkbox" name="enabled" value="1" {% if action_row.enabled %}checked{% endif %}> enabled</label>
|
||||
<button class="button is-link is-light is-small" type="submit">Save</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr><td colspan="4">No actions.</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" style="margin-top: 0.75rem;" aria-label="Delete profile {{ profile.name }}">
|
||||
{% csrf_token %}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{% block content %}
|
||||
<section class="section"><div class="container">
|
||||
<h1 class="title is-4">Group Tasks: {{ channel_display_name }}</h1>
|
||||
<p class="subtitle is-6">{{ service_label }} · {{ identifier }}</p>
|
||||
<p class="subtitle is-6">{{ service_label }}</p>
|
||||
<article class="box">
|
||||
<h2 class="title is-6">Create Or Map Project</h2>
|
||||
<form method="post" style="margin-bottom: 0.7rem;">
|
||||
@@ -68,10 +68,7 @@
|
||||
<td>{{ row.project.name }}</td>
|
||||
<td>{% if row.epic %}{{ row.epic.name }}{% else %}-{% endif %}</td>
|
||||
<td>
|
||||
<div><code>{{ row.service }} · {{ row.channel_identifier }}</code></div>
|
||||
{% if channel_display_name %}
|
||||
<p class="is-size-7 has-text-dark" style="margin-top:0.2rem;">{{ channel_display_name }}</p>
|
||||
{% endif %}
|
||||
<div>{{ row.display_service_label }} · {{ row.display_channel_name }}</div>
|
||||
</td>
|
||||
<td>{{ row.enabled }}</td>
|
||||
<td><a class="button is-small is-light" href="{% url 'tasks_project' project_id=row.project_id %}">Open Project</a></td>
|
||||
|
||||
Reference in New Issue
Block a user