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:
43
src/site/views/clubplace/tmpl/default.php
Normal file
43
src/site/views/clubplace/tmpl/default.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
// No direct access.
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<h1>Räumlichkeit anpassen</h1>
|
||||
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Name des Vereins</div>
|
||||
<div class='clubs_content_row'><?php echo htmlentities($this->clubname); ?></div>
|
||||
</div>
|
||||
|
||||
<form method="post" action='?option=com_clubs&task=<?php echo $this->taskName; ?>'>
|
||||
<input type="hidden" name='placeid' value='<?php echo $this->place['placeid']; ?>'>
|
||||
<input type="hidden" name='clubid' value='<?php echo $this->clubid; ?>'>
|
||||
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Name</div>
|
||||
<div class='clubs_content_row'><input type="text" name='alias' value='<?php echo htmlentities($this->place['name']); ?>' class='clubs'>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Straße</div>
|
||||
<div class='clubs_content_row'><input type='text' name='street' value='<?php echo htmlentities($this->place['street']); ?>' class='clubs'></div>
|
||||
</div>
|
||||
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>PLZ</div>
|
||||
<div class='clubs_content_row'><input type='text' name='zip' value='<?php echo htmlentities($this->place['plz'] ); ?>' class='clubs'></div>
|
||||
</div>
|
||||
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Ort</div>
|
||||
<div class='clubs_content_row'><input type='text' name='city' value='<?php echo htmlentities($this->place['city']); ?>' class='clubs'></div>
|
||||
</div>
|
||||
|
||||
<input type="submit" value='Speichern' name='submit'>
|
||||
<input type="reset" value='Werte zurücksetzen'>
|
||||
<a href='?option=com_clubs&view=clubplaces&clubid=<?php echo $this->clubid; ?>'>Abbrechen</a>
|
||||
</form>
|
||||
28
src/site/views/clubplace/view.html.php
Normal file
28
src/site/views/clubplace/view.html.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\MVC\View\HtmlView;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
// No direct access.
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
class ClubsViewClubPlace extends HtmlView
|
||||
{
|
||||
|
||||
public function display(string $tpl = null)
|
||||
{
|
||||
// FIXME Insert code from DB
|
||||
$this->clubid = 43;
|
||||
$this->clubname = "Testclub";
|
||||
|
||||
$this->place = array('name'=>'Schule', 'street'=>'Straße', 'city'=>'SB', 'plz'=>'12345', 'placeid'=>12);
|
||||
|
||||
$this->taskName = 'club.addplace';
|
||||
|
||||
Factory::getDocument()->addStyleSheet(Uri::base(true) . "components/com_clubs/css/clubs.css");
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user