From: felix Date: Tue, 7 Aug 2007 18:17:04 +0000 (+0000) Subject: vielleicht läufts jetzt X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=refs%2Fremotes%2Fgit-svn;p=bytewurf.git vielleicht läufts jetzt git-svn-id: https://www.internetallee.de/svn/bytewurf@54 a944a559-bf0e-0410-8ddc-85264b264b6c --- diff --git a/projekte/cinemas/.classpath b/projekte/cinemas/.classpath index 6c0e594..39cd3d1 100644 --- a/projekte/cinemas/.classpath +++ b/projekte/cinemas/.classpath @@ -1,129 +1,71 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - diff --git a/projekte/cinemas/application.properties b/projekte/cinemas/application.properties index 4148058..bb3ce80 100644 --- a/projekte/cinemas/application.properties +++ b/projekte/cinemas/application.properties @@ -1,4 +1,5 @@ -#Mon Aug 06 21:29:51 CEST 2007 +#Do not edit app.grails.* properties, they may change automatically. DO NOT put application configuration in here, it is not the right place! +#Tue Aug 07 19:32:43 CEST 2007 app.version=0.1 app.grails.version=0.5.6 app.name=cinemas diff --git a/projekte/cinemas/grails-app/conf/ApplicationBootStrap.groovy b/projekte/cinemas/grails-app/conf/ApplicationBootStrap.groovy index c4efc1c..0d928ee 100644 --- a/projekte/cinemas/grails-app/conf/ApplicationBootStrap.groovy +++ b/projekte/cinemas/grails-app/conf/ApplicationBootStrap.groovy @@ -1,10 +1,10 @@ class ApplicationBootStrap { def init = { servletContext -> - cD = new Country(shortName: 'D', name: 'Deutschland').save() - aNFB = new Address(street: 'Fried..', zipCode: '53xxx', city: 'Bonn', country: cD).save() - gBonn = new CineGroup(name: 'Bonn').save() - cNFB = new Cinema(name: 'Neue Filmbühne', address: aNFB, cineGroup: gBonn).save() + def cD = new Country(shortName: 'D', name: 'Deutschland').save() + def aNFB = new Address(street: 'Fried..', zipCode: '53xxx', city: 'Bonn', country: cD).save() + def gBonn = new CineGroup(name: 'Bonn').save() + def cNFB = new Cinema(name: 'Neue Filmbühne', address: aNFB, cineGroup: gBonn).save() } def destroy = { } diff --git a/projekte/cinemas/grails-app/conf/ApplicationDataSource.groovy b/projekte/cinemas/grails-app/conf/ApplicationDataSource.groovy new file mode 100644 index 0000000..f474eec --- /dev/null +++ b/projekte/cinemas/grails-app/conf/ApplicationDataSource.groovy @@ -0,0 +1,8 @@ +class DevelopmentDataSource { + boolean pooling = true + String dbCreate = "create-drop" // one of 'create', 'create-drop','update' + String url = "jdbc:hsqldb:mem:devDB" + String driverClassName = "org.hsqldb.jdbcDriver" + String username = "sa" + String password = "" +} diff --git a/projekte/cinemas/grails-app/controllers/AddressController.groovy b/projekte/cinemas/grails-app/controllers/AddressController.groovy index 9eea3b0..98d8c89 100644 --- a/projekte/cinemas/grails-app/controllers/AddressController.groovy +++ b/projekte/cinemas/grails-app/controllers/AddressController.groovy @@ -1,4 +1,79 @@ + class AddressController { - def scaffold = Address -} + def index = { redirect(action:list,params:params) } + // the delete, save and update actions only + // accept POST requests + def allowedMethods = [delete:'POST', + save:'POST', + update:'POST'] + + def list = { + if(!params.max)params.max = 10 + [ addressList: Address.list( params ) ] + } + + def show = { + [ address : Address.get( params.id ) ] + } + + def delete = { + def address = Address.get( params.id ) + if(address) { + address.delete() + flash.message = "Address ${params.id} deleted." + redirect(action:list) + } + else { + flash.message = "Address not found with id ${params.id}" + redirect(action:list) + } + } + + def edit = { + def address = Address.get( params.id ) + + if(!address) { + flash.message = "Address not found with id ${params.id}" + redirect(action:list) + } + else { + return [ address : address ] + } + } + + def update = { + def address = Address.get( params.id ) + if(address) { + address.properties = params + if(address.save()) { + redirect(action:show,id:address.id) + } + else { + render(view:'edit',model:[address:address]) + } + } + else { + flash.message = "Address not found with id ${params.id}" + redirect(action:edit,id:params.id) + } + } + + def create = { + def address = new Address() + address.properties = params + return ['address':address] + } + + def save = { + def address = new Address() + address.properties = params + if(address.save()) { + redirect(action:show,id:address.id) + } + else { + render(view:'create',model:[address:address]) + } + } + +} \ No newline at end of file diff --git a/projekte/cinemas/grails-app/controllers/AnnouncementController.groovy b/projekte/cinemas/grails-app/controllers/AnnouncementController.groovy index 30e2163..64ad6b0 100644 --- a/projekte/cinemas/grails-app/controllers/AnnouncementController.groovy +++ b/projekte/cinemas/grails-app/controllers/AnnouncementController.groovy @@ -1,4 +1,79 @@ + class AnnouncementController { - def scaffold = Announcement -} + def index = { redirect(action:list,params:params) } + // the delete, save and update actions only + // accept POST requests + def allowedMethods = [delete:'POST', + save:'POST', + update:'POST'] + + def list = { + if(!params.max)params.max = 10 + [ announcementList: Announcement.list( params ) ] + } + + def show = { + [ announcement : Announcement.get( params.id ) ] + } + + def delete = { + def announcement = Announcement.get( params.id ) + if(announcement) { + announcement.delete() + flash.message = "Announcement ${params.id} deleted." + redirect(action:list) + } + else { + flash.message = "Announcement not found with id ${params.id}" + redirect(action:list) + } + } + + def edit = { + def announcement = Announcement.get( params.id ) + + if(!announcement) { + flash.message = "Announcement not found with id ${params.id}" + redirect(action:list) + } + else { + return [ announcement : announcement ] + } + } + + def update = { + def announcement = Announcement.get( params.id ) + if(announcement) { + announcement.properties = params + if(announcement.save()) { + redirect(action:show,id:announcement.id) + } + else { + render(view:'edit',model:[announcement:announcement]) + } + } + else { + flash.message = "Announcement not found with id ${params.id}" + redirect(action:edit,id:params.id) + } + } + + def create = { + def announcement = new Announcement() + announcement.properties = params + return ['announcement':announcement] + } + + def save = { + def announcement = new Announcement() + announcement.properties = params + if(announcement.save()) { + redirect(action:show,id:announcement.id) + } + else { + render(view:'create',model:[announcement:announcement]) + } + } + +} \ No newline at end of file diff --git a/projekte/cinemas/grails-app/controllers/CineGroupController.groovy b/projekte/cinemas/grails-app/controllers/CineGroupController.groovy index 401407a..da05dea 100644 --- a/projekte/cinemas/grails-app/controllers/CineGroupController.groovy +++ b/projekte/cinemas/grails-app/controllers/CineGroupController.groovy @@ -1,4 +1,79 @@ + class CineGroupController { - def scaffold = CineGroup -} + def index = { redirect(action:list,params:params) } + // the delete, save and update actions only + // accept POST requests + def allowedMethods = [delete:'POST', + save:'POST', + update:'POST'] + + def list = { + if(!params.max)params.max = 10 + [ cineGroupList: CineGroup.list( params ) ] + } + + def show = { + [ cineGroup : CineGroup.get( params.id ) ] + } + + def delete = { + def cineGroup = CineGroup.get( params.id ) + if(cineGroup) { + cineGroup.delete() + flash.message = "CineGroup ${params.id} deleted." + redirect(action:list) + } + else { + flash.message = "CineGroup not found with id ${params.id}" + redirect(action:list) + } + } + + def edit = { + def cineGroup = CineGroup.get( params.id ) + + if(!cineGroup) { + flash.message = "CineGroup not found with id ${params.id}" + redirect(action:list) + } + else { + return [ cineGroup : cineGroup ] + } + } + + def update = { + def cineGroup = CineGroup.get( params.id ) + if(cineGroup) { + cineGroup.properties = params + if(cineGroup.save()) { + redirect(action:show,id:cineGroup.id) + } + else { + render(view:'edit',model:[cineGroup:cineGroup]) + } + } + else { + flash.message = "CineGroup not found with id ${params.id}" + redirect(action:edit,id:params.id) + } + } + + def create = { + def cineGroup = new CineGroup() + cineGroup.properties = params + return ['cineGroup':cineGroup] + } + + def save = { + def cineGroup = new CineGroup() + cineGroup.properties = params + if(cineGroup.save()) { + redirect(action:show,id:cineGroup.id) + } + else { + render(view:'create',model:[cineGroup:cineGroup]) + } + } + +} \ No newline at end of file diff --git a/projekte/cinemas/grails-app/controllers/CinemaController.groovy b/projekte/cinemas/grails-app/controllers/CinemaController.groovy index f9662e0..aafe789 100644 --- a/projekte/cinemas/grails-app/controllers/CinemaController.groovy +++ b/projekte/cinemas/grails-app/controllers/CinemaController.groovy @@ -1,4 +1,79 @@ + class CinemaController { - def scaffold = Cinema -} + def index = { redirect(action:list,params:params) } + // the delete, save and update actions only + // accept POST requests + def allowedMethods = [delete:'POST', + save:'POST', + update:'POST'] + + def list = { + if(!params.max)params.max = 10 + [ cinemaList: Cinema.list( params ) ] + } + + def show = { + [ cinema : Cinema.get( params.id ) ] + } + + def delete = { + def cinema = Cinema.get( params.id ) + if(cinema) { + cinema.delete() + flash.message = "Cinema ${params.id} deleted." + redirect(action:list) + } + else { + flash.message = "Cinema not found with id ${params.id}" + redirect(action:list) + } + } + + def edit = { + def cinema = Cinema.get( params.id ) + + if(!cinema) { + flash.message = "Cinema not found with id ${params.id}" + redirect(action:list) + } + else { + return [ cinema : cinema ] + } + } + + def update = { + def cinema = Cinema.get( params.id ) + if(cinema) { + cinema.properties = params + if(cinema.save()) { + redirect(action:show,id:cinema.id) + } + else { + render(view:'edit',model:[cinema:cinema]) + } + } + else { + flash.message = "Cinema not found with id ${params.id}" + redirect(action:edit,id:params.id) + } + } + + def create = { + def cinema = new Cinema() + cinema.properties = params + return ['cinema':cinema] + } + + def save = { + def cinema = new Cinema() + cinema.properties = params + if(cinema.save()) { + redirect(action:show,id:cinema.id) + } + else { + render(view:'create',model:[cinema:cinema]) + } + } + +} \ No newline at end of file diff --git a/projekte/cinemas/grails-app/controllers/CountryController.groovy b/projekte/cinemas/grails-app/controllers/CountryController.groovy index 74406e3..02f9da7 100644 --- a/projekte/cinemas/grails-app/controllers/CountryController.groovy +++ b/projekte/cinemas/grails-app/controllers/CountryController.groovy @@ -1,4 +1,79 @@ + class CountryController { - def scaffold = Country -} + def index = { redirect(action:list,params:params) } + // the delete, save and update actions only + // accept POST requests + def allowedMethods = [delete:'POST', + save:'POST', + update:'POST'] + + def list = { + if(!params.max)params.max = 10 + [ countryList: Country.list( params ) ] + } + + def show = { + [ country : Country.get( params.id ) ] + } + + def delete = { + def country = Country.get( params.id ) + if(country) { + country.delete() + flash.message = "Country ${params.id} deleted." + redirect(action:list) + } + else { + flash.message = "Country not found with id ${params.id}" + redirect(action:list) + } + } + + def edit = { + def country = Country.get( params.id ) + + if(!country) { + flash.message = "Country not found with id ${params.id}" + redirect(action:list) + } + else { + return [ country : country ] + } + } + + def update = { + def country = Country.get( params.id ) + if(country) { + country.properties = params + if(country.save()) { + redirect(action:show,id:country.id) + } + else { + render(view:'edit',model:[country:country]) + } + } + else { + flash.message = "Country not found with id ${params.id}" + redirect(action:edit,id:params.id) + } + } + + def create = { + def country = new Country() + country.properties = params + return ['country':country] + } + + def save = { + def country = new Country() + country.properties = params + if(country.save()) { + redirect(action:show,id:country.id) + } + else { + render(view:'create',model:[country:country]) + } + } + +} \ No newline at end of file diff --git a/projekte/cinemas/grails-app/controllers/DirectorController.groovy b/projekte/cinemas/grails-app/controllers/DirectorController.groovy index 51a970c..3798cfd 100644 --- a/projekte/cinemas/grails-app/controllers/DirectorController.groovy +++ b/projekte/cinemas/grails-app/controllers/DirectorController.groovy @@ -1,4 +1,79 @@ + class DirectorController { - def scaffold = Director -} + def index = { redirect(action:list,params:params) } + // the delete, save and update actions only + // accept POST requests + def allowedMethods = [delete:'POST', + save:'POST', + update:'POST'] + + def list = { + if(!params.max)params.max = 10 + [ directorList: Director.list( params ) ] + } + + def show = { + [ director : Director.get( params.id ) ] + } + + def delete = { + def director = Director.get( params.id ) + if(director) { + director.delete() + flash.message = "Director ${params.id} deleted." + redirect(action:list) + } + else { + flash.message = "Director not found with id ${params.id}" + redirect(action:list) + } + } + + def edit = { + def director = Director.get( params.id ) + + if(!director) { + flash.message = "Director not found with id ${params.id}" + redirect(action:list) + } + else { + return [ director : director ] + } + } + + def update = { + def director = Director.get( params.id ) + if(director) { + director.properties = params + if(director.save()) { + redirect(action:show,id:director.id) + } + else { + render(view:'edit',model:[director:director]) + } + } + else { + flash.message = "Director not found with id ${params.id}" + redirect(action:edit,id:params.id) + } + } + + def create = { + def director = new Director() + director.properties = params + return ['director':director] + } + + def save = { + def director = new Director() + director.properties = params + if(director.save()) { + redirect(action:show,id:director.id) + } + else { + render(view:'create',model:[director:director]) + } + } + +} \ No newline at end of file diff --git a/projekte/cinemas/grails-app/controllers/EventController.groovy b/projekte/cinemas/grails-app/controllers/EventController.groovy index 3958c2d..79b61cc 100644 --- a/projekte/cinemas/grails-app/controllers/EventController.groovy +++ b/projekte/cinemas/grails-app/controllers/EventController.groovy @@ -1,4 +1,79 @@ + class EventController { - def scaffold = Event -} + def index = { redirect(action:list,params:params) } + // the delete, save and update actions only + // accept POST requests + def allowedMethods = [delete:'POST', + save:'POST', + update:'POST'] + + def list = { + if(!params.max)params.max = 10 + [ eventList: Event.list( params ) ] + } + + def show = { + [ event : Event.get( params.id ) ] + } + + def delete = { + def event = Event.get( params.id ) + if(event) { + event.delete() + flash.message = "Event ${params.id} deleted." + redirect(action:list) + } + else { + flash.message = "Event not found with id ${params.id}" + redirect(action:list) + } + } + + def edit = { + def event = Event.get( params.id ) + + if(!event) { + flash.message = "Event not found with id ${params.id}" + redirect(action:list) + } + else { + return [ event : event ] + } + } + + def update = { + def event = Event.get( params.id ) + if(event) { + event.properties = params + if(event.save()) { + redirect(action:show,id:event.id) + } + else { + render(view:'edit',model:[event:event]) + } + } + else { + flash.message = "Event not found with id ${params.id}" + redirect(action:edit,id:params.id) + } + } + + def create = { + def event = new Event() + event.properties = params + return ['event':event] + } + + def save = { + def event = new Event() + event.properties = params + if(event.save()) { + redirect(action:show,id:event.id) + } + else { + render(view:'create',model:[event:event]) + } + } + +} \ No newline at end of file diff --git a/projekte/cinemas/grails-app/controllers/HallController.groovy b/projekte/cinemas/grails-app/controllers/HallController.groovy index 85adc5f..97bf4d4 100644 --- a/projekte/cinemas/grails-app/controllers/HallController.groovy +++ b/projekte/cinemas/grails-app/controllers/HallController.groovy @@ -1,4 +1,79 @@ + class HallController { - def scaffold = Hall -} + def index = { redirect(action:list,params:params) } + // the delete, save and update actions only + // accept POST requests + def allowedMethods = [delete:'POST', + save:'POST', + update:'POST'] + + def list = { + if(!params.max)params.max = 10 + [ hallList: Hall.list( params ) ] + } + + def show = { + [ hall : Hall.get( params.id ) ] + } + + def delete = { + def hall = Hall.get( params.id ) + if(hall) { + hall.delete() + flash.message = "Hall ${params.id} deleted." + redirect(action:list) + } + else { + flash.message = "Hall not found with id ${params.id}" + redirect(action:list) + } + } + + def edit = { + def hall = Hall.get( params.id ) + + if(!hall) { + flash.message = "Hall not found with id ${params.id}" + redirect(action:list) + } + else { + return [ hall : hall ] + } + } + + def update = { + def hall = Hall.get( params.id ) + if(hall) { + hall.properties = params + if(hall.save()) { + redirect(action:show,id:hall.id) + } + else { + render(view:'edit',model:[hall:hall]) + } + } + else { + flash.message = "Hall not found with id ${params.id}" + redirect(action:edit,id:params.id) + } + } + + def create = { + def hall = new Hall() + hall.properties = params + return ['hall':hall] + } + + def save = { + def hall = new Hall() + hall.properties = params + if(hall.save()) { + redirect(action:show,id:hall.id) + } + else { + render(view:'create',model:[hall:hall]) + } + } + +} \ No newline at end of file diff --git a/projekte/cinemas/grails-app/controllers/MovieController.groovy b/projekte/cinemas/grails-app/controllers/MovieController.groovy index 0351760..8c4acbf 100644 --- a/projekte/cinemas/grails-app/controllers/MovieController.groovy +++ b/projekte/cinemas/grails-app/controllers/MovieController.groovy @@ -1,4 +1,79 @@ + class MovieController { - def scaffold = Movie -} + def index = { redirect(action:list,params:params) } + // the delete, save and update actions only + // accept POST requests + def allowedMethods = [delete:'POST', + save:'POST', + update:'POST'] + + def list = { + if(!params.max)params.max = 10 + [ movieList: Movie.list( params ) ] + } + + def show = { + [ movie : Movie.get( params.id ) ] + } + + def delete = { + def movie = Movie.get( params.id ) + if(movie) { + movie.delete() + flash.message = "Movie ${params.id} deleted." + redirect(action:list) + } + else { + flash.message = "Movie not found with id ${params.id}" + redirect(action:list) + } + } + + def edit = { + def movie = Movie.get( params.id ) + + if(!movie) { + flash.message = "Movie not found with id ${params.id}" + redirect(action:list) + } + else { + return [ movie : movie ] + } + } + + def update = { + def movie = Movie.get( params.id ) + if(movie) { + movie.properties = params + if(movie.save()) { + redirect(action:show,id:movie.id) + } + else { + render(view:'edit',model:[movie:movie]) + } + } + else { + flash.message = "Movie not found with id ${params.id}" + redirect(action:edit,id:params.id) + } + } + + def create = { + def movie = new Movie() + movie.properties = params + return ['movie':movie] + } + + def save = { + def movie = new Movie() + movie.properties = params + if(movie.save()) { + redirect(action:show,id:movie.id) + } + else { + render(view:'create',model:[movie:movie]) + } + } + +} \ No newline at end of file diff --git a/projekte/cinemas/grails-app/controllers/MovieDirectorController.groovy b/projekte/cinemas/grails-app/controllers/MovieDirectorController.groovy new file mode 100644 index 0000000..f952dc8 --- /dev/null +++ b/projekte/cinemas/grails-app/controllers/MovieDirectorController.groovy @@ -0,0 +1,79 @@ + +class MovieDirectorController { + def index = { redirect(action:list,params:params) } + + // the delete, save and update actions only + // accept POST requests + def allowedMethods = [delete:'POST', + save:'POST', + update:'POST'] + + def list = { + if(!params.max)params.max = 10 + [ movieDirectorList: MovieDirector.list( params ) ] + } + + def show = { + [ movieDirector : MovieDirector.get( params.id ) ] + } + + def delete = { + def movieDirector = MovieDirector.get( params.id ) + if(movieDirector) { + movieDirector.delete() + flash.message = "MovieDirector ${params.id} deleted." + redirect(action:list) + } + else { + flash.message = "MovieDirector not found with id ${params.id}" + redirect(action:list) + } + } + + def edit = { + def movieDirector = MovieDirector.get( params.id ) + + if(!movieDirector) { + flash.message = "MovieDirector not found with id ${params.id}" + redirect(action:list) + } + else { + return [ movieDirector : movieDirector ] + } + } + + def update = { + def movieDirector = MovieDirector.get( params.id ) + if(movieDirector) { + movieDirector.properties = params + if(movieDirector.save()) { + redirect(action:show,id:movieDirector.id) + } + else { + render(view:'edit',model:[movieDirector:movieDirector]) + } + } + else { + flash.message = "MovieDirector not found with id ${params.id}" + redirect(action:edit,id:params.id) + } + } + + def create = { + def movieDirector = new MovieDirector() + movieDirector.properties = params + return ['movieDirector':movieDirector] + } + + def save = { + def movieDirector = new MovieDirector() + movieDirector.properties = params + if(movieDirector.save()) { + redirect(action:show,id:movieDirector.id) + } + else { + render(view:'create',model:[movieDirector:movieDirector]) + } + } + +} \ No newline at end of file diff --git a/projekte/cinemas/grails-app/controllers/PersonController.groovy b/projekte/cinemas/grails-app/controllers/PersonController.groovy index 9279b9b..5973d06 100644 --- a/projekte/cinemas/grails-app/controllers/PersonController.groovy +++ b/projekte/cinemas/grails-app/controllers/PersonController.groovy @@ -1,4 +1,79 @@ + class PersonController { - def scaffold = Person -} + def index = { redirect(action:list,params:params) } + // the delete, save and update actions only + // accept POST requests + def allowedMethods = [delete:'POST', + save:'POST', + update:'POST'] + + def list = { + if(!params.max)params.max = 10 + [ personList: Person.list( params ) ] + } + + def show = { + [ person : Person.get( params.id ) ] + } + + def delete = { + def person = Person.get( params.id ) + if(person) { + person.delete() + flash.message = "Person ${params.id} deleted." + redirect(action:list) + } + else { + flash.message = "Person not found with id ${params.id}" + redirect(action:list) + } + } + + def edit = { + def person = Person.get( params.id ) + + if(!person) { + flash.message = "Person not found with id ${params.id}" + redirect(action:list) + } + else { + return [ person : person ] + } + } + + def update = { + def person = Person.get( params.id ) + if(person) { + person.properties = params + if(person.save()) { + redirect(action:show,id:person.id) + } + else { + render(view:'edit',model:[person:person]) + } + } + else { + flash.message = "Person not found with id ${params.id}" + redirect(action:edit,id:params.id) + } + } + + def create = { + def person = new Person() + person.properties = params + return ['person':person] + } + + def save = { + def person = new Person() + person.properties = params + if(person.save()) { + redirect(action:show,id:person.id) + } + else { + render(view:'create',model:[person:person]) + } + } + +} \ No newline at end of file diff --git a/projekte/cinemas/grails-app/controllers/ScreeningController.groovy b/projekte/cinemas/grails-app/controllers/ScreeningController.groovy index 97b7af6..549d3db 100644 --- a/projekte/cinemas/grails-app/controllers/ScreeningController.groovy +++ b/projekte/cinemas/grails-app/controllers/ScreeningController.groovy @@ -1,4 +1,79 @@ + class ScreeningController { - def scaffold = Screening -} + def index = { redirect(action:list,params:params) } + // the delete, save and update actions only + // accept POST requests + def allowedMethods = [delete:'POST', + save:'POST', + update:'POST'] + + def list = { + if(!params.max)params.max = 10 + [ screeningList: Screening.list( params ) ] + } + + def show = { + [ screening : Screening.get( params.id ) ] + } + + def delete = { + def screening = Screening.get( params.id ) + if(screening) { + screening.delete() + flash.message = "Screening ${params.id} deleted." + redirect(action:list) + } + else { + flash.message = "Screening not found with id ${params.id}" + redirect(action:list) + } + } + + def edit = { + def screening = Screening.get( params.id ) + + if(!screening) { + flash.message = "Screening not found with id ${params.id}" + redirect(action:list) + } + else { + return [ screening : screening ] + } + } + + def update = { + def screening = Screening.get( params.id ) + if(screening) { + screening.properties = params + if(screening.save()) { + redirect(action:show,id:screening.id) + } + else { + render(view:'edit',model:[screening:screening]) + } + } + else { + flash.message = "Screening not found with id ${params.id}" + redirect(action:edit,id:params.id) + } + } + + def create = { + def screening = new Screening() + screening.properties = params + return ['screening':screening] + } + + def save = { + def screening = new Screening() + screening.properties = params + if(screening.save()) { + redirect(action:show,id:screening.id) + } + else { + render(view:'create',model:[screening:screening]) + } + } + +} \ No newline at end of file diff --git a/projekte/cinemas/grails-app/controllers/TagController.groovy b/projekte/cinemas/grails-app/controllers/TagController.groovy index 1b21c8f..8c0a303 100644 --- a/projekte/cinemas/grails-app/controllers/TagController.groovy +++ b/projekte/cinemas/grails-app/controllers/TagController.groovy @@ -1,4 +1,79 @@ + class TagController { - def scaffold = Tag -} + def index = { redirect(action:list,params:params) } + // the delete, save and update actions only + // accept POST requests + def allowedMethods = [delete:'POST', + save:'POST', + update:'POST'] + + def list = { + if(!params.max)params.max = 10 + [ tagList: Tag.list( params ) ] + } + + def show = { + [ tag : Tag.get( params.id ) ] + } + + def delete = { + def tag = Tag.get( params.id ) + if(tag) { + tag.delete() + flash.message = "Tag ${params.id} deleted." + redirect(action:list) + } + else { + flash.message = "Tag not found with id ${params.id}" + redirect(action:list) + } + } + + def edit = { + def tag = Tag.get( params.id ) + + if(!tag) { + flash.message = "Tag not found with id ${params.id}" + redirect(action:list) + } + else { + return [ tag : tag ] + } + } + + def update = { + def tag = Tag.get( params.id ) + if(tag) { + tag.properties = params + if(tag.save()) { + redirect(action:show,id:tag.id) + } + else { + render(view:'edit',model:[tag:tag]) + } + } + else { + flash.message = "Tag not found with id ${params.id}" + redirect(action:edit,id:params.id) + } + } + + def create = { + def tag = new Tag() + tag.properties = params + return ['tag':tag] + } + + def save = { + def tag = new Tag() + tag.properties = params + if(tag.save()) { + redirect(action:show,id:tag.id) + } + else { + render(view:'create',model:[tag:tag]) + } + } + +} \ No newline at end of file diff --git a/projekte/cinemas/grails-app/domain/Address.groovy b/projekte/cinemas/grails-app/domain/Address.groovy index 1ab9a48..aceaacf 100644 --- a/projekte/cinemas/grails-app/domain/Address.groovy +++ b/projekte/cinemas/grails-app/domain/Address.groovy @@ -2,9 +2,10 @@ class Address { String street String zipCode String city - String email = "" - String phone = "" - String facsimile = "" + String email + String phone + String facsimile + Country country static belongsTo = [ Cinema ] diff --git a/projekte/cinemas/grails-app/domain/Announcement.groovy b/projekte/cinemas/grails-app/domain/Announcement.groovy index 7f7d76a..7e7aea3 100644 --- a/projekte/cinemas/grails-app/domain/Announcement.groovy +++ b/projekte/cinemas/grails-app/domain/Announcement.groovy @@ -1,8 +1,9 @@ class Announcement { - Movie movie Date start String description String omu + + Movie movie static belongsTo = [ Hall] diff --git a/projekte/cinemas/grails-app/domain/CineGroup.groovy b/projekte/cinemas/grails-app/domain/CineGroup.groovy index 9cf3ae8..f0db555 100644 --- a/projekte/cinemas/grails-app/domain/CineGroup.groovy +++ b/projekte/cinemas/grails-app/domain/CineGroup.groovy @@ -1,5 +1,6 @@ class CineGroup { String name + static hasMany = [ cinemas: Cinema ] String toString() { "${name}" } diff --git a/projekte/cinemas/grails-app/domain/Cinema.groovy b/projekte/cinemas/grails-app/domain/Cinema.groovy index e47016e..78a584a 100644 --- a/projekte/cinemas/grails-app/domain/Cinema.groovy +++ b/projekte/cinemas/grails-app/domain/Cinema.groovy @@ -1,8 +1,10 @@ class Cinema { String shortName String name + static belongsTo = [CineGroup] - static hasMany = [halls: Halls] + static hasMany = [halls: Hall] + Address address String toString() { "${name}" } diff --git a/projekte/cinemas/grails-app/domain/Country.groovy b/projekte/cinemas/grails-app/domain/Country.groovy index 573803e..ef25d9d 100644 --- a/projekte/cinemas/grails-app/domain/Country.groovy +++ b/projekte/cinemas/grails-app/domain/Country.groovy @@ -1,6 +1,7 @@ class Country { String shortName String name + static belongsTo = [ Address, Movie ] String toString() { "[${shortName}] ${name}" } diff --git a/projekte/cinemas/grails-app/domain/Director.groovy b/projekte/cinemas/grails-app/domain/Director.groovy index fe4a63e..8ee2a27 100644 --- a/projekte/cinemas/grails-app/domain/Director.groovy +++ b/projekte/cinemas/grails-app/domain/Director.groovy @@ -1,7 +1,7 @@ class Director { String name - static belongsTo = [ movies: Movie ] + static hasMany = [ movies: MovieDirector ] String toString() { "${name}" } } diff --git a/projekte/cinemas/grails-app/domain/Event.groovy b/projekte/cinemas/grails-app/domain/Event.groovy index aef6a8b..31a27e0 100644 --- a/projekte/cinemas/grails-app/domain/Event.groovy +++ b/projekte/cinemas/grails-app/domain/Event.groovy @@ -2,6 +2,7 @@ class Event { String name Date start String content + static belongsTo = [Hall] String toString() { "[${hall.name}] ${name}" } diff --git a/projekte/cinemas/grails-app/domain/Hall.groovy b/projekte/cinemas/grails-app/domain/Hall.groovy index d44d389..4659bd9 100644 --- a/projekte/cinemas/grails-app/domain/Hall.groovy +++ b/projekte/cinemas/grails-app/domain/Hall.groovy @@ -1,7 +1,8 @@ class Hall { String name - static belongsTo = [Cinema] - static hasMany = [ events: Events, announcements: Announcement, screenings: Screening] + + static belongsTo = [ Cinema ] + static hasMany = [ events: Event, announcements: Announcement, screenings: Screening ] String toString() { "${cinema.name}: ${name}" } } diff --git a/projekte/cinemas/grails-app/domain/Movie.groovy b/projekte/cinemas/grails-app/domain/Movie.groovy index cdd52f1..6306157 100644 --- a/projekte/cinemas/grails-app/domain/Movie.groovy +++ b/projekte/cinemas/grails-app/domain/Movie.groovy @@ -3,10 +3,10 @@ class Movie { String origTitle String teaser String description - Integer year - Integer fsk + int year + int fsk - static hasMany = [ countries: Country, directors: Director, tags: Tag ] + static hasMany = [ countries: Country, directors: MovieDirector, tags: Tag ] static belongsTo = [ Screening, Announcement ] String toString() { "${title}" } diff --git a/projekte/cinemas/grails-app/domain/MovieDirector.groovy b/projekte/cinemas/grails-app/domain/MovieDirector.groovy new file mode 100644 index 0000000..31d3dba --- /dev/null +++ b/projekte/cinemas/grails-app/domain/MovieDirector.groovy @@ -0,0 +1,3 @@ +class MovieDirector { + static belongsTo = [Movie, Director] +} diff --git a/projekte/cinemas/grails-app/views/address/create.gsp b/projekte/cinemas/grails-app/views/address/create.gsp new file mode 100644 index 0000000..e9ec0b5 --- /dev/null +++ b/projekte/cinemas/grails-app/views/address/create.gsp @@ -0,0 +1,55 @@ + + + + + + Create Address + + + +
+

