Fix popup action

This commit is contained in:
Dennis Eichhorn 2017-04-14 15:31:53 +02:00
parent 9543f088e3
commit ffdb9a8547

View File

@ -1,6 +1,6 @@
<template id="acc-grp-tpl">
<section id="acc-grp" class="box w-50" style="z-index: 9; position: absolute; margin: 0 auto; left: 50%; top: 50%; transform: translate(-50%, -50%);">
<header><h1><?= $this->getText('Account/Group'); ?></h1></header>
<header><h1><?= $this->getText('Account/Group', 'Admin'); ?></h1></header>
<div class="inner">
<form id="fAccGrp" method="GET" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/accgrp'); ?>">
@ -21,7 +21,13 @@
<tbody>
<tfoot>
</table>
<tr><td colspan="2"><input type="submit" value="<?= $this->getText('Search'); ?>"><input type="hidden" name="type" value="<?= \Modules\Tasks\Models\TaskType::SINGLE; ?>">
<tr><td colspan="2"><button type="button" data-action='[
{
"listener": "click", "action": [
{"type": "dom.remove", "tpl": "acc-grp", "aniOut": "fadeOut"}
]
}
]'><?= $this->getText('Close', 'Admin'); ?></button>
</table>
</form>
</div>