summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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">