Create Address

+ +
${flash.message}
+
+ +
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + +
+
+
+ + + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/address/edit.gsp b/projekte/cinemas/grails-app/views/address/edit.gsp new file mode 100644 index 0000000..0e31c79 --- /dev/null +++ b/projekte/cinemas/grails-app/views/address/edit.gsp @@ -0,0 +1,61 @@ + + + + + + Edit Address + + + +
+

Edit Address

+ +
${flash.message}
+
+ +
+ +
+
+
+ Id: + ${address?.id} +
+ + +
+ + + + + + + + + + + + + + + + + + + + +
+
+ +
+ + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/address/list.gsp b/projekte/cinemas/grails-app/views/address/list.gsp new file mode 100644 index 0000000..b919714 --- /dev/null +++ b/projekte/cinemas/grails-app/views/address/list.gsp @@ -0,0 +1,67 @@ + + + + + + Address List + + + +
+

Address List

+ +
+ ${flash.message} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
${it.id?.encodeAsHTML()}${it.phone?.encodeAsHTML()}${it.facsimile?.encodeAsHTML()}${it.email?.encodeAsHTML()}${it.zipCode?.encodeAsHTML()}${it.street?.encodeAsHTML()} + Show +
+
+ +
+
+ + diff --git a/projekte/cinemas/grails-app/views/address/show.gsp b/projekte/cinemas/grails-app/views/address/show.gsp new file mode 100644 index 0000000..841f587 --- /dev/null +++ b/projekte/cinemas/grails-app/views/address/show.gsp @@ -0,0 +1,92 @@ + + + + + + Show Address + + + +
+

