summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-10-24 03:22:25 -0400
committerMalf Furious <m@lfurio.us>2018-10-24 03:22:25 -0400
commit6a33b7ea7d503d3181cce1e08e4956d8897e915b (patch)
treefa43d535a8ac484e030699228aa3907b63fea0b5
parent1449564793347f4e34f433f4620834e9c6db290f (diff)
downloadscrott-6a33b7ea7d503d3181cce1e08e4956d8897e915b.tar.gz
scrott-6a33b7ea7d503d3181cce1e08e4956d8897e915b.zip
issue: Add message log to issue view modal
Listing all message (and log messages) beneath the OP in chrono order. There is a form at the bottom to submit new messages. Signed-off-by: Malf Furious <m@lfurio.us>
-rw-r--r--app/view/issue.php62
1 files changed, 62 insertions, 0 deletions
diff --git a/app/view/issue.php b/app/view/issue.php
index 9447e62..6f9f95a 100644
--- a/app/view/issue.php
+++ b/app/view/issue.php
@@ -70,6 +70,68 @@ require_once "class/issue.class.php";
<div class="row">
<div class="col-md-8">
<p><?=$m->renderMesg()?></p>
+
+ <hr />
+
+ <?php foreach ($i->getMesgs_ordByDatetime() as $rm) { ?>
+ <div class="panel panel-default">
+ <div class="panel-body">
+ <?php if ($rm->objtype == "mesg") { ?>
+ <div class="row">
+ <div class="col-xs-1">
+ <?=\datalsts\objHeadCircle($rm->getAuthor(), 40)?>
+ </div>
+
+ <div class="col-xs-11">
+ <strong>
+ <?=$rm->getAuthor()->getDisplayName()?>
+ <!--
+ <span class="glyphicon glyphicon-edit"></span>
+ <span class="glyphicon glyphicon-inbox"></span>
+ -->
+ </strong>
+
+ <small><?=$rm->created?></small>
+ <br />
+ <?=$rm->renderMesg()?>
+
+ <?php if ($rm->getAttachment()) { ?>
+ <br />
+ <br />
+
+ <a href="<?=$rm->getAttachment()?>" class="btn btn-info">
+ <span class="glyphicon glyphicon-save"></span>
+ <?=$rm->attachment?>
+ </a>
+ <?php } ?>
+ </div>
+ </div>
+ <?php } else { ?>
+ <?=\datalsts\objHeadCircle($rm->getAuthor(), 25)?>
+ <?=$rm->renderMesg()?>
+ <small><?=$rm->created?></small>
+ <?php } ?>
+ </div>
+ </div>
+ <?php } ?>
+
+ <form method="post" action="<?=ap()?>">
+ <?=\formctrl\formname( "iss-mesg-add" )?>
+ <?=\formctrl\hidden( "issue", $i->guid )?>
+ <?=\formctrl\textarea( "New message", "mesg", 5 )?>
+
+ <div class="btn-group pull-right">
+ <button type="submit" name="input[postMesg]" class="btn btn-primary">
+ <span class="glyphicon glyphicon-envelope"></span> Post message
+ </button>
+
+ <button type="submit" name="input[closeIssue]" class="btn btn-success">
+ <span class="glyphicon glyphicon-ok"></span> Close issue
+ </button>
+ </div>
+
+ <?=\formctrl\file( "Attachment", "attachment" )?>
+ </form>
</div>
<div class="col-md-4">