social_stream-events 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. data/GPL Affero license +663 -0
  2. data/Gemfile +9 -0
  3. data/README.rdoc +6 -0
  4. data/Rakefile +29 -0
  5. data/app/assets/images/btn/btn_certificate.png +0 -0
  6. data/app/assets/images/btn/btn_certificates.png +0 -0
  7. data/app/assets/images/btn/btn_edit.png +0 -0
  8. data/app/assets/images/btn/btn_embebed.png +0 -0
  9. data/app/assets/images/btn/btn_event.png +0 -0
  10. data/app/assets/images/btn/btn_outline.png +0 -0
  11. data/app/assets/images/btn/event.png +0 -0
  12. data/app/assets/images/btn/flyer.png +0 -0
  13. data/app/assets/images/btn/keynote.png +0 -0
  14. data/app/assets/images/btn/live.png +0 -0
  15. data/app/assets/images/btn/time.png +0 -0
  16. data/app/assets/images/btn/trash.png +0 -0
  17. data/app/assets/images/icons/IconsByGlyphish.txt +1 -0
  18. data/app/assets/images/icons/down.png +0 -0
  19. data/app/assets/images/icons/search.png +0 -0
  20. data/app/assets/images/icons/up.png +0 -0
  21. data/app/assets/images/logos/actor/event.png +0 -0
  22. data/app/assets/images/logos/contact/event.png +0 -0
  23. data/app/assets/images/logos/original/event.png +0 -0
  24. data/app/assets/images/logos/profile/event.png +0 -0
  25. data/app/assets/images/logos/representation/event.png +0 -0
  26. data/app/assets/images/tab_bottom.png +0 -0
  27. data/app/assets/javascripts/schedule.js +123 -0
  28. data/app/assets/javascripts/settings.js +20 -0
  29. data/app/assets/javascripts/social_stream-events.js +5 -0
  30. data/app/assets/stylesheets/activities.css +4 -0
  31. data/app/assets/stylesheets/fullcalendar.css +621 -0
  32. data/app/assets/stylesheets/fullcalendar.print.css +61 -0
  33. data/app/assets/stylesheets/settings.css +4 -0
  34. data/app/assets/stylesheets/social_stream-events.css +262 -0
  35. data/app/assets/stylesheets/tie.css +4 -0
  36. data/app/assets/stylesheets/users.css +4 -0
  37. data/app/controllers/activities_controller.rb +42 -0
  38. data/app/controllers/agendas_controller.rb +54 -0
  39. data/app/controllers/calendar_events_controller.rb +157 -0
  40. data/app/controllers/events_controller.rb +85 -0
  41. data/app/controllers/sessions_controller.rb +133 -0
  42. data/app/controllers/settings_controller.rb +70 -0
  43. data/app/helpers/event_helper.rb +12 -0
  44. data/app/models/agenda.rb +55 -0
  45. data/app/models/calendar_event.rb +191 -0
  46. data/app/models/calendar_event_series.rb +126 -0
  47. data/app/models/event.rb +131 -0
  48. data/app/models/session.rb +22 -0
  49. data/app/views/activities/_activity.html.erb +5 -0
  50. data/app/views/activities/_child.html.erb +18 -0
  51. data/app/views/activities/_comments.html.erb +3 -0
  52. data/app/views/activities/_index.html.erb +95 -0
  53. data/app/views/activities/_new.html.erb +29 -0
  54. data/app/views/activities/_options.html.erb +15 -0
  55. data/app/views/activities/_root.html.erb +37 -0
  56. data/app/views/activities/_wall.html.erb +5 -0
  57. data/app/views/activities/_walls.html.erb +34 -0
  58. data/app/views/activities/documents.js.erb +1 -0
  59. data/app/views/activities/index.js.erb +1 -0
  60. data/app/views/agendas/_agenda.html.erb +1 -0
  61. data/app/views/agendas/_edit.html.erb +136 -0
  62. data/app/views/agendas/_schedule.html.erb +19 -0
  63. data/app/views/agendas/_show.html.erb +81 -0
  64. data/app/views/agendas/_show_day.html.erb +6 -0
  65. data/app/views/agendas/edit.html.erb +24 -0
  66. data/app/views/agendas/event.html.erb +1 -0
  67. data/app/views/agendas/index.html.erb +0 -0
  68. data/app/views/agendas/show.html.erb +25 -0
  69. data/app/views/calendar_events/_calendar.html.erb +0 -0
  70. data/app/views/calendar_events/_edit_form.html.erb +58 -0
  71. data/app/views/calendar_events/_form.html.erb +65 -0
  72. data/app/views/calendar_events/available.html.erb +81 -0
  73. data/app/views/calendar_events/create.js.erb +18 -0
  74. data/app/views/calendar_events/edit.js.erb +1 -0
  75. data/app/views/calendar_events/index.html.erb +162 -0
  76. data/app/views/calendar_events/move.js.erb +0 -0
  77. data/app/views/calendar_events/new.js.erb +9 -0
  78. data/app/views/calendar_events/resize.js.erb +0 -0
  79. data/app/views/calendar_events/schedule.html.erb +143 -0
  80. data/app/views/documents/_mediawall.html.erb +111 -0
  81. data/app/views/events/_event.html.erb +10 -0
  82. data/app/views/events/_fields.html.erb +5 -0
  83. data/app/views/events/_form.html.erb +12 -0
  84. data/app/views/events/_jquery.html.erb +125 -0
  85. data/app/views/events/_manage.html.erb +35 -0
  86. data/app/views/events/_new.html.erb +2 -0
  87. data/app/views/events/_sessions_edit.html.erb +46 -0
  88. data/app/views/events/_sidebar_cloud.html.erb +27 -0
  89. data/app/views/events/_sidebar_index.html.erb +1 -0
  90. data/app/views/events/_sidebar_show.html.erb +5 -0
  91. data/app/views/events/agendas.html +1 -0
  92. data/app/views/events/edit.html.erb +12 -0
  93. data/app/views/events/index.html.erb +30 -0
  94. data/app/views/events/manage.html.erb +69 -0
  95. data/app/views/events/manage.js.erb +1 -0
  96. data/app/views/events/show.html.erb +34 -0
  97. data/app/views/kaminari/_first_page.html.erb +11 -0
  98. data/app/views/kaminari/_gap.html.erb +8 -0
  99. data/app/views/kaminari/_last_page.html.erb +11 -0
  100. data/app/views/kaminari/_next_page.html.erb +11 -0
  101. data/app/views/kaminari/_page.html.erb +12 -0
  102. data/app/views/kaminari/_paginator.html.erb +23 -0
  103. data/app/views/kaminari/_prev_page.html.erb +11 -0
  104. data/app/views/profiles/_outline.html.erb +81 -0
  105. data/app/views/profiles/_profile.html.erb +40 -0
  106. data/app/views/sessions/_form.html.erb +41 -0
  107. data/app/views/sessions/_new.html.erb +63 -0
  108. data/app/views/sessions/_session.html.erb +1 -0
  109. data/app/views/sessions/_show.html.erb +27 -0
  110. data/app/views/sessions/create.html.erb +3 -0
  111. data/app/views/sessions/create.js.erb +1 -0
  112. data/app/views/sessions/destroy.js.erb +2 -0
  113. data/app/views/sessions/edit.html.erb +27 -0
  114. data/app/views/sessions/index.html.erb +1 -0
  115. data/app/views/sessions/index.js.erb +1 -0
  116. data/app/views/sessions/new.html.erb +27 -0
  117. data/app/views/settings/_contacto.html.erb +24 -0
  118. data/app/views/settings/_header.html.erb +8 -0
  119. data/app/views/settings/_index.html.erb +16 -0
  120. data/app/views/settings/_manage.html.erb +25 -0
  121. data/app/views/settings/_settings.html.erb +49 -0
  122. data/app/views/settings/delete_relation.js.erb +3 -0
  123. data/app/views/settings/index.html.erb +38 -0
  124. data/app/views/settings/manage.html.erb +31 -0
  125. data/app/views/settings/show.html.erb +15 -0
  126. data/app/views/settings/update_relation.js.erb +1 -0
  127. data/app/views/toolbar/_home.html.erb +11 -0
  128. data/app/views/toolbar/_logo.html.erb +23 -0
  129. data/app/views/toolbar/_organizer.html.erb +25 -0
  130. data/app/views/toolbar/_profile.html.erb +21 -0
  131. data/app/views/toolbar/_sponsor.html.erb +18 -0
  132. data/app/views/toolbar/_suscribed.html.erb +17 -0
  133. data/app/views/users/_index.html.erb +33 -0
  134. data/app/views/users/index.html.erb +46 -0
  135. data/config/locales/en.yml +97 -0
  136. data/config/routes.rb +46 -0
  137. data/db/20110615143707_create_social_stream_events.rb +54 -0
  138. data/lib/generators/social_stream/events/install_generator.rb +24 -0
  139. data/lib/social_stream-events.rb +15 -0
  140. data/lib/social_stream/events/engine.rb +8 -0
  141. data/lib/social_stream/migrations/events.rb +25 -0
  142. data/social_stream-events.gemspec +22 -0
  143. data/vendor/assets/javascripts/fullcalendar.js +5208 -0
  144. data/vendor/assets/javascripts/gcal.js +112 -0
  145. metadata +272 -0
