forked from bofh/fetsite
Date-String Input angelegt
This commit is contained in:
6
app/inputs/date_string_input.rb
Normal file
6
app/inputs/date_string_input.rb
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
class DateStringInput < FormtasticBootstrap::Inputs::StringInput
|
||||||
|
def input_html_options
|
||||||
|
super.merge(:class => "datetext", :onclick =>"beep", :value=>I18n.l(@object.send(method.to_sym)))
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<%= semantic_form_for @calentry do |f| %>
|
<%= semantic_form_for @calentry do |f| %>
|
||||||
<%= f.inputs do %>
|
<%= f.inputs do %>
|
||||||
<%= f.input :start %>
|
<%= f.input :start , :as => :date_string %>
|
||||||
<%= f.input :ende %>
|
<%= f.input :ende %>
|
||||||
<%= f.input :summary %>
|
<%= f.input :summary %>
|
||||||
<%= f.input :calendar, :as=> :radio %>
|
<%= f.input :calendar, :as=> :radio %>
|
||||||
|
|||||||
Reference in New Issue
Block a user