diff --git a/src/admin/res/club/admin-club.css b/src/admin/res/club/admin-club.css new file mode 100644 index 0000000..ecb4ce1 --- /dev/null +++ b/src/admin/res/club/admin-club.css @@ -0,0 +1,42 @@ + +#dialog-club { + width: 100vw; + height: 100vh; + position: fixed; + left: 0pt; + top: 0pt; + z-index: 1500; + /*border-style: solid;*/ +} + +#dialog-club > .dialog { + background-color: white; + width: 70vw; + height: 60vh; + position: absolute; + left: 15vw; + top: 20vh; + /*z-index: 100;*/ + border-style: solid; + /*visibility: visible;*/ + overflow: auto; +} + +#dialog-club > .background { + background-color: gray; + width: 100vw; + height: 100vh; + position: absolute; + left: 0pt; + top: 0pt; + /*z-index: 1000;*/ + opacity: 0.5; +} + +.dialog-hidden { + display: none; +} + +.form-disabled { + overflow: hidden; +} diff --git a/src/admin/res/club/club.js b/src/admin/res/club/club.js new file mode 100644 index 0000000..6faecdc --- /dev/null +++ b/src/admin/res/club/club.js @@ -0,0 +1,34 @@ + +jQuery(function($){ + + $('#new-position').click(function(ev){ + ev.preventDefault(); + + var url = $('#new-position').attr('href'); + $.get(url, function(data){ +// console.log(data); + $('#dialog-club > .dialog').html(data); + $('body').addClass('form-disabled'); + $('#dialog-club').removeClass('dialog-hidden'); + }); + + }); + + function closeDialog() { +// console.log('b'); + $('#dialog-club > .dialog').html(''); + $('body').removeClass('form-disabled'); + $('#dialog-club').addClass('dialog-hidden'); + } + + $(document).on('click', '#clubposition-abort', function(ev){ + ev.preventDefault(); +// console.log('a'); + closeDialog(); + }); + + $(document).on('click', '#clubposition-save', function(ev){ + ev.preventDefault(); + }); + +}); diff --git a/src/admin/views/club/tmpl/default.php b/src/admin/views/club/tmpl/default.php index a521c47..51f57df 100644 --- a/src/admin/views/club/tmpl/default.php +++ b/src/admin/views/club/tmpl/default.php @@ -7,7 +7,7 @@ defined('_JEXEC') or die; ?> -
+

Stammdaten

@@ -110,14 +110,14 @@ defined('_JEXEC') or die;
-

Neuen Posten einfügen

+

' id='new-position'> Neuen Posten einfügen


'>Zurück zur Übersicht
-
-
-
Ein Test
+
+
+
Ein Test
diff --git a/src/admin/views/club/view.html.php b/src/admin/views/club/view.html.php index 77934d5..82acea2 100644 --- a/src/admin/views/club/view.html.php +++ b/src/admin/views/club/view.html.php @@ -1,5 +1,6 @@ users = $userFactory->loadElements(); + JHtmlJquery::framework(); + Factory::getDocument()->addScript('components/com_clubs/res/club/club.js'); + Factory::getDocument()->addStyleSheet('components/com_clubs/res/club/admin-club.css'); + +// $this-> + parent::display($tpl); } diff --git a/src/admin/views/clubposition/view.html.php b/src/admin/views/clubposition/view.html.php new file mode 100644 index 0000000..3cc09cc --- /dev/null +++ b/src/admin/views/clubposition/view.html.php @@ -0,0 +1,37 @@ +positions = $positonFactory->loadElements(); + $this->users = $userFactory->loadElements(); + + $this->id = 'new'; + + parent::display($tpl); + + jexit(); + } + protected function getControllerName() + { + return 'position'; + } + + protected function getFactory() + { + return new CommonClubsModelFactoryPosition(); + } + +}