Show Address

+ +
${flash.message}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Id:${address.id}
Phone:${address.phone}
Facsimile:${address.facsimile}
Email:${address.email}
Zip Code:${address.zipCode}
Street:${address.street}
Country:${address?.country}
City:${address.city}
+
+
+ + + + + +
+
+ + diff --git a/projekte/cinemas/grails-app/views/announcement/create.gsp b/projekte/cinemas/grails-app/views/announcement/create.gsp new file mode 100644 index 0000000..afe287e --- /dev/null +++ b/projekte/cinemas/grails-app/views/announcement/create.gsp @@ -0,0 +1,49 @@ + + + + + + Create Announcement + + + +
+

Create Announcement

+ +
${flash.message}
+
+ +
+ +
+
+ +
+ + + + + + + + + + + + + + +
+
+
+ + + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/announcement/edit.gsp b/projekte/cinemas/grails-app/views/announcement/edit.gsp new file mode 100644 index 0000000..3d0177d --- /dev/null +++ b/projekte/cinemas/grails-app/views/announcement/edit.gsp @@ -0,0 +1,55 @@ + + + + + + Edit Announcement + + + +
+

Edit Announcement

+ +
${flash.message}
+
+ +
+ +
+
+
+ Id: + ${announcement?.id} +
+ + +
+ + + + + + + + + + + + + + +
+
+ +
+ + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/announcement/list.gsp b/projekte/cinemas/grails-app/views/announcement/list.gsp new file mode 100644 index 0000000..a383547 --- /dev/null +++ b/projekte/cinemas/grails-app/views/announcement/list.gsp @@ -0,0 +1,63 @@ + + + + + + Announcement List + + + +
+

