forked from bofh/fetsite
added some transations to thema
This commit is contained in:
@@ -56,9 +56,11 @@ class ThemenController < ApplicationController
|
|||||||
if @thema.save
|
if @thema.save
|
||||||
format.html { redirect_to @thema, notice: 'Thema was successfully created.' }
|
format.html { redirect_to @thema, notice: 'Thema was successfully created.' }
|
||||||
format.json { render json: @thema, status: :created, location: @thema }
|
format.json { render json: @thema, status: :created, location: @thema }
|
||||||
|
format.js {render action: "update"}
|
||||||
else
|
else
|
||||||
format.html { render action: "new" }
|
format.html { render action: "new" }
|
||||||
format.json { render json: @thema.errors, status: :unprocessable_entity }
|
format.json { render json: @thema.errors, status: :unprocessable_entity }
|
||||||
|
format.js { render action: "edit" }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<h1>New thema</h1>
|
|
||||||
|
|
||||||
|
<div id="themaview">
|
||||||
|
<h1><%= I18n.t("thema.add") %></h1>
|
||||||
<%= render 'form' %>
|
<%= render 'form' %>
|
||||||
|
</div>
|
||||||
<%= link_to 'Back', themen_path %>
|
<%= link_to 'Back', themen_path %>
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ de:
|
|||||||
mitarbeiter: "Mitarbeiter"
|
mitarbeiter: "Mitarbeiter"
|
||||||
fotos: "Fotos"
|
fotos: "Fotos"
|
||||||
search: "Suche"
|
search: "Suche"
|
||||||
|
|
||||||
formtastic:
|
formtastic:
|
||||||
titles:
|
titles:
|
||||||
modul:
|
modul:
|
||||||
|
|||||||
@@ -18,4 +18,19 @@ de:
|
|||||||
sure: "Sicher, dass Sie diese Frage löschen möchten?"
|
sure: "Sicher, dass Sie diese Frage löschen möchten?"
|
||||||
attachment:
|
attachment:
|
||||||
title: "Anhang"
|
title: "Anhang"
|
||||||
add: "Anhang hinzufügen"
|
add: "Anhang hinzufügen"
|
||||||
|
formtastic:
|
||||||
|
labels:
|
||||||
|
thema:
|
||||||
|
title: "Themen Name"
|
||||||
|
themengruppe: "Gruppe"
|
||||||
|
hints:
|
||||||
|
thema:
|
||||||
|
title: "Überschrift"
|
||||||
|
activerecord:
|
||||||
|
errors:
|
||||||
|
models:
|
||||||
|
thema:
|
||||||
|
attributes:
|
||||||
|
title:
|
||||||
|
blank: "Der Themen Name darf nicht leer sein!"
|
||||||
|
|||||||
Reference in New Issue
Block a user