forked from bofh/fetsite
Merge branch 'master' of https://github.com/andreassteph/fetsite
Conflicts: config/routes.rb
This commit is contained in:
3
app/assets/javascripts/fetprofiles.js.coffee
Normal file
3
app/assets/javascripts/fetprofiles.js.coffee
Normal file
@@ -0,0 +1,3 @@
|
||||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
3
app/assets/javascripts/fetzneditions.js.coffee
Normal file
3
app/assets/javascripts/fetzneditions.js.coffee
Normal file
@@ -0,0 +1,3 @@
|
||||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
3
app/assets/javascripts/fotos.js.coffee
Normal file
3
app/assets/javascripts/fotos.js.coffee
Normal file
@@ -0,0 +1,3 @@
|
||||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
3
app/assets/javascripts/galleries.js.coffee
Normal file
3
app/assets/javascripts/galleries.js.coffee
Normal file
@@ -0,0 +1,3 @@
|
||||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
3
app/assets/javascripts/gremien.js.coffee
Normal file
3
app/assets/javascripts/gremien.js.coffee
Normal file
@@ -0,0 +1,3 @@
|
||||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
3
app/assets/javascripts/memberships.js.coffee
Normal file
3
app/assets/javascripts/memberships.js.coffee
Normal file
@@ -0,0 +1,3 @@
|
||||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
3
app/assets/stylesheets/fetprofiles.css.scss
Normal file
3
app/assets/stylesheets/fetprofiles.css.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
// Place all the styles related to the fetprofiles controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
3
app/assets/stylesheets/fetzneditions.css.scss
Normal file
3
app/assets/stylesheets/fetzneditions.css.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
// Place all the styles related to the fetzneditions controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
3
app/assets/stylesheets/fotos.css.scss
Normal file
3
app/assets/stylesheets/fotos.css.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
// Place all the styles related to the fotos controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
3
app/assets/stylesheets/galleries.css.scss
Normal file
3
app/assets/stylesheets/galleries.css.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
// Place all the styles related to the galleries controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
3
app/assets/stylesheets/gremien.css.scss
Normal file
3
app/assets/stylesheets/gremien.css.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
// Place all the styles related to the gremien controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
3
app/assets/stylesheets/memberships.css.scss
Normal file
3
app/assets/stylesheets/memberships.css.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
// Place all the styles related to the memberships controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
83
app/controllers/fetprofiles_controller.rb
Normal file
83
app/controllers/fetprofiles_controller.rb
Normal file
@@ -0,0 +1,83 @@
|
||||
class FetprofilesController < ApplicationController
|
||||
# GET /fetprofiles
|
||||
# GET /fetprofiles.json
|
||||
def index
|
||||
@fetprofiles = Fetprofile.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @fetprofiles }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fetprofiles/1
|
||||
# GET /fetprofiles/1.json
|
||||
def show
|
||||
@fetprofile = Fetprofile.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.json { render json: @fetprofile }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fetprofiles/new
|
||||
# GET /fetprofiles/new.json
|
||||
def new
|
||||
@fetprofile = Fetprofile.new
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @fetprofile }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fetprofiles/1/edit
|
||||
def edit
|
||||
@fetprofile = Fetprofile.find(params[:id])
|
||||
end
|
||||
|
||||
# POST /fetprofiles
|
||||
# POST /fetprofiles.json
|
||||
def create
|
||||
@fetprofile = Fetprofile.new(params[:fetprofile])
|
||||
|
||||
respond_to do |format|
|
||||
if @fetprofile.save
|
||||
format.html { redirect_to @fetprofile, notice: 'Fetprofile was successfully created.' }
|
||||
format.json { render json: @fetprofile, status: :created, location: @fetprofile }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: @fetprofile.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# PUT /fetprofiles/1
|
||||
# PUT /fetprofiles/1.json
|
||||
def update
|
||||
@fetprofile = Fetprofile.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
if @fetprofile.update_attributes(params[:fetprofile])
|
||||
format.html { redirect_to @fetprofile, notice: 'Fetprofile was successfully updated.' }
|
||||
format.json { head :no_content }
|
||||
else
|
||||
format.html { render action: "edit" }
|
||||
format.json { render json: @fetprofile.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# DELETE /fetprofiles/1
|
||||
# DELETE /fetprofiles/1.json
|
||||
def destroy
|
||||
@fetprofile = Fetprofile.find(params[:id])
|
||||
@fetprofile.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to fetprofiles_url }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
83
app/controllers/fetzneditions_controller.rb
Normal file
83
app/controllers/fetzneditions_controller.rb
Normal file
@@ -0,0 +1,83 @@
|
||||
class FetzneditionsController < ApplicationController
|
||||
# GET /fetzneditions
|
||||
# GET /fetzneditions.json
|
||||
def index
|
||||
@fetzneditions = Fetznedition.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @fetzneditions }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fetzneditions/1
|
||||
# GET /fetzneditions/1.json
|
||||
def show
|
||||
@fetznedition = Fetznedition.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.json { render json: @fetznedition }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fetzneditions/new
|
||||
# GET /fetzneditions/new.json
|
||||
def new
|
||||
@fetznedition = Fetznedition.new
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @fetznedition }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fetzneditions/1/edit
|
||||
def edit
|
||||
@fetznedition = Fetznedition.find(params[:id])
|
||||
end
|
||||
|
||||
# POST /fetzneditions
|
||||
# POST /fetzneditions.json
|
||||
def create
|
||||
@fetznedition = Fetznedition.new(params[:fetznedition])
|
||||
|
||||
respond_to do |format|
|
||||
if @fetznedition.save
|
||||
format.html { redirect_to @fetznedition, notice: 'Fetznedition was successfully created.' }
|
||||
format.json { render json: @fetznedition, status: :created, location: @fetznedition }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: @fetznedition.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# PUT /fetzneditions/1
|
||||
# PUT /fetzneditions/1.json
|
||||
def update
|
||||
@fetznedition = Fetznedition.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
if @fetznedition.update_attributes(params[:fetznedition])
|
||||
format.html { redirect_to @fetznedition, notice: 'Fetznedition was successfully updated.' }
|
||||
format.json { head :no_content }
|
||||
else
|
||||
format.html { render action: "edit" }
|
||||
format.json { render json: @fetznedition.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# DELETE /fetzneditions/1
|
||||
# DELETE /fetzneditions/1.json
|
||||
def destroy
|
||||
@fetznedition = Fetznedition.find(params[:id])
|
||||
@fetznedition.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to fetzneditions_url }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
83
app/controllers/fotos_controller.rb
Normal file
83
app/controllers/fotos_controller.rb
Normal file
@@ -0,0 +1,83 @@
|
||||
class FotosController < ApplicationController
|
||||
# GET /fotos
|
||||
# GET /fotos.json
|
||||
def index
|
||||
@fotos = Foto.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @fotos }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fotos/1
|
||||
# GET /fotos/1.json
|
||||
def show
|
||||
@foto = Foto.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.json { render json: @foto }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fotos/new
|
||||
# GET /fotos/new.json
|
||||
def new
|
||||
@foto = Foto.new
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @foto }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fotos/1/edit
|
||||
def edit
|
||||
@foto = Foto.find(params[:id])
|
||||
end
|
||||
|
||||
# POST /fotos
|
||||
# POST /fotos.json
|
||||
def create
|
||||
@foto = Foto.new(params[:foto])
|
||||
|
||||
respond_to do |format|
|
||||
if @foto.save
|
||||
format.html { redirect_to @foto, notice: 'Foto was successfully created.' }
|
||||
format.json { render json: @foto, status: :created, location: @foto }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: @foto.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# PUT /fotos/1
|
||||
# PUT /fotos/1.json
|
||||
def update
|
||||
@foto = Foto.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
if @foto.update_attributes(params[:foto])
|
||||
format.html { redirect_to @foto, notice: 'Foto was successfully updated.' }
|
||||
format.json { head :no_content }
|
||||
else
|
||||
format.html { render action: "edit" }
|
||||
format.json { render json: @foto.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# DELETE /fotos/1
|
||||
# DELETE /fotos/1.json
|
||||
def destroy
|
||||
@foto = Foto.find(params[:id])
|
||||
@foto.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to fotos_url }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
83
app/controllers/galleries_controller.rb
Normal file
83
app/controllers/galleries_controller.rb
Normal file
@@ -0,0 +1,83 @@
|
||||
class GalleriesController < ApplicationController
|
||||
# GET /galleries
|
||||
# GET /galleries.json
|
||||
def index
|
||||
@galleries = Gallery.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @galleries }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /galleries/1
|
||||
# GET /galleries/1.json
|
||||
def show
|
||||
@gallery = Gallery.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.json { render json: @gallery }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /galleries/new
|
||||
# GET /galleries/new.json
|
||||
def new
|
||||
@gallery = Gallery.new
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @gallery }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /galleries/1/edit
|
||||
def edit
|
||||
@gallery = Gallery.find(params[:id])
|
||||
end
|
||||
|
||||
# POST /galleries
|
||||
# POST /galleries.json
|
||||
def create
|
||||
@gallery = Gallery.new(params[:gallery])
|
||||
|
||||
respond_to do |format|
|
||||
if @gallery.save
|
||||
format.html { redirect_to @gallery, notice: 'Gallery was successfully created.' }
|
||||
format.json { render json: @gallery, status: :created, location: @gallery }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: @gallery.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# PUT /galleries/1
|
||||
# PUT /galleries/1.json
|
||||
def update
|
||||
@gallery = Gallery.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
if @gallery.update_attributes(params[:gallery])
|
||||
format.html { redirect_to @gallery, notice: 'Gallery was successfully updated.' }
|
||||
format.json { head :no_content }
|
||||
else
|
||||
format.html { render action: "edit" }
|
||||
format.json { render json: @gallery.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# DELETE /galleries/1
|
||||
# DELETE /galleries/1.json
|
||||
def destroy
|
||||
@gallery = Gallery.find(params[:id])
|
||||
@gallery.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to galleries_url }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
83
app/controllers/gremien_controller.rb
Normal file
83
app/controllers/gremien_controller.rb
Normal file
@@ -0,0 +1,83 @@
|
||||
class GremienController < ApplicationController
|
||||
# GET /gremien
|
||||
# GET /gremien.json
|
||||
def index
|
||||
@gremien = Gremium.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @gremien }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /gremien/1
|
||||
# GET /gremien/1.json
|
||||
def show
|
||||
@gremium = Gremium.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.json { render json: @gremium }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /gremien/new
|
||||
# GET /gremien/new.json
|
||||
def new
|
||||
@gremium = Gremium.new
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @gremium }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /gremien/1/edit
|
||||
def edit
|
||||
@gremium = Gremium.find(params[:id])
|
||||
end
|
||||
|
||||
# POST /gremien
|
||||
# POST /gremien.json
|
||||
def create
|
||||
@gremium = Gremium.new(params[:gremium])
|
||||
|
||||
respond_to do |format|
|
||||
if @gremium.save
|
||||
format.html { redirect_to @gremium, notice: 'Gremium was successfully created.' }
|
||||
format.json { render json: @gremium, status: :created, location: @gremium }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: @gremium.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# PUT /gremien/1
|
||||
# PUT /gremien/1.json
|
||||
def update
|
||||
@gremium = Gremium.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
if @gremium.update_attributes(params[:gremium])
|
||||
format.html { redirect_to @gremium, notice: 'Gremium was successfully updated.' }
|
||||
format.json { head :no_content }
|
||||
else
|
||||
format.html { render action: "edit" }
|
||||
format.json { render json: @gremium.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# DELETE /gremien/1
|
||||
# DELETE /gremien/1.json
|
||||
def destroy
|
||||
@gremium = Gremium.find(params[:id])
|
||||
@gremium.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to gremien_url }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
83
app/controllers/memberships_controller.rb
Normal file
83
app/controllers/memberships_controller.rb
Normal file
@@ -0,0 +1,83 @@
|
||||
class MembershipsController < ApplicationController
|
||||
# GET /memberships
|
||||
# GET /memberships.json
|
||||
def index
|
||||
@memberships = Membership.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @memberships }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /memberships/1
|
||||
# GET /memberships/1.json
|
||||
def show
|
||||
@membership = Membership.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.json { render json: @membership }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /memberships/new
|
||||
# GET /memberships/new.json
|
||||
def new
|
||||
@membership = Membership.new
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @membership }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /memberships/1/edit
|
||||
def edit
|
||||
@membership = Membership.find(params[:id])
|
||||
end
|
||||
|
||||
# POST /memberships
|
||||
# POST /memberships.json
|
||||
def create
|
||||
@membership = Membership.new(params[:membership])
|
||||
|
||||
respond_to do |format|
|
||||
if @membership.save
|
||||
format.html { redirect_to @membership, notice: 'Membership was successfully created.' }
|
||||
format.json { render json: @membership, status: :created, location: @membership }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: @membership.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# PUT /memberships/1
|
||||
# PUT /memberships/1.json
|
||||
def update
|
||||
@membership = Membership.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
if @membership.update_attributes(params[:membership])
|
||||
format.html { redirect_to @membership, notice: 'Membership was successfully updated.' }
|
||||
format.json { head :no_content }
|
||||
else
|
||||
format.html { render action: "edit" }
|
||||
format.json { render json: @membership.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# DELETE /memberships/1
|
||||
# DELETE /memberships/1.json
|
||||
def destroy
|
||||
@membership = Membership.find(params[:id])
|
||||
@membership.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to memberships_url }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
2
app/helpers/fetprofiles_helper.rb
Normal file
2
app/helpers/fetprofiles_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module FetprofilesHelper
|
||||
end
|
||||
2
app/helpers/fetzneditions_helper.rb
Normal file
2
app/helpers/fetzneditions_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module FetzneditionsHelper
|
||||
end
|
||||
2
app/helpers/fotos_helper.rb
Normal file
2
app/helpers/fotos_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module FotosHelper
|
||||
end
|
||||
2
app/helpers/galleries_helper.rb
Normal file
2
app/helpers/galleries_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module GalleriesHelper
|
||||
end
|
||||
2
app/helpers/gremien_helper.rb
Normal file
2
app/helpers/gremien_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module GremienHelper
|
||||
end
|
||||
2
app/helpers/memberships_helper.rb
Normal file
2
app/helpers/memberships_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module MembershipsHelper
|
||||
end
|
||||
@@ -27,7 +27,7 @@ class Ability
|
||||
|
||||
# For Debug allow everything
|
||||
# Remove this line in production environment and for testing user management
|
||||
can :manage, :all
|
||||
# can :manage, :all
|
||||
can :addfetuser, User
|
||||
can :addfetadmin, User
|
||||
can [:show, :index], Studium
|
||||
@@ -62,7 +62,7 @@ class Ability
|
||||
|
||||
if user.has_role?("newsadmin") || user.has_role?("fetadmin")
|
||||
can :addmoderator, Rubrik
|
||||
end
|
||||
end
|
||||
can [:show, :index], [Rubrik,Neuigkeit]
|
||||
if user.has_role?("newsadmin") || user.has_role?( "fetadmin") || user.has_role?( "fetuser")
|
||||
can :manage, Rubrik
|
||||
|
||||
3
app/models/fetprofile.rb
Normal file
3
app/models/fetprofile.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Fetprofile < ActiveRecord::Base
|
||||
attr_accessible :active, :desc, :fetmailalias, :nachname, :picture, :short, :vorname
|
||||
end
|
||||
3
app/models/fetznedition.rb
Normal file
3
app/models/fetznedition.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Fetznedition < ActiveRecord::Base
|
||||
attr_accessible :datei, :datum, :desc, :title
|
||||
end
|
||||
3
app/models/foto.rb
Normal file
3
app/models/foto.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Foto < ActiveRecord::Base
|
||||
attr_accessible :datei, :desc, :gallery_id, :title
|
||||
end
|
||||
3
app/models/gallery.rb
Normal file
3
app/models/gallery.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Gallery < ActiveRecord::Base
|
||||
attr_accessible :datum, :desc, :name
|
||||
end
|
||||
3
app/models/gremium.rb
Normal file
3
app/models/gremium.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Gremium < ActiveRecord::Base
|
||||
attr_accessible :desc, :name, :typ
|
||||
end
|
||||
3
app/models/membership.rb
Normal file
3
app/models/membership.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Membership < ActiveRecord::Base
|
||||
attr_accessible :fetprofile_id, :gremium_id, :start, :stop, :typ
|
||||
end
|
||||
15
app/views/fetprofiles/_form.html.erb
Normal file
15
app/views/fetprofiles/_form.html.erb
Normal file
@@ -0,0 +1,15 @@
|
||||
<%= semantic_form_for @fetprofile do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :vorname %>
|
||||
<%= f.input :nachname %>
|
||||
<%= f.input :short %>
|
||||
<%= f.input :fetmailalias %>
|
||||
<%= f.input :desc %>
|
||||
<%= f.input :picture %>
|
||||
<%= f.input :active %>
|
||||
<% end %>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
6
app/views/fetprofiles/edit.html.erb
Normal file
6
app/views/fetprofiles/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing fetprofile</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @fetprofile %> |
|
||||
<%= link_to 'Back', fetprofiles_path %>
|
||||
35
app/views/fetprofiles/index.html.erb
Normal file
35
app/views/fetprofiles/index.html.erb
Normal file
@@ -0,0 +1,35 @@
|
||||
<h1>Listing fetprofiles</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Vorname</th>
|
||||
<th>Nachname</th>
|
||||
<th>Short</th>
|
||||
<th>Fetmailalias</th>
|
||||
<th>Desc</th>
|
||||
<th>Picture</th>
|
||||
<th>Active</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @fetprofiles.each do |fetprofile| %>
|
||||
<tr>
|
||||
<td><%= fetprofile.vorname %></td>
|
||||
<td><%= fetprofile.nachname %></td>
|
||||
<td><%= fetprofile.short %></td>
|
||||
<td><%= fetprofile.fetmailalias %></td>
|
||||
<td><%= fetprofile.desc %></td>
|
||||
<td><%= fetprofile.picture %></td>
|
||||
<td><%= fetprofile.active %></td>
|
||||
<td><%= link_to 'Show', fetprofile %></td>
|
||||
<td><%= link_to 'Edit', edit_fetprofile_path(fetprofile) %></td>
|
||||
<td><%= link_to 'Destroy', fetprofile, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New Fetprofile', new_fetprofile_path %>
|
||||
5
app/views/fetprofiles/new.html.erb
Normal file
5
app/views/fetprofiles/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New fetprofile</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', fetprofiles_path %>
|
||||
40
app/views/fetprofiles/show.html.erb
Normal file
40
app/views/fetprofiles/show.html.erb
Normal file
@@ -0,0 +1,40 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<b>Vorname:</b>
|
||||
<%= @fetprofile.vorname %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Nachname:</b>
|
||||
<%= @fetprofile.nachname %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Short:</b>
|
||||
<%= @fetprofile.short %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Fetmailalias:</b>
|
||||
<%= @fetprofile.fetmailalias %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Desc:</b>
|
||||
<%= @fetprofile.desc %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Picture:</b>
|
||||
<%= @fetprofile.picture %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Active:</b>
|
||||
<%= @fetprofile.active %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_fetprofile_path(@fetprofile) %> |
|
||||
<%= link_to 'Back', fetprofiles_path %>
|
||||
12
app/views/fetzneditions/_form.html.erb
Normal file
12
app/views/fetzneditions/_form.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<%= semantic_form_for @fetznedition do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :title %>
|
||||
<%= f.input :desc %>
|
||||
<%= f.input :datum %>
|
||||
<%= f.input :datei %>
|
||||
<% end %>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
6
app/views/fetzneditions/edit.html.erb
Normal file
6
app/views/fetzneditions/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing fetznedition</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @fetznedition %> |
|
||||
<%= link_to 'Back', fetzneditions_path %>
|
||||
29
app/views/fetzneditions/index.html.erb
Normal file
29
app/views/fetzneditions/index.html.erb
Normal file
@@ -0,0 +1,29 @@
|
||||
<h1>Listing fetzneditions</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Desc</th>
|
||||
<th>Datum</th>
|
||||
<th>Datei</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @fetzneditions.each do |fetznedition| %>
|
||||
<tr>
|
||||
<td><%= fetznedition.title %></td>
|
||||
<td><%= fetznedition.desc %></td>
|
||||
<td><%= fetznedition.datum %></td>
|
||||
<td><%= fetznedition.datei %></td>
|
||||
<td><%= link_to 'Show', fetznedition %></td>
|
||||
<td><%= link_to 'Edit', edit_fetznedition_path(fetznedition) %></td>
|
||||
<td><%= link_to 'Destroy', fetznedition, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New Fetznedition', new_fetznedition_path %>
|
||||
5
app/views/fetzneditions/new.html.erb
Normal file
5
app/views/fetzneditions/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New fetznedition</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', fetzneditions_path %>
|
||||
25
app/views/fetzneditions/show.html.erb
Normal file
25
app/views/fetzneditions/show.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<b>Title:</b>
|
||||
<%= @fetznedition.title %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Desc:</b>
|
||||
<%= @fetznedition.desc %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Datum:</b>
|
||||
<%= @fetznedition.datum %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Datei:</b>
|
||||
<%= @fetznedition.datei %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_fetznedition_path(@fetznedition) %> |
|
||||
<%= link_to 'Back', fetzneditions_path %>
|
||||
12
app/views/fotos/_form.html.erb
Normal file
12
app/views/fotos/_form.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<%= semantic_form_for @foto do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :title %>
|
||||
<%= f.input :desc %>
|
||||
<%= f.input :gallery_id %>
|
||||
<%= f.input :datei %>
|
||||
<% end %>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
6
app/views/fotos/edit.html.erb
Normal file
6
app/views/fotos/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing foto</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @foto %> |
|
||||
<%= link_to 'Back', fotos_path %>
|
||||
29
app/views/fotos/index.html.erb
Normal file
29
app/views/fotos/index.html.erb
Normal file
@@ -0,0 +1,29 @@
|
||||
<h1>Listing fotos</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Desc</th>
|
||||
<th>Gallery</th>
|
||||
<th>Datei</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @fotos.each do |foto| %>
|
||||
<tr>
|
||||
<td><%= foto.title %></td>
|
||||
<td><%= foto.desc %></td>
|
||||
<td><%= foto.gallery_id %></td>
|
||||
<td><%= foto.datei %></td>
|
||||
<td><%= link_to 'Show', foto %></td>
|
||||
<td><%= link_to 'Edit', edit_foto_path(foto) %></td>
|
||||
<td><%= link_to 'Destroy', foto, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New Foto', new_foto_path %>
|
||||
5
app/views/fotos/new.html.erb
Normal file
5
app/views/fotos/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New foto</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', fotos_path %>
|
||||
25
app/views/fotos/show.html.erb
Normal file
25
app/views/fotos/show.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<b>Title:</b>
|
||||
<%= @foto.title %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Desc:</b>
|
||||
<%= @foto.desc %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Gallery:</b>
|
||||
<%= @foto.gallery_id %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Datei:</b>
|
||||
<%= @foto.datei %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_foto_path(@foto) %> |
|
||||
<%= link_to 'Back', fotos_path %>
|
||||
11
app/views/galleries/_form.html.erb
Normal file
11
app/views/galleries/_form.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
<%= semantic_form_for @gallery do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :desc %>
|
||||
<%= f.input :datum %>
|
||||
<% end %>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
6
app/views/galleries/edit.html.erb
Normal file
6
app/views/galleries/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing gallery</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @gallery %> |
|
||||
<%= link_to 'Back', galleries_path %>
|
||||
27
app/views/galleries/index.html.erb
Normal file
27
app/views/galleries/index.html.erb
Normal file
@@ -0,0 +1,27 @@
|
||||
<h1>Listing galleries</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Desc</th>
|
||||
<th>Datum</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @galleries.each do |gallery| %>
|
||||
<tr>
|
||||
<td><%= gallery.name %></td>
|
||||
<td><%= gallery.desc %></td>
|
||||
<td><%= gallery.datum %></td>
|
||||
<td><%= link_to 'Show', gallery %></td>
|
||||
<td><%= link_to 'Edit', edit_gallery_path(gallery) %></td>
|
||||
<td><%= link_to 'Destroy', gallery, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New Gallery', new_gallery_path %>
|
||||
5
app/views/galleries/new.html.erb
Normal file
5
app/views/galleries/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New gallery</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', galleries_path %>
|
||||
20
app/views/galleries/show.html.erb
Normal file
20
app/views/galleries/show.html.erb
Normal file
@@ -0,0 +1,20 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<b>Name:</b>
|
||||
<%= @gallery.name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Desc:</b>
|
||||
<%= @gallery.desc %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Datum:</b>
|
||||
<%= @gallery.datum %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_gallery_path(@gallery) %> |
|
||||
<%= link_to 'Back', galleries_path %>
|
||||
11
app/views/gremien/_form.html.erb
Normal file
11
app/views/gremien/_form.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
<%= semantic_form_for @gremium do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :desc %>
|
||||
<%= f.input :typ %>
|
||||
<% end %>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
6
app/views/gremien/edit.html.erb
Normal file
6
app/views/gremien/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing gremium</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @gremium %> |
|
||||
<%= link_to 'Back', gremien_path %>
|
||||
27
app/views/gremien/index.html.erb
Normal file
27
app/views/gremien/index.html.erb
Normal file
@@ -0,0 +1,27 @@
|
||||
<h1>Listing gremien</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Desc</th>
|
||||
<th>Typ</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @gremien.each do |gremium| %>
|
||||
<tr>
|
||||
<td><%= gremium.name %></td>
|
||||
<td><%= gremium.desc %></td>
|
||||
<td><%= gremium.typ %></td>
|
||||
<td><%= link_to 'Show', gremium %></td>
|
||||
<td><%= link_to 'Edit', edit_gremium_path(gremium) %></td>
|
||||
<td><%= link_to 'Destroy', gremium, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New Gremium', new_gremium_path %>
|
||||
5
app/views/gremien/new.html.erb
Normal file
5
app/views/gremien/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New gremium</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', gremien_path %>
|
||||
20
app/views/gremien/show.html.erb
Normal file
20
app/views/gremien/show.html.erb
Normal file
@@ -0,0 +1,20 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<b>Name:</b>
|
||||
<%= @gremium.name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Desc:</b>
|
||||
<%= @gremium.desc %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Typ:</b>
|
||||
<%= @gremium.typ %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_gremium_path(@gremium) %> |
|
||||
<%= link_to 'Back', gremien_path %>
|
||||
13
app/views/memberships/_form.html.erb
Normal file
13
app/views/memberships/_form.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<%= semantic_form_for @membership do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :fetprofile_id %>
|
||||
<%= f.input :gremium_id %>
|
||||
<%= f.input :start %>
|
||||
<%= f.input :stop %>
|
||||
<%= f.input :typ %>
|
||||
<% end %>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
6
app/views/memberships/edit.html.erb
Normal file
6
app/views/memberships/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing membership</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @membership %> |
|
||||
<%= link_to 'Back', memberships_path %>
|
||||
31
app/views/memberships/index.html.erb
Normal file
31
app/views/memberships/index.html.erb
Normal file
@@ -0,0 +1,31 @@
|
||||
<h1>Listing memberships</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Fetprofile</th>
|
||||
<th>Gremium</th>
|
||||
<th>Start</th>
|
||||
<th>Stop</th>
|
||||
<th>Typ</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @memberships.each do |membership| %>
|
||||
<tr>
|
||||
<td><%= membership.fetprofile_id %></td>
|
||||
<td><%= membership.gremium_id %></td>
|
||||
<td><%= membership.start %></td>
|
||||
<td><%= membership.stop %></td>
|
||||
<td><%= membership.typ %></td>
|
||||
<td><%= link_to 'Show', membership %></td>
|
||||
<td><%= link_to 'Edit', edit_membership_path(membership) %></td>
|
||||
<td><%= link_to 'Destroy', membership, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New Membership', new_membership_path %>
|
||||
5
app/views/memberships/new.html.erb
Normal file
5
app/views/memberships/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New membership</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', memberships_path %>
|
||||
30
app/views/memberships/show.html.erb
Normal file
30
app/views/memberships/show.html.erb
Normal file
@@ -0,0 +1,30 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<b>Fetprofile:</b>
|
||||
<%= @membership.fetprofile_id %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Gremium:</b>
|
||||
<%= @membership.gremium_id %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Start:</b>
|
||||
<%= @membership.start %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Stop:</b>
|
||||
<%= @membership.stop %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Typ:</b>
|
||||
<%= @membership.typ %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_membership_path(@membership) %> |
|
||||
<%= link_to 'Back', memberships_path %>
|
||||
Reference in New Issue
Block a user