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

@@ -0,0 +1,43 @@
<?php
// No direct access.
defined('_JEXEC') or die;
?>
<h1>R&auml;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&szlig;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&uuml;cksetzen'>
<a href='?option=com_clubs&view=clubplaces&clubid=<?php echo $this->clubid; ?>'>Abbrechen</a>
</form>

View 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);
}
}