diff options
author | Malf Furious <m@lfurio.us> | 2018-11-04 16:36:12 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-11-04 16:36:12 -0500 |
commit | 23cc51685c5479d487d6416bc7e414e3f8aa60c1 (patch) | |
tree | 26c11b79353ed296d92a29aba33e4e46f853e41c | |
parent | 0452872abb62d30fa3831e5ffdd4b0dabf702fd6 (diff) | |
download | scrott-23cc51685c5479d487d6416bc7e414e3f8aa60c1.tar.gz scrott-23cc51685c5479d487d6416bc7e414e3f8aa60c1.zip |
Add user interface for issue assignment
This allows users to add assignees when posting to an issue. A dropdown
is revealed which contains the pad owner and all members.
Signed-off-by: Malf Furious <m@lfurio.us>
-rw-r--r-- | app/view/issue.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app/view/issue.php b/app/view/issue.php index 67f5627..5f1c518 100644 --- a/app/view/issue.php +++ b/app/view/issue.php @@ -126,6 +126,32 @@ require_once "class/issue.class.php"; <button type="submit" name="input[advIssue]" class="btn btn-default" title="Advance issue"> <span class="glyphicon glyphicon-chevron-up"></span> </button> + + <button type="button" class="btn btn-default" data-toggle="collapse" data-target="#assignCollapse-<?=$i->guid?>" title="Assign issue"> + <span class="glyphicon glyphicon-share-alt"></span> + </button> + </div> + + <div class="collapse" id="assignCollapse-<?=$i->guid?>"> + <div class="form-group"> + <label>Select assignee</label> + + <select name="input[assignee]" class="form-control selectpicker"> + <option data-icon="glyphicon-user" value="<?=$i->getParent()->getParent()->getOwner()->guid?>"> + <?=$i->getParent()->getParent()->getOwner()->getDisplayName()?> + </option> + + <?php foreach ($i->getParent()->getParent()->getMembers() as $memb) { ?> + <option data-icon="glyphicon-user" value="<?=$memb->guid?>"> + <?=$memb->getDisplayName()?> + </option> + <?php } ?> + </select> + </div> + + <button type="submit" name="input[assIssue]" class="btn btn-default"> + <span class="glyphicon glyphicon-share-alt"></span> Post and assign issue + </button> </div> <?=\formctrl\file( "Attachment", "attachment" )?> |