diff options
Diffstat (limited to '')
-rw-r--r-- | app/view/datamods.php | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/app/view/datamods.php b/app/view/datamods.php index e27404c..e700043 100644 --- a/app/view/datamods.php +++ b/app/view/datamods.php @@ -64,3 +64,58 @@ require_once "class/user.class.php"; </div> <?php } ?> +<?php function newPad() : void { ?> + + <div id="newPadModal" class="modal fade" tabindex="-1" role="dialog"> + <div class="modal-dialog modal-sm" role="document"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal"> + <span aria-hidden="true">×</span> + </button> + + <h4 class="modal-title"> + <span class="glyphicon glyphicon-edit"></span> Create new Pad + </h4> + </div> + + <div class="modal-body"> + <form method="post" action="<?=ap()?>"> + <?=\formctrl\formname( "dm-pad-add" )?> + + <div class="form-group"> + <label>Owner</label> + + <select name="input[owner]" class="form-control selectpicker"> + <optgroup label="Users"> + <option data-icon="glyphicon-user" value="<?=\user::getCurrent()->guid?>"> + <?=\user::getCurrent()->getDisplayName()?> + </option> + </optgroup> + + <optgroup label="Groups"> + <?php foreach (\user::getCurrent()->getGroups_ordByOwnByName() as $g) { ?> + <?php if (\user::getCurrent()->canCreateSub($g)) { ?> + <option data-icon="glyphicon-th" value="<?=$g->guid?>"> + <?=$g->getDisplayName()?> + </option> + <?php } ?> + <?php } ?> + </optgroup> + </select> + </div> + + <?=\formctrl\text( "Pad Name", "name" )?> + + <button type="submit" class="btn btn-success pull-right"> + <span class="glyphicon glyphicon-plus"></span> Add + </button> + + <p> </p> + </form> + </div> + </div> + </div> + </div> + +<?php } ?> |