Announcement List

+ +
+ ${flash.message} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Movie
${it.id?.encodeAsHTML()}${it.start?.encodeAsHTML()}${it.omu?.encodeAsHTML()}${it.description?.encodeAsHTML()}${it.movie?.encodeAsHTML()} + Show +
+
+ +
+
+ + diff --git a/projekte/cinemas/grails-app/views/announcement/show.gsp b/projekte/cinemas/grails-app/views/announcement/show.gsp new file mode 100644 index 0000000..0a5e4f5 --- /dev/null +++ b/projekte/cinemas/grails-app/views/announcement/show.gsp @@ -0,0 +1,71 @@ + + + + + + Show Announcement + + + +
+

Show Announcement

+ +
${flash.message}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Id:${announcement.id}
Start:${announcement.start}
Omu:${announcement.omu}
Description:${announcement.description}
Movie:${announcement?.movie}
+
+
+ + + + + +
+
+ + diff --git a/projekte/cinemas/grails-app/views/cineGroup/create.gsp b/projekte/cinemas/grails-app/views/cineGroup/create.gsp new file mode 100644 index 0000000..5036074 --- /dev/null +++ b/projekte/cinemas/grails-app/views/cineGroup/create.gsp @@ -0,0 +1,43 @@ + + + + + + Create CineGroup + + + +
+

