From 065389dfa4575c3c3ad51ce3f0be329c40cc6f7a Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Sun, 25 Aug 2013 20:07:57 +0200 Subject: [PATCH 1/6] datepicker --- app/inputs/datepicker_input.rb | 6 ++++++ app/views/calentries/_form.html.erb | 5 +++-- app/views/neuigkeiten/_form.html.erb | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 app/inputs/datepicker_input.rb diff --git a/app/inputs/datepicker_input.rb b/app/inputs/datepicker_input.rb new file mode 100644 index 0000000..e91e71c --- /dev/null +++ b/app/inputs/datepicker_input.rb @@ -0,0 +1,6 @@ +class DatepickerInput < FormtasticBootstrap::Inputs::StringInput + def input_html_options + super.merge(:class => "datepicker") + end + +end diff --git a/app/views/calentries/_form.html.erb b/app/views/calentries/_form.html.erb index eb9bb02..f82c63b 100644 --- a/app/views/calentries/_form.html.erb +++ b/app/views/calentries/_form.html.erb @@ -6,7 +6,7 @@ <%= f.input :start , :as => :date_string %>
- <%= f.input :ende , :as => :date_string %> + <%= f.input :ende , :as => :datepicker %>
@@ -23,7 +23,7 @@
<% end %> -
+
<%= f.actions do %> <%= f.action :submit, :as => :input %> @@ -32,3 +32,4 @@
<% end %>
+ diff --git a/app/views/neuigkeiten/_form.html.erb b/app/views/neuigkeiten/_form.html.erb index 347cfdd..2c91a2e 100755 --- a/app/views/neuigkeiten/_form.html.erb +++ b/app/views/neuigkeiten/_form.html.erb @@ -3,7 +3,7 @@ <%= f.inputs do %> <%= f.input :title, :placeholder=>"Titel" %> <%= f.input :text, :as=>:tinymce_text %> - <% f.input :datum %> + <% f.input :datum, :as=>:datepicker %> <%= f.input :rubrik, :as=>:radio, :collection=>Rubrik.all %> <%= f.input :author, :as=>:radio %> <%= f.input :picture, :as=>:file %> @@ -13,4 +13,5 @@ <%= f.action :submit, :as => :input %> <% end %> <% end %> + <%= tinymce %> From 6dbbaf588b7d21d23990fe3d503d181b92d03672 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Sun, 25 Aug 2013 20:08:11 +0200 Subject: [PATCH 2/6] fetprofile order --- app/controllers/fetprofiles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/fetprofiles_controller.rb b/app/controllers/fetprofiles_controller.rb index 587182a..79242f4 100644 --- a/app/controllers/fetprofiles_controller.rb +++ b/app/controllers/fetprofiles_controller.rb @@ -3,7 +3,7 @@ class FetprofilesController < ApplicationController # GET /fetprofiles.json def index - @fetprofiles = Fetprofile.active + @fetprofiles = Fetprofile.active.order(:vorname,:nachname) @fetprofiles = Fetprofile.order(:vorname,:nachname) if params[:filter]== "all" @gremientabs=Gremium.order(:typ) respond_to do |format| From 5b316f8780b81886f735d18415abe5d51c54ec3d Mon Sep 17 00:00:00 2001 From: Thomas Blazek Date: Tue, 27 Aug 2013 00:32:53 +0200 Subject: [PATCH 3/6] css fuer gallery viewer --- app/assets/stylesheets/galleries.css.scss | 3 +++ app/views/galleries/show.html.erb | 6 +++++- config/omniauth_secrets.yml.example | 4 ---- 3 files changed, 8 insertions(+), 5 deletions(-) delete mode 100644 config/omniauth_secrets.yml.example diff --git a/app/assets/stylesheets/galleries.css.scss b/app/assets/stylesheets/galleries.css.scss index f88f6f2..0195ed2 100644 --- a/app/assets/stylesheets/galleries.css.scss +++ b/app/assets/stylesheets/galleries.css.scss @@ -1,3 +1,6 @@ // 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/ +modal.fade.in { + +} diff --git a/app/views/galleries/show.html.erb b/app/views/galleries/show.html.erb index 052f027..a5b9d10 100644 --- a/app/views/galleries/show.html.erb +++ b/app/views/galleries/show.html.erb @@ -16,7 +16,7 @@ <%= @gallery.datum %>

-