summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/view/datamods.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/app/view/datamods.php b/app/view/datamods.php
index e700043..921002c 100644
--- a/app/view/datamods.php
+++ b/app/view/datamods.php
@@ -119,3 +119,50 @@ require_once "class/user.class.php";
</div>
<?php } ?>
+<?php function newIssue() : void { ?>
+
+ <?php $p = getPageObj(); ?>
+
+ <div id="newIssueModal" class="modal fade" tabindex="-1" role="dialog">
+ <div class="modal-dialog" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal">
+ <span aria-hidden="true">&times;</span>
+ </button>
+
+ <h4 class="modal-title">
+ <span class="glyphicon glyphicon-inbox"></span> Open new Issue
+ </h4>
+ </div>
+
+ <div class="modal-body">
+ <?php if (count($p->getStages()) == 0) { ?>
+ <div class="well well-sm text-center text-danger">
+ <h3><?=$p->name?> doesn't have any stages</h3>
+ </div>
+ <?php } else { ?>
+ <h4>
+ <span class="glyphicon glyphicon-tasks"></span>
+ <?=$p->getStages()[0]->name?>
+ </h4>
+
+ <form method="post" action="<?=ap()?>">
+ <?=\formctrl\formname( "dm-issue-add" )?>
+ <?=\formctrl\hidden( "pad", $p->guid )?>
+ <?=\formctrl\text( "Subject", "name" )?>
+ <?=\formctrl\textarea( "Description", "mesg", 15 )?>
+
+ <button type="submit" class="btn btn-success pull-right">
+ <span class="glyphicon glyphicon-plus"></span> Open
+ </button>
+
+ <p>&nbsp;</p>
+ </form>
+ <?php } ?>
+ </div>
+ </div>
+ </div>
+ </div>
+
+<?php } ?>