Create CineGroup

+ +
${flash.message}
+
+ +
+ +
+
+ +
+ + + + + + + + +
+
+
+ + + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/cineGroup/edit.gsp b/projekte/cinemas/grails-app/views/cineGroup/edit.gsp new file mode 100644 index 0000000..56d98c4 --- /dev/null +++ b/projekte/cinemas/grails-app/views/cineGroup/edit.gsp @@ -0,0 +1,57 @@ + + + + + + Edit CineGroup + + + +
+

Edit CineGroup

+ +
${flash.message}
+
+ +
+ +
+
+
+ Id: + ${cineGroup?.id} +
+ + +
+ + + + + + + + + + +
    + +
  • ${c}
  • +
    +
+Add Cinema +
+
+ +
+ + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/cineGroup/list.gsp b/projekte/cinemas/grails-app/views/cineGroup/list.gsp new file mode 100644 index 0000000..d23bae4 --- /dev/null +++ b/projekte/cinemas/grails-app/views/cineGroup/list.gsp @@ -0,0 +1,51 @@ + + + + + + CineGroup List + + + +
+

CineGroup List

+ +
+ ${flash.message} +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
${it.id?.encodeAsHTML()}${it.name?.encodeAsHTML()} + Show +
+
+ +
+
+ + diff --git a/projekte/cinemas/grails-app/views/cineGroup/show.gsp b/projekte/cinemas/grails-app/views/cineGroup/show.gsp new file mode 100644 index 0000000..9577fd1 --- /dev/null +++ b/projekte/cinemas/grails-app/views/cineGroup/show.gsp @@ -0,0 +1,63 @@ + + + + + + Show CineGroup + + + +
+

