-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from alexplusde/i18n
Version 5.0.0-dev
- Loading branch information
Showing
51 changed files
with
8,435 additions
and
710 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
$(document).on("rex:ready", function(event, container) { | ||
// Zugriff auf die Elemente | ||
console.log('rex:ready'); | ||
|
||
let checkbox = document.querySelector('#yform-data_edit-rex_event_date-all_day input[type="checkbox"]'); | ||
if (!checkbox) return; | ||
let einlass = document.querySelector('#yform-data_edit-rex_event_date-doorTime input[type="time"]'); | ||
let beginn = document.querySelector('#yform-data_edit-rex_event_date-startTime input[type="time"]'); | ||
let ende = document.querySelector('#yform-data_edit-rex_event_date-endTime input[type="time"]'); | ||
|
||
// Event-Listener hinzufügen | ||
checkbox.addEventListener('change', function() { | ||
if (this.checked) { | ||
// Wenn die Checkbox aktiviert ist | ||
einlass.value = '00:00:00'; | ||
beginn.value = '00:00:00'; | ||
ende.value = '00:00:00'; | ||
|
||
einlass.readOnly = true; | ||
beginn.readOnly = true; | ||
ende.readOnly = true; | ||
} else { | ||
// Wenn die Checkbox deaktiviert ist | ||
einlass.readOnly = false; | ||
beginn.readOnly = false; | ||
ende.readOnly = false; | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
$(document).on("rex:ready", function(event, container) { | ||
|
||
var calendarEl = document.getElementById('fullcalendar'); | ||
|
||
var calendar = new FullCalendar.Calendar(calendarEl, { | ||
plugins: ['dayGrid', 'list', 'bootstrap'], | ||
locale: 'de', | ||
header: { center: 'dayGridMonth,timeGridWeek,listWeek' }, // buttons for switching between views | ||
|
||
events: '/?rex-api-call=fullcalendar' | ||
}); | ||
|
||
calendar.render(); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# ICS Kalenderdaten | ||
|
||
## Import von ICS-Kalendern (dev) | ||
|
||
Events kommt mit einem eigenen Cronjob zum importieren von ics-Kalendern aus dem Internet. Das Cronjob-Addon aufrufen, einen neuen Cronjob anlegen und den Instruktionen folgen. | ||
|
||
## Export eines einzelnen Termins als ics-Datei (dev) | ||
|
||
Events kommt mit einer eigenen rex_api-Schnittstelle für den Export von einzelnen Terminen. `?rex-api-call=events_ics_file&id=2` aufrufen, um eine ICS-Datei anhand des Termins mit der `id=2` zu erzeugen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# RESTful API (dev) | ||
|
||
Die [Rest-API](https://github.com/yakamara/redaxo_yform/blob/master/docs/plugins.md#restful-api-einf%C3%BChrung) ist über das REST-Plugin von YForm umgesetzt. | ||
|
||
## Einrichtung | ||
|
||
Zunächst das REST-Plugin von YForm installieren und einen Token einrichten. Den Token auf die jeweiligen Endpunkte legen: | ||
|
||
```php | ||
/v5.0/event/date | ||
/v5.0/event/category | ||
/v5.0/event/location | ||
``` | ||
|
||
## Endpunkt `date` | ||
|
||
**Auslesen:** GET `example.org/rest/v5.0/event/date/?token=###TOKEN###` | ||
|
||
**Auslesen einzelner Termin** GET `example.org/rest/v0.dev/event/date/7/?token=###TOKEN###` Termin der `id=7` | ||
|
||
## Endpunkt `category` | ||
|
||
**Auslesen:** GET `example.org/rest/v5.0/event/category/?token=###TOKEN###` | ||
|
||
**Auslesen einzelne Kategorie** GET `example.org/rest/v0.dev/event/category/7/?token=###TOKEN###` Termin der `id=7` | ||
|
||
## Endpunkt `location` | ||
|
||
**Auslesen:** GET `example.org/rest/v5.0/event/location/?token=###TOKEN###` | ||
|
||
**Auslesen einzelner Standort** GET `example.org/rest/v0.dev/event/location/7/?token=###TOKEN###` Termin der `id=7` |
Oops, something went wrong.