diff options
| author | Malf Furious <m@lfurio.us> | 2018-10-22 05:08:37 -0400 | 
|---|---|---|
| committer | Malf Furious <m@lfurio.us> | 2018-10-22 05:08:37 -0400 | 
| commit | 325b697fed92cb56eaa05841e03462b7b2f0c385 (patch) | |
| tree | 9705c6f84de936c82ee7fead97fae1aa53f0a3e4 | |
| parent | 9f0045366490199d2fcd562f8ddc4fc3503b3126 (diff) | |
| download | scrott-325b697fed92cb56eaa05841e03462b7b2f0c385.tar.gz scrott-325b697fed92cb56eaa05841e03462b7b2f0c385.zip | |
pad:  Render issue modals on pad view
This logic instanciates an issue modal view for each issue to be
accessable from a pad view.
Diffstat (limited to '')
| -rw-r--r-- | app/model/pad.php | 8 | ||||
| -rw-r--r-- | app/view/pad.php | 5 | 
2 files changed, 13 insertions, 0 deletions
| diff --git a/app/model/pad.php b/app/model/pad.php index d29b1f6..d7cfb23 100644 --- a/app/model/pad.php +++ b/app/model/pad.php @@ -18,4 +18,12 @@ $pad = getPageObj();  $stages = $pad->getStages();  $stages = array_reverse($stages); +$issues = array(); + +foreach ($stages as $s) +{ +    $i = $s->getIssues_ordByDueByNumb(); +    $issues = array_merge($issues, $i); +} +  ?> diff --git a/app/view/pad.php b/app/view/pad.php index cc857f6..c9f30fc 100644 --- a/app/view/pad.php +++ b/app/view/pad.php @@ -15,6 +15,7 @@  require_once "model/pad.php";  require_once "view/stdpage.php";  require_once "view/datalsts.php"; +require_once "view/issue.php";  ?> @@ -26,6 +27,10 @@ require_once "view/datalsts.php";      </head>      <body> +        <?php foreach ($issues as $i) { ?> +            <?=issue_v\issue($i)?> +        <?php } ?> +          <?=stdpage\top()?>          <?=stdpage\nav()?> | 