Show CineGroup

+ +
${flash.message}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Id:${cineGroup.id}
Name:${cineGroup.name}
Cinemas: +
    + +
  • ${c}
  • +
    +
+
+
+
+ + + + + +
+
+ + diff --git a/projekte/cinemas/grails-app/views/cinema/create.gsp b/projekte/cinemas/grails-app/views/cinema/create.gsp new file mode 100644 index 0000000..cfda241 --- /dev/null +++ b/projekte/cinemas/grails-app/views/cinema/create.gsp @@ -0,0 +1,47 @@ + + + + + + Create Cinema + + + +
+

Create Cinema

+ +
${flash.message}
+
+ +
+ +
+
+ +
+ + + + + + + + + + + + +
+
+
+ + + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/cinema/edit.gsp b/projekte/cinemas/grails-app/views/cinema/edit.gsp new file mode 100644 index 0000000..5b3cbbf --- /dev/null +++ b/projekte/cinemas/grails-app/views/cinema/edit.gsp @@ -0,0 +1,61 @@ + + + + + + Edit Cinema + + + +
+

Edit Cinema

+ +
${flash.message}
+
+ +
+ +
+
+
+ Id: + ${cinema?.id} +
+ + +
+ + + + + + + + + + + + + + +
    + +
  • ${h}
  • +
    +
+Add Hall +
+
+ +
+ + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/cinema/list.gsp b/projekte/cinemas/grails-app/views/cinema/list.gsp new file mode 100644 index 0000000..a782e94 --- /dev/null +++ b/projekte/cinemas/grails-app/views/cinema/list.gsp @@ -0,0 +1,59 @@ + + + + + + Cinema List + + + +
+

Cinema List

+ +
+ ${flash.message} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Address
${it.id?.encodeAsHTML()}${it.address?.encodeAsHTML()}${it.name?.encodeAsHTML()}${it.shortName?.encodeAsHTML()} + Show +
+
+ +
+
+ + diff --git a/projekte/cinemas/grails-app/views/cinema/show.gsp b/projekte/cinemas/grails-app/views/cinema/show.gsp new file mode 100644 index 0000000..4a1e986 --- /dev/null +++ b/projekte/cinemas/grails-app/views/cinema/show.gsp @@ -0,0 +1,77 @@ + + + + + + Show Cinema + + + +
+

Show Cinema

+ +
${flash.message}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Id:${cinema.id}
Halls: +
    + +
  • ${h}
  • +
    +
+
Address:${cinema?.address}
Name:${cinema.name}
Short Name:${cinema.shortName}
+
+
+ + + + + +
+
+ + diff --git a/projekte/cinemas/grails-app/views/country/create.gsp b/projekte/cinemas/grails-app/views/country/create.gsp new file mode 100644 index 0000000..5aad43a --- /dev/null +++ b/projekte/cinemas/grails-app/views/country/create.gsp @@ -0,0 +1,45 @@ + + + + + + Create Country + + + +
+

Create Country

+ +
${flash.message}
+
+ +
+ +
+
+ +
+ + + + + + + + + + +
+
+
+ + + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/country/edit.gsp b/projekte/cinemas/grails-app/views/country/edit.gsp new file mode 100644 index 0000000..605e8cd --- /dev/null +++ b/projekte/cinemas/grails-app/views/country/edit.gsp @@ -0,0 +1,51 @@ + + + + + + Edit Country + + + +
+

Edit Country

+ +
${flash.message}
+
+ +
+ +
+
+
+ Id: + ${country?.id} +
+ + +
+ + + + + + + + + + +
+
+ +
+ + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/country/list.gsp b/projekte/cinemas/grails-app/views/country/list.gsp new file mode 100644 index 0000000..3ee5d22 --- /dev/null +++ b/projekte/cinemas/grails-app/views/country/list.gsp @@ -0,0 +1,55 @@ + + + + + + Country List + + + +
+

Country List

+ +
+ ${flash.message} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
${it.id?.encodeAsHTML()}${it.name?.encodeAsHTML()}${it.shortName?.encodeAsHTML()} + Show +
+
+ +
+
+ + diff --git a/projekte/cinemas/grails-app/views/country/show.gsp b/projekte/cinemas/grails-app/views/country/show.gsp new file mode 100644 index 0000000..d1d7c2c --- /dev/null +++ b/projekte/cinemas/grails-app/views/country/show.gsp @@ -0,0 +1,57 @@ + + + + + + Show Country + + + +
+

Show Country

+ +
${flash.message}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Id:${country.id}
Name:${country.name}
Short Name:${country.shortName}
+
+
+ + + + + +
+
+ + diff --git a/projekte/cinemas/grails-app/views/director/create.gsp b/projekte/cinemas/grails-app/views/director/create.gsp new file mode 100644 index 0000000..ff40f5d --- /dev/null +++ b/projekte/cinemas/grails-app/views/director/create.gsp @@ -0,0 +1,43 @@ + + + + + + Create Director + + + +
+

Create Director

+ +
${flash.message}
+
+ +
+ +
+
+ +
+ + + + + + + + +
+
+
+ + + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/director/edit.gsp b/projekte/cinemas/grails-app/views/director/edit.gsp new file mode 100644 index 0000000..da46893 --- /dev/null +++ b/projekte/cinemas/grails-app/views/director/edit.gsp @@ -0,0 +1,57 @@ + + + + + + Edit Director + + + +
+

Edit Director

+ +
${flash.message}
+
+ +
+ +
+
+
+ Id: + ${director?.id} +
+ + +
+ + + + + + + + + + +
    + +
  • ${m}
  • +
    +
+Add MovieDirector +
+
+ +
+ + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/director/list.gsp b/projekte/cinemas/grails-app/views/director/list.gsp new file mode 100644 index 0000000..f2aa57c --- /dev/null +++ b/projekte/cinemas/grails-app/views/director/list.gsp @@ -0,0 +1,51 @@ + + + + + + Director List + + + +
+

Director List

+ +
+ ${flash.message} +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
${it.id?.encodeAsHTML()}${it.name?.encodeAsHTML()} + Show +
+
+ +
+
+ + diff --git a/projekte/cinemas/grails-app/views/director/show.gsp b/projekte/cinemas/grails-app/views/director/show.gsp new file mode 100644 index 0000000..b55df64 --- /dev/null +++ b/projekte/cinemas/grails-app/views/director/show.gsp @@ -0,0 +1,63 @@ + + + + + + Show Director + + + +
+

Show Director

+ +
${flash.message}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Id:${director.id}
Name:${director.name}
Movies: +
    + +
  • ${m}
  • +
    +
+
+
+
+ + + + + +
+
+ + diff --git a/projekte/cinemas/grails-app/views/event/create.gsp b/projekte/cinemas/grails-app/views/event/create.gsp new file mode 100644 index 0000000..850a4e5 --- /dev/null +++ b/projekte/cinemas/grails-app/views/event/create.gsp @@ -0,0 +1,47 @@ + + + + + + Create Event + + + +
+

