-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TP2000-1544 Prototype workflow template create & update views (#1328)
* Don't show actions for a single item in queue list * Filter queue items by their own queue when reordering * Support task workflow template creation * Support workflow template editing
- Loading branch information
1 parent
baf7f61
commit f4f351c
Showing
13 changed files
with
334 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
tasks/jinja2/tasks/workflows/template_confirm_create.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{% extends "common/confirm_create.jinja" %} | ||
|
||
{% from "components/breadcrumbs.jinja" import breadcrumbs %} | ||
{% from "components/panel/macro.njk" import govukPanel %} | ||
{% from "components/button/macro.njk" import govukButton %} | ||
|
||
{% set page_title = "Workflow template created" %} | ||
|
||
{% block breadcrumb %} | ||
{{ breadcrumbs( | ||
request, | ||
[ | ||
{"text": "Find and view workflow templates", "href": "#TODO"}, | ||
{ | ||
"text": "Create a workflow template", | ||
"href": url("workflow:task-workflow-template-ui-create"), | ||
}, | ||
{"text": page_title} | ||
], | ||
False, | ||
) }} | ||
{% endblock %} | ||
|
||
{% block panel %} | ||
{{ govukPanel({ | ||
"titleText": "Workflow template: " ~ object.title, | ||
"text": "You have created a new workflow template", | ||
"classes": "govuk-!-margin-bottom-7" | ||
}) }} | ||
{% endblock %} | ||
|
||
{% block button_group %} | ||
{{ govukButton({ | ||
"text": "View workflow template", | ||
"href": url("workflow:task-workflow-template-ui-detail", kwargs={"pk": object.pk}), | ||
"classes": "govuk-button" | ||
}) }} | ||
{{ govukButton({ | ||
"text": "Create a task template", | ||
"href": url("workflow:task-template-ui-create", kwargs={"workflow_template_pk": object.pk}), | ||
"classes": "govuk-button--secondary" | ||
}) }} | ||
{% endblock %} | ||
|
||
{% block actions %} | ||
<li><a href="TODO" class="govuk-link">Find and view workflow templates</a></li> | ||
{% endblock %} |
49 changes: 49 additions & 0 deletions
49
tasks/jinja2/tasks/workflows/template_confirm_update.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{% extends "common/confirm_create.jinja" %} | ||
|
||
{% from "components/breadcrumbs.jinja" import breadcrumbs %} | ||
{% from "components/panel/macro.njk" import govukPanel %} | ||
{% from "components/button/macro.njk" import govukButton %} | ||
|
||
{% set page_title = "Workflow template updated" %} | ||
|
||
{% block breadcrumb %} | ||
{{ breadcrumbs( | ||
request, | ||
[ | ||
{"text": "Find and view workflow templates", "href": "#TODO"}, | ||
{ | ||
"text": "Workflow template: " ~ object.title, | ||
"href": url( | ||
"workflow:task-workflow-template-ui-detail", | ||
kwargs={"pk": object.pk}), | ||
}, | ||
{"text": page_title} | ||
], | ||
False, | ||
) }} | ||
{% endblock %} | ||
|
||
{% block panel %} | ||
{{ govukPanel({ | ||
"titleText": "Workflow template: " ~ object.title, | ||
"text": "You have updated the workflow template", | ||
"classes": "govuk-!-margin-bottom-7" | ||
}) }} | ||
{% endblock %} | ||
|
||
{% block button_group %} | ||
{{ govukButton({ | ||
"text": "View workflow template", | ||
"href": url("workflow:task-workflow-template-ui-detail", kwargs={"pk": object.pk}), | ||
"classes": "govuk-button" | ||
}) }} | ||
{{ govukButton({ | ||
"text": "Create a task template", | ||
"href": url("workflow:task-template-ui-create", kwargs={"workflow_template_pk": object.pk}), | ||
"classes": "govuk-button--secondary" | ||
}) }} | ||
{% endblock %} | ||
|
||
{% block actions %} | ||
<li><a href="TODO" class="govuk-link">Find and view workflow templates</a></li> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends "layouts/create.jinja" %} | ||
|
||
{% from "components/breadcrumbs.jinja" import breadcrumbs %} | ||
|
||
{% set page_title = "Create a workflow template" %} | ||
|
||
{% block breadcrumb %} | ||
{{ breadcrumbs( | ||
request, | ||
[ | ||
{"text": "Find and view workflow templates", "href": "#TODO"}, | ||
{"text": page_title} | ||
], | ||
False, | ||
) }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% extends "layouts/form.jinja" %} | ||
{% from "components/breadcrumbs.jinja" import breadcrumbs %} | ||
|
||
{% set page_title = "Edit workflow template details" %} | ||
|
||
{% block breadcrumb %} | ||
{{ breadcrumbs(request, [ | ||
{"text": "Find and view tasks", "href": url("workflow:task-ui-list")}, | ||
{"text": "Workflow template: " ~ object.title, "href": object.get_url("detail")}, | ||
{"text": page_title} | ||
]) | ||
}} | ||
{% endblock %} | ||
|
||
{% block form %} | ||
{% call django_form() %} | ||
{{ crispy(form) }} | ||
{% endcall %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.