diff --git a/src/admin/common/models/position.php b/src/admin/common/models/position.php
index a2e9133..0c836ae 100644
--- a/src/admin/common/models/position.php
+++ b/src/admin/common/models/position.php
@@ -7,7 +7,7 @@ class CommonClubsModelPosition extends AbstractCommonClubsModel
{
protected function getFactory()
{
- new CommonClubsModelFactoryPosition();
+ return new CommonClubsModelFactoryPosition();
}
public function getName()
diff --git a/src/admin/views/clubs/tmpl/default.php b/src/admin/views/clubs/tmpl/default.php
index 33c30ea..0dbab60 100644
--- a/src/admin/views/clubs/tmpl/default.php
+++ b/src/admin/views/clubs/tmpl/default.php
@@ -1,7 +1,6 @@
Bezeichnung |
- Stadt |
+ Stadt |
Homepage |
- E-Mail |
- Löschen? |
- id |
+ E-Mail |
+ |
+ id |
-clubs as $club): ?>
-getId()); ?>
+objects as $club): ?>
getHomepage()); ?>
getMail()); ?>
- getName()); ?> |
+ getId(), $this->changeUrl); ?>'>getName()); ?> |
getCity()); ?> |
|
|
- |
+ getId(), $this->delUrl); ?>'>Löschen |
getId()); ?> |
-
+
diff --git a/src/admin/views/clubs/view.html.php b/src/admin/views/clubs/view.html.php
index 9124741..91f0630 100644
--- a/src/admin/views/clubs/view.html.php
+++ b/src/admin/views/clubs/view.html.php
@@ -1,22 +1,27 @@
offers = ClubsOffer::loadOffers();
- $factory = new CommonClubsModelFactoryClub();
- $this->clubs = $factory->loadElements();
-
- ToolbarHelper::title('Club-Management - Clubs');
+ ToolbarHelper::title('Club-Management - Clubs', 'cube');
parent::display($tpl);
}
+ protected function getFactory()
+ {
+ return new CommonClubsModelFactoryClub();
+ }
+
+ protected function getSingleBaseName()
+ {
+ return 'club';
+ }
+
}
diff --git a/src/admin/views/positions/tmpl/default.php b/src/admin/views/positions/tmpl/default.php
index ff8a4fa..6fbb9b3 100644
--- a/src/admin/views/positions/tmpl/default.php
+++ b/src/admin/views/positions/tmpl/default.php
@@ -1,7 +1,6 @@
Bezeichnung |
- Löschen? |
+ |
id |
-positions as $position): ?>
-getId()); ?>
+objects as $position): ?>
- getName()); ?> |
- getId()); ?>'>Del |
+ getId(), $this->changeUrl); ?>'>getName()); ?> |
+ getId(), $this->delUrl); ?>'>Löschen |
getId()); ?> |
-
+
diff --git a/src/admin/views/positions/view.html.php b/src/admin/views/positions/view.html.php
index d165d50..dd7d94c 100644
--- a/src/admin/views/positions/view.html.php
+++ b/src/admin/views/positions/view.html.php
@@ -1,20 +1,27 @@
positions = ClubsPosition::loadPositions();
-
- ToolbarHelper::title('Club-Management - Positionen');
+ ToolbarHelper::title('Club-Management - Positionen', 'users');
parent::display($tpl);
}
+ protected function getFactory()
+ {
+ return new CommonClubsModelFactoryPosition();
+ }
+
+ protected function getSingleBaseName()
+ {
+ return 'position';
+ }
+
}
diff --git a/src/admin/views/users/tmpl/default.php b/src/admin/views/users/tmpl/default.php
index fd1c66f..d03b8eb 100644
--- a/src/admin/views/users/tmpl/default.php
+++ b/src/admin/views/users/tmpl/default.php
@@ -14,22 +14,22 @@ defined('_JEXEC') or die;
Name |
Ort |
E-Mail |
- Löschen? |
+ |
id |
-users as $user): ?>
-getId()); ?>
+objects as $user): ?>
+getId(), $this->changeUrl); ?>
- getUser()); ?> |
+ getUserName()); ?> |
getName()); ?> |
getCity()); ?> |
getMail()); ?> |
- getId()); ?>'>Del |
+ getId(), $this->delUrl); ?>'>Löschen |
getId()); ?> |
-
+
diff --git a/src/admin/views/users/view.html.php b/src/admin/views/users/view.html.php
index 2b9ce88..6389d88 100644
--- a/src/admin/views/users/view.html.php
+++ b/src/admin/views/users/view.html.php
@@ -1,22 +1,27 @@
users = ClubsUser::loadUsers();
-
ToolbarHelper::title('Club-Management - Personen', 'user');
parent::display($tpl);
}
+ protected function getFactory()
+ {
+ return new CommonClubsModelFactoryUser();
+ }
+
+ protected function getSingleBaseName()
+ {
+ return 'user';
+ }
+
}