Create Event

+ +
${flash.message}
+
+ +
+ +
+
+ +
+ + + + + + + + + + + + +
+
+
+ + + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/event/edit.gsp b/projekte/cinemas/grails-app/views/event/edit.gsp new file mode 100644 index 0000000..b543263 --- /dev/null +++ b/projekte/cinemas/grails-app/views/event/edit.gsp @@ -0,0 +1,53 @@ + + + + + + Edit Event + + + +
+

Edit Event

+ +
${flash.message}
+
+ +
+ +
+
+
+ Id: + ${event?.id} +
+ + +
+ + + + + + + + + + + + +
+
+ +
+ + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/event/list.gsp b/projekte/cinemas/grails-app/views/event/list.gsp new file mode 100644 index 0000000..81a312b --- /dev/null +++ b/projekte/cinemas/grails-app/views/event/list.gsp @@ -0,0 +1,59 @@ + + + + + + Event List + + + +
+

Event List

+ +
+ ${flash.message} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
${it.id?.encodeAsHTML()}${it.content?.encodeAsHTML()}${it.start?.encodeAsHTML()}${it.name?.encodeAsHTML()} + Show +
+
+ +
+
+ + diff --git a/projekte/cinemas/grails-app/views/event/show.gsp b/projekte/cinemas/grails-app/views/event/show.gsp new file mode 100644 index 0000000..7bd6295 --- /dev/null +++ b/projekte/cinemas/grails-app/views/event/show.gsp @@ -0,0 +1,64 @@ + + + + + + Show Event + + + +
+

Show Event

+ +
${flash.message}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Id:${event.id}
Content:${event.content}
Start:${event.start}
Name:${event.name}
+
+
+ + + + + +
+
+ + diff --git a/projekte/cinemas/grails-app/views/hall/create.gsp b/projekte/cinemas/grails-app/views/hall/create.gsp new file mode 100644 index 0000000..81445f2 --- /dev/null +++ b/projekte/cinemas/grails-app/views/hall/create.gsp @@ -0,0 +1,43 @@ + + + + + + Create Hall + + + +
+

Create Hall

+ +
${flash.message}
+
+ +
+ +
+
+ +
+ + + + + + + + +
+
+
+ + + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/hall/edit.gsp b/projekte/cinemas/grails-app/views/hall/edit.gsp new file mode 100644 index 0000000..92491f2 --- /dev/null +++ b/projekte/cinemas/grails-app/views/hall/edit.gsp @@ -0,0 +1,73 @@ + + + + + + Edit Hall + + + +
+

Edit Hall

+ +
${flash.message}
+
+ +
+ +
+
+
+ Id: + ${hall?.id} +
+ + +
+ + + + + + + + + + + + + + +
    + +
  • ${s}
  • +
    +
+Add Screening +
    + +
  • ${e}
  • +
    +
+Add Event +
    + +
  • ${a}
  • +
    +
+Add Announcement +
+
+ +
+ + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/hall/list.gsp b/projekte/cinemas/grails-app/views/hall/list.gsp new file mode 100644 index 0000000..9829afb --- /dev/null +++ b/projekte/cinemas/grails-app/views/hall/list.gsp @@ -0,0 +1,51 @@ + + + + + + Hall List + + + +
+

Hall List

+ +
+ ${flash.message} +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
${it.id?.encodeAsHTML()}${it.name?.encodeAsHTML()} + Show +
+
+ +
+
+ + diff --git a/projekte/cinemas/grails-app/views/hall/show.gsp b/projekte/cinemas/grails-app/views/hall/show.gsp new file mode 100644 index 0000000..1bac13e --- /dev/null +++ b/projekte/cinemas/grails-app/views/hall/show.gsp @@ -0,0 +1,89 @@ + + + + + + Show Hall + + + +
+

Show Hall

+ +
${flash.message}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Id:${hall.id}
Screenings: +
    + +
  • ${s}
  • +
    +
+
Events: +
    + +
  • ${e}
  • +
    +
+
Name:${hall.name}
Announcements: +
    + +
  • ${a}
  • +
    +
+
+
+
+ + + + + +
+
+ + diff --git a/projekte/cinemas/grails-app/views/movie/create.gsp b/projekte/cinemas/grails-app/views/movie/create.gsp new file mode 100644 index 0000000..a6c94ff --- /dev/null +++ b/projekte/cinemas/grails-app/views/movie/create.gsp @@ -0,0 +1,53 @@ + + + + + + Create Movie + + + +
+

Create Movie

+ +
${flash.message}
+
+ +
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + +
+
+
+ + + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/movie/edit.gsp b/projekte/cinemas/grails-app/views/movie/edit.gsp new file mode 100644 index 0000000..b35d059 --- /dev/null +++ b/projekte/cinemas/grails-app/views/movie/edit.gsp @@ -0,0 +1,83 @@ + + + + + + Edit Movie + + + +
+

Edit Movie

+ +
${flash.message}
+
+ +
+ +
+
+
+ Id: + ${movie?.id} +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
    + +
  • ${t}
  • +
    +
+Add Tag +
    + +
  • ${d}
  • +
    +
+Add MovieDirector +
    + +
  • ${c}
  • +
    +
+Add Country +
+
+ +
+ + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/movie/list.gsp b/projekte/cinemas/grails-app/views/movie/list.gsp new file mode 100644 index 0000000..63b3caa --- /dev/null +++ b/projekte/cinemas/grails-app/views/movie/list.gsp @@ -0,0 +1,67 @@ + + + + + + Movie List + + + +
+

Movie List

+ +
+ ${flash.message} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
${it.id?.encodeAsHTML()}${it.title?.encodeAsHTML()}${it.origTitle?.encodeAsHTML()}${it.description?.encodeAsHTML()}${it.teaser?.encodeAsHTML()}${it.year?.encodeAsHTML()} + Show +
+
+ +
+
+ + diff --git a/projekte/cinemas/grails-app/views/movie/show.gsp b/projekte/cinemas/grails-app/views/movie/show.gsp new file mode 100644 index 0000000..31ef8ad --- /dev/null +++ b/projekte/cinemas/grails-app/views/movie/show.gsp @@ -0,0 +1,124 @@ + + + + + + Show Movie + + + +
+

Show Movie

+ +
${flash.message}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Id:${movie.id}
Tags: +
    + +
  • ${t}
  • +
    +
+
Title:${movie.title}
Orig Title:${movie.origTitle}
Description:${movie.description}
Teaser:${movie.teaser}
Year:${movie.year}
Directors: +
    + +
  • ${d}
  • +
    +
+
Countries: +
    + +
  • ${c}
  • +
    +
+
Fsk:${movie.fsk}
+
+
+ + + + + +
+
+ + diff --git a/projekte/cinemas/grails-app/views/movieDirector/create.gsp b/projekte/cinemas/grails-app/views/movieDirector/create.gsp new file mode 100644 index 0000000..7e4849b --- /dev/null +++ b/projekte/cinemas/grails-app/views/movieDirector/create.gsp @@ -0,0 +1,41 @@ + + + + + + Create MovieDirector + + + +
+

Create MovieDirector

+ +
${flash.message}
+
+ +
+ +
+
+ +
+ + + + + + +
+
+
+ + + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/movieDirector/edit.gsp b/projekte/cinemas/grails-app/views/movieDirector/edit.gsp new file mode 100644 index 0000000..419c1f5 --- /dev/null +++ b/projekte/cinemas/grails-app/views/movieDirector/edit.gsp @@ -0,0 +1,47 @@ + + + + + + Edit MovieDirector + + + +
+

Edit MovieDirector

