diff --git a/app/controllers/calentries_controller.rb b/app/controllers/calentries_controller.rb index 6b488e1..7bb1c07 100644 --- a/app/controllers/calentries_controller.rb +++ b/app/controllers/calentries_controller.rb @@ -35,10 +35,12 @@ class CalentriesController < ApplicationController # end # GET /calentries/1/edit - #def edit - # @calentry = Calentry.find(params[:id]) - - # end + def edit + @calentry = Calentry.find(params[:id]) + respond_to do |format| + format.html + end + end # POST /calentries # POST /calentries.json diff --git a/app/views/beispiele/_form.html.erb b/app/views/beispiele/_form.html.erb index fd92b3f..ce71e97 100755 --- a/app/views/beispiele/_form.html.erb +++ b/app/views/beispiele/_form.html.erb @@ -1,41 +1,35 @@ <%= semantic_form_for @beispiel, :html => { :multipart => true } do |f| %> -<%= f.inputs do %> -
- <%= f.file_field :beispieldatei, :label=>"Beispiel"%> + <%= f.file_field :beispieldatei, :label=>"Beispiel"%>
- <%=f.input :datum%> - -
- + <%=f.input :datum , :as => :datetimepicker %> + +
+
<%= f.input :name %> - + <%= f.input :desc %>
<%= f.hidden_field :beispieldatei_cache %> - -
-
- <%= f.input :lva, :as=>:radio, :collection => Lva.all %> -
- - - - - - -<% end %> - <%= f.actions do %> <%= f.action :submit, :as => :input %> <% end %> + +
+ <%= f.input :lva, :as=>:radio, :collection => Lva.all %> +
+ + + + + <% end %> diff --git a/app/views/calentries/_calentry.html.erb b/app/views/calentries/_calentry.html.erb index a187212..94e45e5 100644 --- a/app/views/calentries/_calentry.html.erb +++ b/app/views/calentries/_calentry.html.erb @@ -1,4 +1,4 @@ -
+
<% image_tag("/iconnavy/time.png") %> <%= fa_icon("calendar 2x") %> @@ -9,5 +9,5 @@ format =:default end%> <%= calentry.text %> - +<%= link_to "edit", edit_calentry_path(calentry) if can? :edit, calentry %>