webhook management
[pharext/pharext.org] / app / views / modal / hook.phtml
1 <div class="modal fade">
2 <div class="modal-dialog">
3 <div class="modal-content">
4 <div class="modal-header">
5 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
6 <h4 class="modal-title">Complete Webhook Action</h4>
7 </div>
8 <div class="modal-body">
9 <p>You tried to <?= $action == "del" ? "remove" : "add" ?> the PHARext webhook,
10 but you had to re-authenticate.</p>
11 <p>Please complete the desired action by submitting this form.</p>
12 </div>
13 <div class="modal-footer">
14 <?php if ($action === "add") : ?>
15 <form method="post" action="<?= $baseUrl->mod("./github/repo/". $repo->full_name ."/hook/add") ?>">
16 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
17 <button type="submit" class="btn btn-primary">Enable Hook</button>
18 </form>
19 <?php elseif ($action === "del") : ?>
20 <form method="post" action="<?= $baseUrl->mod("./github/repo/". $repo->full_name ."/hook/del") ?>">
21 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
22 <button type="submit" class="btn btn-primary">Disable Hook</button>
23 </form>
24 <?php endif; ?>
25 </div>
26 </div><!-- /.modal-content -->
27 </div><!-- /.modal-dialog -->
28 </div><!-- /.modal -->