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:
@@ -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ä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 ändern</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user