From 68d0262464933a158e31f76fd927b72b19fdf497 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Mon, 18 Oct 2021 18:25:53 -0400 Subject: Add additional info / controls to issueListItem The list of assignees, the owner (opener), and quick controls for advancing or closing an issue are now available in the issue listing for pad stages (or the closed issue list, which is missing the new control buttons). If using the quick control buttons to manipulate an issue, the issue modal is not called-up on the page reload. Signed-off-by: Malfurious --- app/model/issue.php | 4 +++- app/view/datalsts.php | 43 +++++++++++++++++++++++++++++++++++++++---- app/view/pad_closed.php | 2 +- 3 files changed, 43 insertions(+), 6 deletions(-) diff --git a/app/model/issue.php b/app/model/issue.php index dd904e4..3f7b620 100644 --- a/app/model/issue.php +++ b/app/model/issue.php @@ -25,6 +25,7 @@ if (isAction("iss-mesg-add")) $form->text("issue"); $form->text("mesg", false); $form->text("assignee"); + $form->flag("nopop"); if (!$form->populate(input())) return; @@ -106,7 +107,8 @@ if (isAction("iss-mesg-add")) } /* automatically redisplay issue modal */ - setAutoModal("#issueModal-" . $issue->guid); + if ($form->nopop != "1") + setAutoModal("#issueModal-" . $issue->guid); } ?> diff --git a/app/view/datalsts.php b/app/view/datalsts.php index ba9021b..b80de78 100644 --- a/app/view/datalsts.php +++ b/app/view/datalsts.php @@ -17,6 +17,7 @@ namespace datalsts; require_once "class/obj.class.php"; require_once "class/stage.class.php"; require_once "class/issue.class.php"; +require_once "view/formctrl.php"; ?> @@ -130,12 +131,46 @@ require_once "class/issue.class.php"; - + + + getAssignees(); ?> - - guid?> (#numb?>) - name?> + #numb?> + + + name?> + + +
+ + guid )?> + + + + +   + + assignee, 20)?> + + + getOwner(), 20)?> + + +   +
+ + + +
+ +
+
+ diff --git a/app/view/pad_closed.php b/app/view/pad_closed.php index 412ce4f..c0678e3 100644 --- a/app/view/pad_closed.php +++ b/app/view/pad_closed.php @@ -64,7 +64,7 @@ require_once "view/issue.php"; - +
-- cgit v1.2.3 From d554ce9e415c3d8ed1541e1c0bf507cf0b88b208 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Mon, 18 Oct 2021 19:27:27 -0400 Subject: Add stage/guid information to issue modal title bar The previous patch removed the guid from the far left side of issueListItem entries. This patch makes that value visible again within the popup issue modal window. Additionally, the issue's current stage is displayed next to its name. Viewing this info here is convenient, however this is mostly done in anticipation of being able to access issues from the main user dashboard, where pad stage context may be missing. Signed-off-by: Malfurious --- app/view/issue.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/view/issue.php b/app/view/issue.php index 01a9f5f..4ca0e3b 100644 --- a/app/view/issue.php +++ b/app/view/issue.php @@ -51,6 +51,7 @@ require_once "class/issue.class.php"; getOPMesg(); ?> + getParent(); ?>