Test form feedback

This commit is contained in:
Dennis Eichhorn 2018-02-14 18:43:12 +01:00
parent 6fcfd0102a
commit 980a8f9ad6

View File

@ -21,11 +21,11 @@ echo $this->getData('nav')->render(); ?>
<section class="box wf-100">
<header><h1><?= $this->getHtml('Group'); ?></h1></header>
<div class="inner">
<form id="group-create" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="<?= $this->printHtml(\phpOMS\Message\Http\RequestMethod::PUT); ?>">
<form id="group-create" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="put" data-msg='{"title": "Some Title", "message": "My Message"}'>
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iStatus"><?= $this->getHtml('Status'); ?></label>
<tr><td colspan="2">
<tr><td><label for="iStatus"><?= $this->getHtml('Status'); ?></label>
<tr><td>
<select id="iStatus" name="status">
<option value="<?= $this->printHtml(\phpOMS\Account\GroupStatus::ACTIVE); ?>" selected><?= $this->getHtml('Active'); ?>
<option value="<?= $this->printHtml(\phpOMS\Account\GroupStatus::INACTIVE); ?>"><?= $this->getHtml('Inactive'); ?>
@ -34,7 +34,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td><input id="iGname" name="name" type="text" placeholder="&#xf0c0; Guest" required>
<tr><td><label for="iGroupDescription"><?= $this->getHtml('Description'); ?></label>
<tr><td><textarea id="iGroupDescription" name="description" placeholder="&#xf040;"></textarea>
<tr><td><input type="submit" value="<?= $this->getHtml('Create', 0, 0); ?>">
<tr><td><input type="submit" id="iCreate" name="create" value="<?= $this->getHtml('Create', 0, 0); ?>">
</table>
</form>
</div>
@ -49,7 +49,7 @@ echo $this->getData('nav')->render(); ?>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iGParentName"><?= $this->getHtml('Name'); ?></label>
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iGParentName" name="parentname" type="text" placeholder="&#xf0c0; Guest" required></span>
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iGParentName" name="parentname" type="text" placeholder="&#xf0c0; Guest"></span>
<tr><td><input type="submit" value="<?= $this->getHtml('Add', 0, 0); ?>">
</table>
</form>
@ -65,7 +65,7 @@ echo $this->getData('nav')->render(); ?>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iPermissionName"><?= $this->getHtml('Name'); ?></label>
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iPermissionName" name="permissionname" type="text" placeholder="&#xf084; Admin" required></span>
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iPermissionName" name="permissionname" type="text" placeholder="&#xf084; Admin"></span>
<tr><td><input type="submit" value="<?= $this->getHtml('Add', 0, 0); ?>">
</table>
</form>