@@ -0,0 +1,37 @@
1
+ <%= div_for activity, :class => 'super_activity' do %>
2
+
3
+ <div class="actor_logo">
4
+ <%= link_to image_tag(activity.sender_subject.logo.url(:actor),
5
+ :alt => activity.sender_subject.name),
6
+ activity.sender_subject %>
7
+ </div>
8
+
9
+ <div class="activity_content">
10
+
11
+ <div class="actor_name">
12
+ <%= activity.title(self)%>
13
+ </div>
14
+
15
+ <div class="activity_objects">
16
+ <%= render activity.activity_objects %>
17
+ </div>
18
+
19
+ <%= render :partial => 'activities/options',
20
+ :locals => { :activity => activity } %>
21
+
22
+ <%= render :partial => 'activities/comments',
23
+ :locals => { :activity => activity } %>
24
+
25
+ <%= render :partial => 'comments/new',
26
+ :locals => { :activity => activity } %>
27
+
28
+ </div>
29
+
30
+ <div class="space_activities">
31
+ <% if activity.activity_objects.count > 1 %>
32
+ <div class="space_sub"></div>
33
+ <%else %>
34
+ <div class="#"></div>
35
+ <%end%>
36
+ </div>
37
+ <% end %>
@@ -0,0 +1,5 @@
1
+ <div id="wall">
2
+ <%= render activities %>
3
+ <%= paginate activities %>
4
+ </div>
5
+
@@ -0,0 +1,34 @@
1
+ <% content_for :javascript do %>
2
+ $("#tabs").tabs({
3
+ ajaxOptions: {
4
+ dataType: "script",
5
+ success: function(data) { eval(data); }
6
+ }
7
+ });
8
+ <% end %>
9
+
10
+ <div id="tabs" class="block">
11
+ <ul class="activity_tabs">
12
+ <li><%= link_to "<span>#{ h truncate_name owner.name }</span>".html_safe, "#wall-profile" %></li>
13
+
14
+ <% owner.relation_customs.sort.each do |r| %>
15
+ <li><%= link_to "<span>#{ h r.name }</span>".html_safe,
16
+ polymorphic_path([ owner, Activity.new ], :section => r.id, :wall => true),
17
+ :title => "wall-#{ r.id }" %></li>
18
+ <% end %>
19
+ </ul>
20
+
21
+ <div id="wall-profile">
22
+ <%= render :partial => 'activities/index',
23
+ :locals => { :owner => owner,
24
+ :activities => owner.wall(:profile,
25
+ :for => current_subject).
26
+ page(params[:page]) } %>
27
+ </div>
28
+
29
+ <% owner.relation_customs.sort.each do |r| %>
30
+ <div id="wall-<%= r.id %>"></div>
31
+ <% end %>
32
+ </div>
33
+
34
+
@@ -0,0 +1 @@
1
+ $('#wall').html("<%= escape_javascript render(:partial => 'wall', :locals => { :owner => parent, :activities => @activities }) %>");
@@ -0,0 +1 @@
1
+ $('#wall-<%= params[:section] || "profile" %>').html("<%= escape_javascript render(:partial => 'index', :locals => { :owner => parent, :activities => @activities }) %>");
@@ -0,0 +1 @@
1
+ Ha creado una agenda
@@ -0,0 +1,136 @@
1
+ <% content_for :headers do %>
2
+ <%= javascript_include_tag 'fullcalendar' %>
3
+ <%= stylesheet_link_tag 'fullcalendar' %>
4
+ <% end -%>
5
+ <% receiver = current_subject%>
6
+
7
+ <% content_for :javascript do %>
8
+ $(document).ready(function(){
9
+ $('#calendar').fullCalendar({
10
+ firstDay: 1,
11
+ axisFormat: 'HH:mm G\'M\'\'T\' <%= escape_javascript(Time.zone.formatted_offset) %>',
12
+ ignoreTimezone: true,
13
+ allowCalEventOverlap: false,
14
+ selectable: true,
15
+ selectHelper: true,
16
+ select: function(start, end, allDay) {
17
+ if (dateAvailable(start, end, allDay)) {
18
+ var title = prompt('Event Title:');
19
+ if (title != "" && title != null) {
20
+ $('#calendar').fullCalendar('renderEvent', {
21
+ title: title,
22
+ start: start,
23
+ end: end,
24
+ editable: true,
25
+ allDay: allDay
26
+ }, false
27
+ );
28
+ session=createSessionEvent(title, start, end, '<%= @event.id%>','<%=current_subject.contact_to!(receiver).id %>');
29
+ $('#calendar').fullCalendar('refetchEvents');
30
+ }
31
+ }
32
+ $('#calendar').fullCalendar('unselect');
33
+ },
34
+ header: {
35
+ left: 'month,agendaWeek,agendaDay',
36
+ center: 'title',
37
+ right: 'prev,next today',
38
+
39
+ },
40
+ defaultView: 'agendaWeek',
41
+ height: 500,
42
+ columnFormat: {
43
+ month: 'ddd',
44
+ week: 'ddd d/M',
45
+ day: 'dddd d/M'
46
+ },
47
+ slotMinutes: 30,
48
+ loading: function(bool){
49
+ if (bool)
50
+ //$('#loading').show();
51
+ $('#loading').hide();
52
+ else
53
+ $('#loading').hide();
54
+ },
55
+
56
+ editable: true,
57
+ timeFormat: 'HH:mm t{ - HH:mm t} ',
58
+ dragOpacity: "0.5",
59
+ eventDrop: function(session, dayDelta, minuteDelta, allDay, revertFunc){
60
+ moveSession(session, dayDelta, minuteDelta, allDay);
61
+ },
62
+
63
+ eventResize: function(session, dayDelta, minuteDelta, revertFunc){
64
+ resizeEvent(session, dayDelta, minuteDelta);
65
+ },
66
+
67
+ eventSources: [
68
+ function(start, end, callback) {
69
+ $.ajax({
70
+ url: "/events/<%= params[:id]%>/agenda/get_sessions",
71
+ dataType: 'json',
72
+ data: {
73
+ start: Math.round(start.getTime() / 1000),
74
+ end: Math.round(end.getTime() / 1000)
75
+
76
+ },
77
+ success: function(events) {
78
+ callback(events);
79
+ }
80
+ });
81
+ }
82
+ ],
83
+
84
+ eventClick: function(session, jsEvent, view){
85
+ if (session.editable) {
86
+ showSessionDetails(session);
87
+ }else {
88
+ showSessionDescription(session);
89
+ }
90
+ }
91
+ });
92
+ });
93
+
94
+ <% end %>
95
+
96
+ <div class="space_center"></div>
97
+ <h3> &nbsp; <%= t('Outline') +' '+ t('preposition.and')+' '+t('session.other') %></h3>
98
+ <div class="space_center"></div>
99
+
100
+
101
+ <div id="fc-btn-agenda">
102
+ <td class="fc-header-left">
103
+ <span class="fc-state-default">
104
+ <span class="fc-button-inner">
105
+ <span class="fc-button-content"><%=link_to('Agenda',agenda_path(@event))%></span>
106
+ </span>
107
+ </span>
108
+ </td>
109
+ </div>
110
+
111
+
112
+ <div class="space_center"></div>
113
+
114
+
115
+ <div>
116
+ <div id='calendar'></div>
117
+ </div>
118
+
119
+ <div id = "desc_dialog" style ="display:none;">
120
+ <div id = "event_desc"></div>
121
+ <br/>
122
+ <br/>
123
+ <div id = "event_actions">
124
+ <span id = "edit_event"></span>
125
+ <span id = "delete_event"></span>
126
+ </div>
127
+ </div>
128
+ <div id = "create_event_dialog" style ="display:none;">
129
+ <div id = "create_event">
130
+ </div>
131
+ </div>
132
+
133
+ <div class="space_center"></div>
134
+ <div class="space_center"></div>
135
+ <div class="space_center"></div>
136
+ <div class="space_center"></div>
@@ -0,0 +1,19 @@
1
+ <div class="block row schedule">
2
+ <div class="session_wrapper1">
3
+ <div class="event_date_image">
4
+ <div class="event_day"> <%= sanitize(@event.start_at.strftime("%d")) %> </div>
5
+ <div class="event_month"> <%= localize(@event.start_at, :format => "%b")%> </div>
6
+ </div>
7
+ </div>
8
+ <div class="session_wrapper2">
9
+ <div class="block header_text">
10
+ <h1><span class="header_title black"><%=@event.actor.name%></span></h1>
11
+ </div>
12
+
13
+ <div class="block session_content">
14
+ <span class="black"><%= t('when')%>: </span><%=@event.get_formatted_date%><br/>
15
+ <span class="black"><%= t('session.description').capitalize%>:</span><br/>
16
+ <%=@event.actor.profile.description %>
17
+ </div>
18
+ </div>
19
+ </div>
@@ -0,0 +1,81 @@
1
+ <% content_for :javascript do %>
2
+ $("#tabs").tabs({
3
+ ajaxOptions: {
4
+ dataType: "script",
5
+ success: function(data) { eval(data); }
6
+ }
7
+ });
8
+ <% end %>
9
+
10
+ <div class="space_center"></div>
11
+ <h3> &nbsp; <%= t('Outline') +' '+ t('preposition.and')+' '+t('session.other') %></h3>
12
+ <div class="space_center"></div>
13
+ <div class="space_center"></div>
14
+
15
+ <div id="calendar" >
16
+ <table style="width: 100%;" id="header-calendar" class="fc-header">
17
+ <tbody>
18
+ <tr>
19
+ <td class="fc-header-left">
20
+ <span class="fc-button fc-button-month fc-state-default fc-corner-left fc-state-active">
21
+ <span class="fc-button-inner">
22
+ <span class="fc-button-content">Agenda</span>
23
+ </span>
24
+ </span>
25
+ <span class="fc-button fc-button-month fc-state-default ">
26
+ <span class="fc-button-inner">
27
+ <span class="fc-button-content"><%=link_to('Month',edit_agenda_path(@event))%></span>
28
+ </span>
29
+ </span>
30
+ <span class="fc-button fc-button-agendaWeek fc-state-default ">
31
+ <span class="fc-button-inner">
32
+ <span class="fc-button-content"><%=link_to('Week',edit_agenda_path(@event))%></span>
33
+ </span>
34
+ </span>
35
+ <span class="fc-button fc-button-agendaDay fc-state-default fc-corner-right">
36
+ <span class="fc-button-inner">
37
+ <span class="fc-button-content"><%=link_to('Day',edit_agenda_path(@event))%></span>
38
+ </span>
39
+ </span>
40
+ </td>
41
+ <td class="fc-header-right">
42
+ <div class="block">
43
+ <div class="right-0">
44
+ <button class="button" onclick="window.location.href='/sessions/<%=@event.id%>/new';">
45
+ <%=t('session.new')%>
46
+ </button>
47
+ </div>
48
+ </div>
49
+
50
+ <div class="form_row space_center">
51
+
52
+
53
+ </div>
54
+ </td>
55
+ </tr>
56
+ </tbody>
57
+ </table>
58
+ </div>
59
+
60
+ <%if !@event.agenda.nil? and !@event.agenda.start_date.nil? %>
61
+ <div id ="outline" class="block">
62
+ <div id="tabs" class="widget content_size">
63
+ <ul>
64
+ <%for i in (1..@event.days)%>
65
+ <li><a href="#date<%=i%>"><%=(@event.start_at+(i-1).day).strftime("%A %d %b")%></a></li>
66
+ <%end%>
67
+ </ul>
68
+
69
+ <%for i in (1..@event.days)%>
70
+ <div id="date<%=i%>">
71
+ <%=render :partial=> "agendas/show_day", :locals => {:day=>i}%>
72
+ </div>
73
+ <%end%>
74
+ </div>
75
+ </div>
76
+ <%else%>
77
+ <div class="block " >
78
+ <div class="message">No existen sessiones programadas</div>
79
+ </div>
80
+ <%end%>
81
+
@@ -0,0 +1,6 @@
1
+ <%sessions = @event.agenda.contents_for_day(day)%>
2
+ <div class="space_center"></div>
3
+ <%for session in sessions%>
4
+ <%=render :partial =>"sessions/show", :locals =>{:session => session, :expanded => true, :day=>day}%>
5
+ <div class="space_center"></div>
6
+ <%end%>
@@ -0,0 +1,24 @@
1
+ <% content_for :title do%>
2
+ <%= @event.name %>
3
+ <%end%>
4
+ <% if @event.profile.description? %>
5
+ <% content_for :description do %>
6
+ <%= @event.profile.description%>
7
+ <% end %>
8
+ <%end%>
9
+
10
+ <% content_for :keywords do %>
11
+ <%= @event.tag_list%>
12
+ <% end %>
13
+
14
+ <% content_for :sidebar do %>
15
+ <%= render :partial => 'users/sidebar_index' %>
16
+ <% end %>
17
+
18
+ <% toolbar :profile => @event %>
19
+
20
+
21
+ <%= location(link_to(image_tag("btn/btn_outline.png", :class => "menu_icon")+t('menu.outline'),
22
+ agenda_path(@event))) %>
23
+
24
+ <%= render :partial => "edit" %>
@@ -0,0 +1 @@
1
+ adsf agenda de eventoooo
File without changes
@@ -0,0 +1,25 @@
1
+ <% content_for :title do%>
2
+ <%= @event.name %>
3
+ <%end%>
4
+ <% if @event.profile.description? %>
5
+ <% content_for :description do %>
6
+ <%= @event.profile.description%>
7
+ <% end %>
8
+ <%end%>
9
+
10
+ <% content_for :keywords do %>
11
+ <%= @event.tag_list%>
12
+ <% end %>
13
+
14
+ <% content_for :sidebar do %>
15
+ <%= render :partial => 'users/sidebar_index' %>
16
+ <% end %>
17
+
18
+ <% toolbar :profile => @event %>
19
+
20
+
21
+ <%= location(link_to(image_tag("btn/btn_outline.png", :class => "menu_icon")+t('menu.outline'),
22
+ [@event, :profile])) %>
23
+
24
+
25
+ <%= render :partial => "show" %>
File without changes
@@ -0,0 +1,58 @@
1
+ <%remote_form_for @event, :url => {:action => :update} , :before => "$('#updating_events').show();", :complete => "$('#updating_events').hide();" do |f| %>
2
+ <p>
3
+ <%=f.label :title, "Titulo" %>
4
+ <br/>
5
+ <%=f.text_field :title %>
6
+ </p>
7
+ <p>
8
+ <%=f.label :description, "Descripcion" %>
9
+ <br/>
10
+ <%=f.text_area :description, :rows => 4, :cols => 30 %>
11
+ </p>
12
+ <p>
13
+ <%=f.label :starttime, 'Inicio' %>
14
+ <br/>
15
+ <%=f.datetime_select :starttime, :minute_step => 30 %>
16
+ </p>
17
+ <p>
18
+ <%=f.label :endtime, 'Fin' %>
19
+ <br/>
20
+ <%=f.datetime_select :endtime, :minute_step => 30 %>
21
+ </p>
22
+ <p>
23
+ <%=f.label :all_day, "Todo el día" %>
24
+ <%=f.check_box :all_day %>
25
+ </p>
26
+ <% #if @event.calendar_event_series
27
+ %>
28
+ <%period = (@event.calendar_event_series)?@event.calendar_event_series.period : nil -%>
29
+ <p>
30
+ <%=f.label :period, "Repetir" %>
31
+ <%=f.select :period, CalendarEvent::REPEATS,{:selected => period}, :onchange => "showPeriodAndFrequency(this.value);" %>
32
+ </p>
33
+ <%frequency = (@event.calendar_event_series)?@event.calendar_event_series.frequency : nil -%>
34
+ <p id = "frequency" style = "display:<%(period)? '' : 'none'%>;">
35
+ <%=f.label :frequency, "Repetir cada" %>
36
+ <%=f.select :frequency, (1..30).to_a, {:selected => frequency} %> <span id = "period"></span>
37
+ </p>
38
+ <p>
39
+ <%=f.label :starttime, 'Repetir hasta' %>
40
+ <br/>
41
+ <%= select_date Date.current, :prefix => :repeat_until, :order => [:year, :month, :day] %>
42
+ </p>
43
+ <% #end
44
+ %>
45
+ <%=f.hidden_field :id, :value => @event.id%>
46
+ <%=f.hidden_field :commit_button, :value => ""%>
47
+ <p>
48
+ <%if @event.calendar_event_series -%>
49
+ <%=f.submit 'Actualizar solo esta instancia', :onclick => "document.getElementById('calendar_event_commit_button').value = this.value"%>
50
+ <%=f.submit 'Actualizar todas las instancias', :onclick => "document.getElementById('calendar_event_commit_button').value = this.value"%>
51
+ <%=f.submit 'Actualizar todas las instancias siguientes', :onclick => "document.getElementById('calendar_event_commit_button').value = this.value"%>
52
+ <%else-%>
53
+ <%=f.submit 'Guardar', :onclick => "document.getElementById('calendar_event_commit_button').value = this.value"%>
54
+ <%end-%>
55
+
56
+ <span id = "updating_events" style = "display:none;">Updating, Please wait...</span>
57
+ </p>
58
+ <%end %>