+ +
${flash.message}
+
+ +
+ +
+
+
+ Id: + ${movieDirector?.id} +
+ + +
+ + + + + + +
+
+ +
+ + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/movieDirector/list.gsp b/projekte/cinemas/grails-app/views/movieDirector/list.gsp new file mode 100644 index 0000000..93e7e7b --- /dev/null +++ b/projekte/cinemas/grails-app/views/movieDirector/list.gsp @@ -0,0 +1,47 @@ + + + + + + MovieDirector List + + + +
+

MovieDirector List

+ +
+ ${flash.message} +
+
+ + + + + + + + + + + + + + + + + + + +
${it.id?.encodeAsHTML()} + Show +
+
+ +
+
+ + diff --git a/projekte/cinemas/grails-app/views/movieDirector/show.gsp b/projekte/cinemas/grails-app/views/movieDirector/show.gsp new file mode 100644 index 0000000..dbfbb2c --- /dev/null +++ b/projekte/cinemas/grails-app/views/movieDirector/show.gsp @@ -0,0 +1,43 @@ + + + + + + Show MovieDirector + + + +
+

Show MovieDirector

+ +
${flash.message}
+
+
+ + + + + + + + + + + + +
Id:${movieDirector.id}
+
+
+ + + + + +
+
+ + diff --git a/projekte/cinemas/grails-app/views/person/create.gsp b/projekte/cinemas/grails-app/views/person/create.gsp new file mode 100644 index 0000000..bd10e79 --- /dev/null +++ b/projekte/cinemas/grails-app/views/person/create.gsp @@ -0,0 +1,45 @@ + + + + + + Create Person + + + +
+

Create Person

+ +
${flash.message}
+
+ +
+ +
+
+ +
+ + + + + + + + + + +
+
+
+ + + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/person/edit.gsp b/projekte/cinemas/grails-app/views/person/edit.gsp new file mode 100644 index 0000000..57f6b0c --- /dev/null +++ b/projekte/cinemas/grails-app/views/person/edit.gsp @@ -0,0 +1,59 @@ + + + + + + Edit Person + + + +
+

Edit Person

+ +
${flash.message}
+
+ +
+ +
+
+
+ Id: + ${person?.id} +
+ + +
+ + + + + + + + + + + + +
    + +
  • ${t}
  • +
    +
+Add Tag +
+
+ +
+ + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/person/list.gsp b/projekte/cinemas/grails-app/views/person/list.gsp new file mode 100644 index 0000000..2c9f1e0 --- /dev/null +++ b/projekte/cinemas/grails-app/views/person/list.gsp @@ -0,0 +1,55 @@ + + + + + + Person List + + + +
+

Person List

+ +
+ ${flash.message} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
${it.id?.encodeAsHTML()}${it.name?.encodeAsHTML()}${it.fullName?.encodeAsHTML()} + Show +
+
+ +
+
+ + diff --git a/projekte/cinemas/grails-app/views/person/show.gsp b/projekte/cinemas/grails-app/views/person/show.gsp new file mode 100644 index 0000000..d22bf6d --- /dev/null +++ b/projekte/cinemas/grails-app/views/person/show.gsp @@ -0,0 +1,70 @@ + + + + + + Show Person + + + +
+

Show Person

+ +
${flash.message}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Id:${person.id}
Tags: +
    + +
  • ${t}
  • +
    +
+
Name:${person.name}
Full Name:${person.fullName}
+
+
+ + + + + +
+
+ + diff --git a/projekte/cinemas/grails-app/views/screening/create.gsp b/projekte/cinemas/grails-app/views/screening/create.gsp new file mode 100644 index 0000000..6628adc --- /dev/null +++ b/projekte/cinemas/grails-app/views/screening/create.gsp @@ -0,0 +1,51 @@ + + + + + + Create Screening + + + +
+

Create Screening

+ +
${flash.message}
+
+ +
+ +
+
+ +
+ + + + + + + + + + + + + + + + +
+
+
+ + + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/screening/edit.gsp b/projekte/cinemas/grails-app/views/screening/edit.gsp new file mode 100644 index 0000000..57eef54 --- /dev/null +++ b/projekte/cinemas/grails-app/views/screening/edit.gsp @@ -0,0 +1,57 @@ + + + + + + Edit Screening + + + +
+

Edit Screening

+ +
${flash.message}
+
+ +
+ +
+
+
+ Id: + ${screening?.id} +
+ + +
+ + + + + + + + + + + + + + + + +
+
+ +
+ + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/screening/list.gsp b/projekte/cinemas/grails-app/views/screening/list.gsp new file mode 100644 index 0000000..a650bf3 --- /dev/null +++ b/projekte/cinemas/grails-app/views/screening/list.gsp @@ -0,0 +1,67 @@ + + + + + + Screening List + + + +
+

Screening List

+ +
+ ${flash.message} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Movie
${it.id?.encodeAsHTML()}${it.start?.encodeAsHTML()}${it.omu?.encodeAsHTML()}${it.description?.encodeAsHTML()}${it.movie?.encodeAsHTML()}${it.rowOrder?.encodeAsHTML()} + Show +
+
+ +
+
+ + diff --git a/projekte/cinemas/grails-app/views/screening/show.gsp b/projekte/cinemas/grails-app/views/screening/show.gsp new file mode 100644 index 0000000..2e042b5 --- /dev/null +++ b/projekte/cinemas/grails-app/views/screening/show.gsp @@ -0,0 +1,78 @@ + + + + + + Show Screening + + + +
+

Show Screening

+ +
${flash.message}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Id:${screening.id}
Start:${screening.start}
Omu:${screening.omu}
Description:${screening.description}
Movie:${screening?.movie}
Row Order:${screening.rowOrder}
+
+
+ + + + + +
+
+ + diff --git a/projekte/cinemas/grails-app/views/tag/create.gsp b/projekte/cinemas/grails-app/views/tag/create.gsp new file mode 100644 index 0000000..23142cd --- /dev/null +++ b/projekte/cinemas/grails-app/views/tag/create.gsp @@ -0,0 +1,47 @@ + + + + + + Create Tag + + + +
+

Create Tag

+ +
${flash.message}
+
+ +
+ +
+
+ +
+ + + + + + + + + + + + +
+
+
+ + + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/tag/edit.gsp b/projekte/cinemas/grails-app/views/tag/edit.gsp new file mode 100644 index 0000000..aff3df8 --- /dev/null +++ b/projekte/cinemas/grails-app/views/tag/edit.gsp @@ -0,0 +1,53 @@ + + + + + + Edit Tag + + + +
+

Edit Tag

+ +
${flash.message}
+
+ +
+ +
+
+
+ Id: + ${tag?.id} +
+ + +
+ + + + + + + + + + + + +
+
+ +
+ + +
+
+
+ + diff --git a/projekte/cinemas/grails-app/views/tag/list.gsp b/projekte/cinemas/grails-app/views/tag/list.gsp new file mode 100644 index 0000000..edf0749 --- /dev/null +++ b/projekte/cinemas/grails-app/views/tag/list.gsp @@ -0,0 +1,59 @@ + + + + + + Tag List + + + +
+

Tag List

+ +
+ ${flash.message} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Creator
${it.id?.encodeAsHTML()}${it.created?.encodeAsHTML()}${it.name?.encodeAsHTML()}${it.creator?.encodeAsHTML()} + Show +
+
+ +
+
+ + diff --git a/projekte/cinemas/grails-app/views/tag/show.gsp b/projekte/cinemas/grails-app/views/tag/show.gsp new file mode 100644 index 0000000..c9b4e96 --- /dev/null +++ b/projekte/cinemas/grails-app/views/tag/show.gsp @@ -0,0 +1,64 @@ + + + + + + Show Tag + + + +
+

Show Tag

+ +
${flash.message}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Id:${tag.id}
Created:${tag.created}
Name:${tag.name}
Creator:${tag?.creator}
+
+
+ + + + + +
+
+ +