Continued working on views.

Not yet everything finished but big part of the views are present now.
No AJAX was introduced yet. This is going to be done later.
This commit is contained in:
2019-04-10 18:01:30 +02:00
parent ed87808391
commit 45ead93503
17 changed files with 612 additions and 11 deletions

View File

@@ -30,7 +30,24 @@ defined('_JEXEC') or die;
<div class='clubs_content_row'><?php echo htmlentities($this->mobile); ?></div>
</div>
<?php if(count($this->clubs) > 0): ?>
<div class='clubs_row'>
<a href="?option=com_clubs&view=userdata&id=<?php echo $this->id; ?>">Daten anpassen</a><br />
<div class='clubs_title_row'>Vereinst&auml;tigkeiten</div>
<div class='clubs_content_row'>
<ul>
<?php foreach($this->clubs as $c): ?>
<li>
<a href='?option=com_clubs&view=club&id=<?php echo $c['id']; ?>'><?php echo htmlentities($c['club']); ?> als <?php echo htmlentities($c['position']); ?></a>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
<?php endif; ?>
<?php if($this->canModify): ?>
<div class='clubs_row'>
<a href="?option=com_clubs&view=userdata&id=<?php echo $this->id; ?>">Stammdaten anpassen</a><br />
<a href="?option=com_clubs&view=userpwd&id=<?php echo $this->id; ?>">Passwort &auml;ndern</a>
</div>
</div>
<?php endif; ?>

View File

@@ -19,6 +19,11 @@ class ClubsViewUser extends HtmlView
$this->phone = "0123456";
$this->mobile = "0178 8375";
$this->clubs = array();
$this->clubs[] = array('club'=>'Clubname', 'id'=>3, 'position'=>'Präsident');
$this->canModify = false;
Factory::getDocument()->addStyleSheet(Uri::base(true) . '/components/com_clubs/css/clubs.css');
parent::display($tpl);
}