Sha256: a168a97a05082790a9bb14d259eb9d3228e7cf987e99919e21f0dfe6e397bfe0

Contents?: true

Size: 1.88 KB

Versions: 8

Compression:

Stored size: 1.88 KB

Contents

<% #remote_form_for @event, :url => {:action => :create}, :before => "$('#creating_events').show();", :complete => "$('#creating_events').hide();" do |f| 
%>
<% remote_form_for @event, :url => {:action => :create}, :complete => "$('#create_event_dialog').dialog('destroy');" do |f| %>

<!--
<p>
  <%=f.label :title %>
  <br/>
  <%=f.text_field :title %>
</p>
-->
<%=f.hidden_field :title, :value => "No disponible" %>
<!--
<p>
  <%=f.label :description %>
  <br/>
  <%=f.text_area :description, :rows => 4, :cols => 30 %>
</p>
-->
<%=f.hidden_field :description, :value => "No disponible" %>
<p>
  <%=f.label :starttime, 'Inicio' %>
  <br/>
  <%=f.datetime_select :starttime, :minute_step => 30 %>
</p>
<p>
  <%=f.label :endtime, 'Fin' %>
  <br/>
  <%=f.datetime_select :endtime, :minute_step => 30 %>
</p>
<p>
  <%=f.label :all_day, "Todo el día" %>
  <%=f.check_box :all_day %>
</p>
<p>
  <%=f.label :period, "Repetir" %>
  <%=f.select :period, CalendarEvent::REPEATS,{}, :onchange => "showPeriodAndFrequency(this.value);" %>
</p>
<div id = "frequency" style = "display:none;">
<p>
  <%=f.label :frequency, "Repetir cada" %>
  <%=f.select :frequency, (1..30).to_a %> <span id = "period"></span>
</p>
<p>
  <%=f.label :starttime, 'Repetir hasta' %>
  <%=check_box_tag :repeat, 1, false, :onchange => "showRepeatUntil(this.checked);" %>
  <span id="repeat_until" style = "display:none;">
  <%= select_date nil, {:prefix => :repeat_until, :include_blank => true}, :order => [:year, :month, :day] %>
  </span>  
</p>
</div>
<!--
<p>
  <%=f.label :starttime, 'Repetir hasta' %>
  <br/>
  <%= select_date Date.current, :prefix => :repeat_until, :order => [:year, :month, :day] %>
</p>
-->

<%=f.hidden_field :object_id, :value => @room.id %>
<%=f.hidden_field :object_type, :value => 'Room' %>
<p>
  <%=f.submit 'Agregar' %> <span id = "creating_events" style = "display:none;">Agregando, espere por favor...</span>
</p>
<%end %>

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
social_stream-0.9.7 events/app/views/calendar_events/_form.html.erb
social_stream-0.9.6 events/app/views/calendar_events/_form.html.erb
social_stream-0.9.5 events/app/views/calendar_events/_form.html.erb
social_stream-0.9.4 events/app/views/calendar_events/_form.html.erb
social_stream-0.9.3 events/app/views/calendar_events/_form.html.erb
social_stream-0.9.2 events/app/views/calendar_events/_form.html.erb
social_stream-events-0.0.2 app/views/calendar_events/_form.html.erb
social_stream-events-0.0.1 app/views/calendar_events/_form.html.erb