Movement of buttons
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
$PAGE_NAME = "Close request";
|
$PAGE_NAME = "Reopen request";
|
||||||
require_once __DIR__ . "/../../includes/prereqs.php";
|
require_once __DIR__ . "/../../includes/prereqs.php";
|
||||||
|
|
||||||
$request = get_request($db, $_GET['rid']);
|
$request = get_request($db, $_GET['rid']);
|
||||||
|
|||||||
@@ -51,19 +51,12 @@
|
|||||||
<p style="color: gray; font-style: italic;"><?php echo("#" . sprintf("%'.05d\n", $request["id"])); ?></p>
|
<p style="color: gray; font-style: italic;"><?php echo("#" . sprintf("%'.05d\n", $request["id"])); ?></p>
|
||||||
<p class="lead text-muted"><?php echo($request['description']); ?></p>
|
<p class="lead text-muted"><?php echo($request['description']); ?></p>
|
||||||
<p>
|
<p>
|
||||||
<?php if ($_SESSION['uuid'] == $request['created_by']) { ?>
|
|
||||||
<a href='/editsub?rid=<?php echo($request["uuid"]); ?>' class='btn btn-secondary my-2'>Manage subscribers</a>
|
|
||||||
<?php if ($request['status'] == 'Closed') { ?>
|
|
||||||
<a href='/editsub?rid=<?php echo($request["uuid"]); ?>' class='btn btn-success my-2'>Reopen request</a>
|
|
||||||
<?php }} ?>
|
|
||||||
<?php if ($request['status'] != 'Closed') { ?>
|
<?php if ($request['status'] != 'Closed') { ?>
|
||||||
<a href='/update?rid=<?php echo($request["uuid"]); ?>' class='btn btn-primary my-2'>Update the request</a>
|
<a href='/update?rid=<?php echo($request["uuid"]); ?>' class='btn btn-primary my-2'>Update the request</a>
|
||||||
<a href='/upload?rid=<?php echo($request["uuid"]); ?>' class='btn btn-primary my-2'>Add attachment(s)</a>
|
<a href='/upload?rid=<?php echo($request["uuid"]); ?>' class='btn btn-primary my-2'>Add attachment(s)</a>
|
||||||
|
<?php if ($_SESSION['uuid'] == $request['created_by']) { ?>
|
||||||
|
<a href='/editsub?rid=<?php echo($request["uuid"]); ?>' class='btn btn-secondary my-2'>Manage subscribers</a>
|
||||||
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#closeModal">Close the request</button>
|
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#closeModal">Close the request</button>
|
||||||
<?php } ?>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="modal fade" id="closeModal" tabindex="-1" aria-labelledby="closeModalLabel" aria-hidden="true">
|
<div class="modal fade" id="closeModal" tabindex="-1" aria-labelledby="closeModalLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@@ -83,7 +76,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
<?php } ?>
|
||||||
|
<?php if ($_SESSION['uuid'] == $request['created_by']) { ?>
|
||||||
|
<?php if ($request['status'] == 'Closed') { ?>
|
||||||
|
<a href='/reopen?rid=<?php echo($request["uuid"]); ?>' class='btn btn-success my-2'>Reopen request</a>
|
||||||
|
<?php }} ?>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
|||||||
Reference in New Issue
Block a user