Corrected all views to the structure
This commit is contained in:
@@ -9,6 +9,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
<form method="post" action="<?php echo $this->address; ?>">
|
||||
<input type='hidden' name='id' value='<?php echo $this->object->getId(); ?>'>
|
||||
<h2>Stammdaten</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<td>Bezeichnung</td>
|
||||
@@ -66,15 +67,6 @@ defined('_JEXEC') or die;
|
||||
|
||||
|
||||
<?php if(! $this->isNew): ?>
|
||||
<tr>
|
||||
<td>Angebote</td>
|
||||
<td>
|
||||
<?php foreach($this->offers as $o): ?>
|
||||
<input type='checkbox' name='offers' value='<?php echo $o['offer']->getId(); ?>' <?php if($o['mark']) echo 'checked="checked"';?>>
|
||||
<?php echo htmlentities($o['offer']->getName()); ?><br />
|
||||
<?php endforeach; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ID</td>
|
||||
<td><?php echo $this->object->getId(); ?></td>
|
||||
@@ -82,6 +74,45 @@ defined('_JEXEC') or die;
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
|
||||
|
||||
<?php if(! $this->isNew): ?>
|
||||
<h2>Angebote</h2>
|
||||
<?php foreach($this->object->getOffers() as $oconf): ?>
|
||||
<input type='checkbox' name='offers' value='<?php echo $oconf['offer']->getId(); ?>' <?php if($oconf['valid']) echo 'checked="checked"';?>>
|
||||
<?php echo htmlentities($oconf['offer']->getName()); ?><br />
|
||||
<?php endforeach; ?>
|
||||
<h2>Posten</h2>
|
||||
<table width='100%' class='table table-stiped, table-hover'>
|
||||
<tr>
|
||||
<th width='20%'>Rolle</th>
|
||||
<th width='25%'>Name</th>
|
||||
<th width='10%'>Stadt</th>
|
||||
<th width='5%' style='text-align: center;'>Admin?</th>
|
||||
<th></th>
|
||||
<th width='5%'>ID</th>
|
||||
</tr>
|
||||
<?php foreach($this->object->getUsers() as $ua): ?>
|
||||
<tr>
|
||||
<td><?php echo htmlentities($ua->getPosition()->getName()); ?></td>
|
||||
<td><?php echo htmlentities($ua->getUser()->getName()); ?></td>
|
||||
<td><?php echo htmlentities($ua->getUser()->getCity()); ?></td>
|
||||
<td style='text-align: center;'><?php if($ua->isAdmin()) echo "<span class='icon-checkmark'></span>"; ?></td>
|
||||
<td>
|
||||
<a href='#'><span class='icon-edit'></span></a>
|
||||
<a href='#'><span class='icon-delete'></span></a>
|
||||
</td>
|
||||
<td><?php echo $ua->getId(); ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<p><a href='#'><span class='icon-new'></span> Neuen Posten einfügen</a></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<input type='submit' value='Speichern'> <br /><a href='<?php echo Route::_('index.php?option=com_clubs&view=clubs'); ?>'>Zurück zur Übersicht</a>
|
||||
</form>
|
||||
|
||||
<div style='width: 100vw; height: 100vh; position: fixed; left: 0pt; top: 0pt; z-index: 1000; border-style: solid; display: none;'><!-- Set body css 'overflow: fixed;' to avoid scolling in the backgound -->
|
||||
<div style='background-color: gray; width: 100vw; height: 100vh; position: absolute; left: 0pt; top: 0pt; z-index: 1000; opacity: 0.5;'></div>
|
||||
<div style='background-color: red; width: 70vw; height: 60vh; position: absolute; left: 15vw; top: 20vh; z-index: 1001; border-style: solid; visibility: visible; overflow: visible;'>Ein Test</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user