summaryrefslogtreecommitdiffstats
path: root/app/view/datamods.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-08 07:55:03 -0400
committerMalf Furious <m@lfurio.us>2018-09-08 07:55:03 -0400
commit5aa9a93c6e399d2a1d91c408502b9b5a191f61c5 (patch)
tree3dd7ec34f9eb254a6cf70b0bd31e824267d5f6cc /app/view/datamods.php
parent0a77d66a62006fce5e3768eb115baa48b16cb719 (diff)
downloadscrott-5aa9a93c6e399d2a1d91c408502b9b5a191f61c5.tar.gz
scrott-5aa9a93c6e399d2a1d91c408502b9b5a191f61c5.zip
Add owner dropdown to 'New Group' modal
Diffstat (limited to 'app/view/datamods.php')
-rw-r--r--app/view/datamods.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/view/datamods.php b/app/view/datamods.php
index 62707c9..e27404c 100644
--- a/app/view/datamods.php
+++ b/app/view/datamods.php
@@ -16,6 +16,7 @@ namespace datamods;
require_once "model/datamods.php";
require_once "view/formctrl.php";
+require_once "class/user.class.php";
?>
<?php function newGroup() : void { ?>
@@ -36,6 +37,19 @@ require_once "view/formctrl.php";
<div class="modal-body">
<form method="post" action="<?=ap()?>">
<?=\formctrl\formname( "dm-group-add" )?>
+
+ <div class="form-group">
+ <label>Owner</label>
+
+ <select class="form-control selectpicker">
+ <optgroup label="Users">
+ <option data-icon="glyphicon-user">
+ <?=\user::getCurrent()->getDisplayName()?>
+ </option>
+ </optgroup>
+ </select>
+ </div>
+
<?=\formctrl\text( "Group Name", "name" )?>
<button type="submit" class="btn btn-success pull-right">