social_stream-events 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/GPL Affero license +663 -0
- data/Gemfile +9 -0
- data/README.rdoc +6 -0
- data/Rakefile +29 -0
- data/app/assets/images/btn/btn_certificate.png +0 -0
- data/app/assets/images/btn/btn_certificates.png +0 -0
- data/app/assets/images/btn/btn_edit.png +0 -0
- data/app/assets/images/btn/btn_embebed.png +0 -0
- data/app/assets/images/btn/btn_event.png +0 -0
- data/app/assets/images/btn/btn_outline.png +0 -0
- data/app/assets/images/btn/event.png +0 -0
- data/app/assets/images/btn/flyer.png +0 -0
- data/app/assets/images/btn/keynote.png +0 -0
- data/app/assets/images/btn/live.png +0 -0
- data/app/assets/images/btn/time.png +0 -0
- data/app/assets/images/btn/trash.png +0 -0
- data/app/assets/images/icons/IconsByGlyphish.txt +1 -0
- data/app/assets/images/icons/down.png +0 -0
- data/app/assets/images/icons/search.png +0 -0
- data/app/assets/images/icons/up.png +0 -0
- data/app/assets/images/logos/actor/event.png +0 -0
- data/app/assets/images/logos/contact/event.png +0 -0
- data/app/assets/images/logos/original/event.png +0 -0
- data/app/assets/images/logos/profile/event.png +0 -0
- data/app/assets/images/logos/representation/event.png +0 -0
- data/app/assets/images/tab_bottom.png +0 -0
- data/app/assets/javascripts/schedule.js +123 -0
- data/app/assets/javascripts/settings.js +20 -0
- data/app/assets/javascripts/social_stream-events.js +5 -0
- data/app/assets/stylesheets/activities.css +4 -0
- data/app/assets/stylesheets/fullcalendar.css +621 -0
- data/app/assets/stylesheets/fullcalendar.print.css +61 -0
- data/app/assets/stylesheets/settings.css +4 -0
- data/app/assets/stylesheets/social_stream-events.css +262 -0
- data/app/assets/stylesheets/tie.css +4 -0
- data/app/assets/stylesheets/users.css +4 -0
- data/app/controllers/activities_controller.rb +42 -0
- data/app/controllers/agendas_controller.rb +54 -0
- data/app/controllers/calendar_events_controller.rb +157 -0
- data/app/controllers/events_controller.rb +85 -0
- data/app/controllers/sessions_controller.rb +133 -0
- data/app/controllers/settings_controller.rb +70 -0
- data/app/helpers/event_helper.rb +12 -0
- data/app/models/agenda.rb +55 -0
- data/app/models/calendar_event.rb +191 -0
- data/app/models/calendar_event_series.rb +126 -0
- data/app/models/event.rb +131 -0
- data/app/models/session.rb +22 -0
- data/app/views/activities/_activity.html.erb +5 -0
- data/app/views/activities/_child.html.erb +18 -0
- data/app/views/activities/_comments.html.erb +3 -0
- data/app/views/activities/_index.html.erb +95 -0
- data/app/views/activities/_new.html.erb +29 -0
- data/app/views/activities/_options.html.erb +15 -0
- data/app/views/activities/_root.html.erb +37 -0
- data/app/views/activities/_wall.html.erb +5 -0
- data/app/views/activities/_walls.html.erb +34 -0
- data/app/views/activities/documents.js.erb +1 -0
- data/app/views/activities/index.js.erb +1 -0
- data/app/views/agendas/_agenda.html.erb +1 -0
- data/app/views/agendas/_edit.html.erb +136 -0
- data/app/views/agendas/_schedule.html.erb +19 -0
- data/app/views/agendas/_show.html.erb +81 -0
- data/app/views/agendas/_show_day.html.erb +6 -0
- data/app/views/agendas/edit.html.erb +24 -0
- data/app/views/agendas/event.html.erb +1 -0
- data/app/views/agendas/index.html.erb +0 -0
- data/app/views/agendas/show.html.erb +25 -0
- data/app/views/calendar_events/_calendar.html.erb +0 -0
- data/app/views/calendar_events/_edit_form.html.erb +58 -0
- data/app/views/calendar_events/_form.html.erb +65 -0
- data/app/views/calendar_events/available.html.erb +81 -0
- data/app/views/calendar_events/create.js.erb +18 -0
- data/app/views/calendar_events/edit.js.erb +1 -0
- data/app/views/calendar_events/index.html.erb +162 -0
- data/app/views/calendar_events/move.js.erb +0 -0
- data/app/views/calendar_events/new.js.erb +9 -0
- data/app/views/calendar_events/resize.js.erb +0 -0
- data/app/views/calendar_events/schedule.html.erb +143 -0
- data/app/views/documents/_mediawall.html.erb +111 -0
- data/app/views/events/_event.html.erb +10 -0
- data/app/views/events/_fields.html.erb +5 -0
- data/app/views/events/_form.html.erb +12 -0
- data/app/views/events/_jquery.html.erb +125 -0
- data/app/views/events/_manage.html.erb +35 -0
- data/app/views/events/_new.html.erb +2 -0
- data/app/views/events/_sessions_edit.html.erb +46 -0
- data/app/views/events/_sidebar_cloud.html.erb +27 -0
- data/app/views/events/_sidebar_index.html.erb +1 -0
- data/app/views/events/_sidebar_show.html.erb +5 -0
- data/app/views/events/agendas.html +1 -0
- data/app/views/events/edit.html.erb +12 -0
- data/app/views/events/index.html.erb +30 -0
- data/app/views/events/manage.html.erb +69 -0
- data/app/views/events/manage.js.erb +1 -0
- data/app/views/events/show.html.erb +34 -0
- data/app/views/kaminari/_first_page.html.erb +11 -0
- data/app/views/kaminari/_gap.html.erb +8 -0
- data/app/views/kaminari/_last_page.html.erb +11 -0
- data/app/views/kaminari/_next_page.html.erb +11 -0
- data/app/views/kaminari/_page.html.erb +12 -0
- data/app/views/kaminari/_paginator.html.erb +23 -0
- data/app/views/kaminari/_prev_page.html.erb +11 -0
- data/app/views/profiles/_outline.html.erb +81 -0
- data/app/views/profiles/_profile.html.erb +40 -0
- data/app/views/sessions/_form.html.erb +41 -0
- data/app/views/sessions/_new.html.erb +63 -0
- data/app/views/sessions/_session.html.erb +1 -0
- data/app/views/sessions/_show.html.erb +27 -0
- data/app/views/sessions/create.html.erb +3 -0
- data/app/views/sessions/create.js.erb +1 -0
- data/app/views/sessions/destroy.js.erb +2 -0
- data/app/views/sessions/edit.html.erb +27 -0
- data/app/views/sessions/index.html.erb +1 -0
- data/app/views/sessions/index.js.erb +1 -0
- data/app/views/sessions/new.html.erb +27 -0
- data/app/views/settings/_contacto.html.erb +24 -0
- data/app/views/settings/_header.html.erb +8 -0
- data/app/views/settings/_index.html.erb +16 -0
- data/app/views/settings/_manage.html.erb +25 -0
- data/app/views/settings/_settings.html.erb +49 -0
- data/app/views/settings/delete_relation.js.erb +3 -0
- data/app/views/settings/index.html.erb +38 -0
- data/app/views/settings/manage.html.erb +31 -0
- data/app/views/settings/show.html.erb +15 -0
- data/app/views/settings/update_relation.js.erb +1 -0
- data/app/views/toolbar/_home.html.erb +11 -0
- data/app/views/toolbar/_logo.html.erb +23 -0
- data/app/views/toolbar/_organizer.html.erb +25 -0
- data/app/views/toolbar/_profile.html.erb +21 -0
- data/app/views/toolbar/_sponsor.html.erb +18 -0
- data/app/views/toolbar/_suscribed.html.erb +17 -0
- data/app/views/users/_index.html.erb +33 -0
- data/app/views/users/index.html.erb +46 -0
- data/config/locales/en.yml +97 -0
- data/config/routes.rb +46 -0
- data/db/20110615143707_create_social_stream_events.rb +54 -0
- data/lib/generators/social_stream/events/install_generator.rb +24 -0
- data/lib/social_stream-events.rb +15 -0
- data/lib/social_stream/events/engine.rb +8 -0
- data/lib/social_stream/migrations/events.rb +25 -0
- data/social_stream-events.gemspec +22 -0
- data/vendor/assets/javascripts/fullcalendar.js +5208 -0
- data/vendor/assets/javascripts/gcal.js +112 -0
- metadata +272 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
<% content_for :title do%>
|
2
|
+
<%= t('event.other') %>
|
3
|
+
<%end%>
|
4
|
+
|
5
|
+
<% toolbar if user_signed_in? %>
|
6
|
+
|
7
|
+
<% content_for :sidebar do %>
|
8
|
+
<%= render :partial => "events/sidebar_cloud" %>
|
9
|
+
<% end %>
|
10
|
+
<%= location(image_tag("btn/btn_browse.png", :class=>"btn_config") + t('browse') +": "+
|
11
|
+
link_to(t('user.by'), users_path) + ", "+
|
12
|
+
link_to(t('group.by'), groups_path) + ", "+
|
13
|
+
content_tag(:b,content_tag(:span, t('event.all'), :id=>'name_group')))%>
|
14
|
+
|
15
|
+
<div class="space_center"></div>
|
16
|
+
<div class="space_center"></div>
|
17
|
+
<div class="space_center"></div>
|
18
|
+
<div class="space_center"></div>
|
19
|
+
|
20
|
+
<div id="my_conferences" class="block">
|
21
|
+
<div id="tab" class="widget content_size">
|
22
|
+
<ul class="tab">
|
23
|
+
<li>
|
24
|
+
<%= link_to t('event.all_n', :count => Event.count), :most => nil %>
|
25
|
+
</li>
|
26
|
+
<li>
|
27
|
+
<%= link_to t('event.live', :count => Event.count), {:most => nil,:live=> :live} %>
|
28
|
+
</li>
|
29
|
+
<li>
|
30
|
+
<%= link_to t('event.most.followed'), :most => :followed %>
|
31
|
+
</li>
|
32
|
+
<li>
|
33
|
+
<%= link_to t('event.most.liked'), :most=> :liked %>
|
34
|
+
</li>
|
35
|
+
</ul>
|
36
|
+
<div id="spaces" class="tab">
|
37
|
+
<div class="space_center"></div>
|
38
|
+
<div class="row">
|
39
|
+
<input type="text" value="Search by name" id="search_field" class="search_input" />
|
40
|
+
<%= image_tag("btn/search.png",:size=>"20x20",:id=>"search_button") %>
|
41
|
+
</div>
|
42
|
+
<div class="space_center"></div>
|
43
|
+
<div class="row">
|
44
|
+
<div class="center">
|
45
|
+
|
46
|
+
<% initials=nil
|
47
|
+
if (params[:live].nil?)
|
48
|
+
initials=Event.distinct_initials
|
49
|
+
else
|
50
|
+
initials=Event.live_events.distinct_initials
|
51
|
+
end %>
|
52
|
+
<% for g in initials %>
|
53
|
+
<%= link_to g.initial,{:letter => g.initial,:page => 1},:class => "user_letter_link" %>
|
54
|
+
<% end %>
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
<div class="space_center"></div>
|
58
|
+
<div id="list_users_ajax" class="tab_content">
|
59
|
+
<%= render :partial => "events/manage", :locals=>{:events=>@events}%>
|
60
|
+
</div>
|
61
|
+
<div class="space_center"></div>
|
62
|
+
</div>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
|
67
|
+
<br class="clearfloat" />
|
68
|
+
<div class="space_center">
|
69
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
$('#list_users_ajax').html("<%= escape_javascript(render :partial => "events/manage",:locals => { :events => @events }) %>");
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<% content_for :title do %>
|
2
|
+
<%= @event.name%>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<% if @event.profile.description? %>
|
6
|
+
<% content_for :description do %>
|
7
|
+
<%= @event.profile.description%>
|
8
|
+
<% end %>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<% content_for :keywords do %>
|
12
|
+
<%= @event.profile.subject.tag_list%>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<% content_for :sidebar do %>
|
16
|
+
<%= render :partial => 'sidebar_show' %>
|
17
|
+
<% end %>
|
18
|
+
|
19
|
+
<%= location(link_to(image_tag("btn/event.png", :class => "btn_config")+t('event.title')+": "+
|
20
|
+
content_tag(:span, ( truncate_name sanitize @event.name), :class=>"name_group")))%>
|
21
|
+
|
22
|
+
<% toolbar :profile => @event %>
|
23
|
+
<div class="space_center"></div>
|
24
|
+
|
25
|
+
<% if @event.subject.subject_type == 'Event' and @event.has_date? %>
|
26
|
+
<%= render :partial=> "agendas/schedule", :locals => {:event => @event} %>
|
27
|
+
<% else %>
|
28
|
+
<br class="clearfloat" />
|
29
|
+
<div class="space_center"></div>
|
30
|
+
<div class="space_center"></div>
|
31
|
+
<%end%>
|
32
|
+
|
33
|
+
<%= render :partial => 'activities/walls', :locals => { :owner => @event } %>
|
34
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%# Link to the "First" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the first page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
num_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<span class="first">
|
10
|
+
<%= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote %>
|
11
|
+
</span>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%# Non-link tag that stands for skipped pages...
|
2
|
+
- available local variables
|
3
|
+
current_page: a page object for the currently displayed page
|
4
|
+
num_pages: total number of pages
|
5
|
+
per_page: number of items to fetch per page
|
6
|
+
remote: data-remote
|
7
|
+
-%>
|
8
|
+
<span class="page gap"><%= raw(t 'views.pagination.truncate') %></span>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%# Link to the "Last" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the last page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
num_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<span class="last">
|
10
|
+
<%= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote} %>
|
11
|
+
</span>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%# Link to the "Next" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the next page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
num_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<span class="next">
|
10
|
+
<%= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote %>
|
11
|
+
</span>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%# Link showing page number
|
2
|
+
- available local variables
|
3
|
+
page: a page object for "this" page
|
4
|
+
url: url to this page
|
5
|
+
current_page: a page object for the currently displayed page
|
6
|
+
num_pages: total number of pages
|
7
|
+
per_page: number of items to fetch per page
|
8
|
+
remote: data-remote
|
9
|
+
-%>
|
10
|
+
<span class="page<%= ' current' if page.current? %>">
|
11
|
+
<%= link_to_unless page.current?, page, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
|
12
|
+
</span>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<%# The container tag
|
2
|
+
- available local variables
|
3
|
+
current_page: a page object for the currently displayed page
|
4
|
+
num_pages: total number of pages
|
5
|
+
per_page: number of items to fetch per page
|
6
|
+
remote: data-remote
|
7
|
+
paginator: the paginator that renders the pagination tags inside
|
8
|
+
-%>
|
9
|
+
<%= paginator.render do -%>
|
10
|
+
<nav class="pagination">
|
11
|
+
<%= first_page_tag unless current_page.first? %>
|
12
|
+
<%= prev_page_tag unless current_page.first? %>
|
13
|
+
<% each_page do |page| -%>
|
14
|
+
<% if page.left_outer? || page.right_outer? || page.inside_window? -%>
|
15
|
+
<%= page_tag page %>
|
16
|
+
<% elsif !page.was_truncated? -%>
|
17
|
+
<%= gap_tag %>
|
18
|
+
<% end -%>
|
19
|
+
<% end -%>
|
20
|
+
<%= next_page_tag unless current_page.last? %>
|
21
|
+
<%= last_page_tag unless current_page.last? %>
|
22
|
+
</nav>
|
23
|
+
<% end -%>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%# Link to the "Previous" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the previous page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
num_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<span class="prev">
|
10
|
+
<%= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote %>
|
11
|
+
</span>
|
@@ -0,0 +1,81 @@
|
|
1
|
+
<div class="space_center"></div>
|
2
|
+
<div class="block" id="contact_info">
|
3
|
+
<div class="header">
|
4
|
+
<div class="header_text">
|
5
|
+
<%=t('profile.outline')+ ' '+ t('preposition.and') + ' '+ t('session.other') %>
|
6
|
+
</div>
|
7
|
+
<% if is_owner? %>
|
8
|
+
<div class="header_icon_right">
|
9
|
+
<%= link_to (image_tag('btn/edit.png')), edit_agenda_path(@event)%>
|
10
|
+
</div>
|
11
|
+
<%end%>
|
12
|
+
</div>
|
13
|
+
<div class="content">
|
14
|
+
<% if !is_contact_empty?%>
|
15
|
+
<div class="sub-block" >
|
16
|
+
<% if @profile.phone? %>
|
17
|
+
<div class="row">
|
18
|
+
<div class="label">
|
19
|
+
<%=t('profile.phone')%>
|
20
|
+
</div>
|
21
|
+
<div class="field">
|
22
|
+
<%=h @profile.phone %>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
<%end%>
|
26
|
+
<% if @profile.mobile? %>
|
27
|
+
<div class="row">
|
28
|
+
<div class="label">
|
29
|
+
<%=t('profile.mobile')%>
|
30
|
+
</div>
|
31
|
+
<div class="field">
|
32
|
+
<%=h @profile.mobile %>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<%end%>
|
36
|
+
<% if @profile.fax? %>
|
37
|
+
<div class="row">
|
38
|
+
<div class="label">
|
39
|
+
<%=t('profile.fax')%>
|
40
|
+
</div>
|
41
|
+
<div class="field">
|
42
|
+
<%=h @profile.fax %>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
<%end%>
|
46
|
+
<% if @profile.address? %>
|
47
|
+
<div class="row">
|
48
|
+
<div class="label">
|
49
|
+
<%=t('profile.address')%>
|
50
|
+
</div>
|
51
|
+
<div class="field">
|
52
|
+
<%=h @profile.address %>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
<%end%>
|
56
|
+
<% if @profile.website? %>
|
57
|
+
<div class="row">
|
58
|
+
<div class="label">
|
59
|
+
<%=t('profile.website')%>
|
60
|
+
</div>
|
61
|
+
<div class="field">
|
62
|
+
<a href="<%=h @profile.website %>"><%=h @profile.website %></a>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
<%end%>
|
66
|
+
<% if @profile.subject.email? %>
|
67
|
+
<div class="row">
|
68
|
+
<div class="label">
|
69
|
+
<%=t('profile.email')%>:
|
70
|
+
</div>
|
71
|
+
<div class="field">
|
72
|
+
<%= show_if_signed_in(h(@profile.subject.email)) %>
|
73
|
+
</div>
|
74
|
+
</div>
|
75
|
+
<%end%>
|
76
|
+
</div>
|
77
|
+
<%elsif is_owner?%>
|
78
|
+
<%=t('profile.empty')%>
|
79
|
+
<%end%>
|
80
|
+
</div>
|
81
|
+
</div>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<div class="space_center"></div>
|
2
|
+
<h2><%=t('menu.information')%></h2>
|
3
|
+
<div class="space_center"></div>
|
4
|
+
|
5
|
+
<% if (!is_personal_empty?) or(is_owner?)%>
|
6
|
+
<%= render :partial=> "personal"%>
|
7
|
+
<%end%>
|
8
|
+
|
9
|
+
<% if @profile.subject.subject_type == 'Event' %>
|
10
|
+
<%= render :partial=> "outline", :locals => {:profile => @profile} %>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<% if (!is_contact_empty?) or(is_owner?)%>
|
14
|
+
<%= render :partial=> "contact"%>
|
15
|
+
<%end%>
|
16
|
+
<% if (@profile.experience?) or(is_owner?)%>
|
17
|
+
<%= render :partial=> "experience"%>
|
18
|
+
<%end%>
|
19
|
+
<% if is_owner? %>
|
20
|
+
<div class="space_center"></div>
|
21
|
+
<div class="block" id="avatar_info">
|
22
|
+
<div class="header">
|
23
|
+
<div class="header_text">
|
24
|
+
<%= t('avatar.profile_change')%>
|
25
|
+
</div>
|
26
|
+
<div class="header_icon_right">
|
27
|
+
<%= link_to (image_tag('btn/edit.png')), :controller => "avatars" , :action => "index" %>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
<div class="content">
|
31
|
+
<div class="row">
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<% end %>
|
36
|
+
<div class="space_center"></div>
|
37
|
+
<% if (@profile.subject.tag_list.count > 0) or (is_owner?) %>
|
38
|
+
<%= render :partial=>"tags"%>
|
39
|
+
<% end %>
|
40
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<%= form_for @session,:url => {:action => :update}, :method => 'post' do |f| %>
|
2
|
+
|
3
|
+
<div class="form_row">
|
4
|
+
<%= label_tag :title %>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<div class="form_row">
|
8
|
+
<%= f.text_field :title %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="form_row">
|
12
|
+
<div class="form_label">
|
13
|
+
<%= t('session.description')%>:
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="form_row">
|
18
|
+
<%= f.text_area :description, :maxlength => 100, :rows => 6, :class => "form_tag_long" %>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div class="form_row">
|
22
|
+
<%= label_tag :start_at%>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<div class="form_row">
|
26
|
+
<%= f.datetime_select :start_at %>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div class="form_row">
|
30
|
+
<%= label_tag :end_at%>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div class="form_row">
|
34
|
+
<%= f.datetime_select :end_at %>
|
35
|
+
</div>
|
36
|
+
<%= hidden_field_tag :id_event, @event.id %>
|
37
|
+
<div class="form_row">
|
38
|
+
<%= f.submit "Edit event", :class => "button" %>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<% end %>
|
@@ -0,0 +1,63 @@
|
|
1
|
+
<% receiver = current_subject%>
|
2
|
+
|
3
|
+
<div class="space_center"></div>
|
4
|
+
<div class="space_center"></div>
|
5
|
+
<div class="row">
|
6
|
+
<div class="form_row">
|
7
|
+
<h2><%=t('session.new')%></h2>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
<div class="space_center"></div>
|
11
|
+
<div class="space_center"></div>
|
12
|
+
|
13
|
+
|
14
|
+
<%= form_for @session,:url => {:action => :create}, :method => 'post' do |f| %>
|
15
|
+
<div class="block">
|
16
|
+
<div class="form_row">
|
17
|
+
<div class="form_label">
|
18
|
+
<%=t('session.one').capitalize + ' ' + t('session.title')%>:
|
19
|
+
</div>
|
20
|
+
<div class="form_field">
|
21
|
+
<%= f.text_field :title, :class => "form_tag" %>
|
22
|
+
<span class="needed"> (*)</span>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
<div class="form_row">
|
26
|
+
<div class="form_label">
|
27
|
+
<%=t('time.from')%>
|
28
|
+
</div>
|
29
|
+
<div class="form_field">
|
30
|
+
<%= f.datetime_select :start_at, {:start_year => Time.zone.now.year, :minute_step => Agenda::SLOT_VALUES[1], :default => Agenda.next_time_slot_for_drop_down + 2.hours} %>
|
31
|
+
<span class="needed"> (*)</span>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
<div class="form_row">
|
35
|
+
<div class="form_label">
|
36
|
+
<%=t('time.to')%>
|
37
|
+
</div>
|
38
|
+
<div class="form_field">
|
39
|
+
<%= f.datetime_select :end_at, {:start_year => Time.zone.now.year, :minute_step => Agenda::SLOT_VALUES[1], :default => Agenda.next_time_slot_for_drop_down + 2.hours + 30.minutes} %>
|
40
|
+
<span class="needed"> (*)</span>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
<div class="form_row">
|
44
|
+
<div class="form_label">
|
45
|
+
<%=t('session.one').capitalize + ' ' + t('session.description')%>:
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
<div class="form_row">
|
49
|
+
<%= text_area_tag :description, nil, :name => 'session[description]', :maxlength => 100, :rows => 6, :class => "form_tag_long" %>
|
50
|
+
</div>
|
51
|
+
<div class="form_row needed"><%=t('required')%></div>
|
52
|
+
<div class="form_row space_center">
|
53
|
+
<%= f.hidden_field :_contact_id, :value => current_subject.contact_to!(receiver).id %>
|
54
|
+
<%= hidden_field_tag :event_id, @event.id %>
|
55
|
+
<%= f.submit t('button.create'), :class => "button" %>
|
56
|
+
<button class="button" onclick="window.location.href='<%=agenda_path(@event)%>';">
|
57
|
+
<%= t('button.cancel')%>
|
58
|
+
</button>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
<% end %>
|
62
|
+
|
63
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
session creada ahora mismo
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<div class="block session">
|
2
|
+
<div class="session_wrapper1">
|
3
|
+
<div class="event_hour">
|
4
|
+
<%=t('time.from').capitalize%>
|
5
|
+
</div>
|
6
|
+
<div class="event_month">
|
7
|
+
<%=session.start_at.strftime("%H:%M") %>
|
8
|
+
</div>
|
9
|
+
<div class="event_hour">
|
10
|
+
<%=t('time.to')%>
|
11
|
+
</div>
|
12
|
+
<div class="event_month">
|
13
|
+
<%=session.end_at.strftime("%H:%M") %>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<div class="session_wrapper2">
|
17
|
+
<div class="block header_text session_title">
|
18
|
+
<h3><span class="header_title"><%=session.title%></span></h3>
|
19
|
+
<%= link_to image_tag("btn/btn_edit.png" , :alt => "name"),{:controller => :sessions , :action => :edit,:id_event=>@event.id,:id=>session.id}%>|
|
20
|
+
|
21
|
+
<%= link_to image_tag("btn/trash.png" , :alt => "name"),{:controller => :sessions , :action => :destroy,:id=>session.id}, :confirm => t('actor.confirm_delete')%>
|
22
|
+
</div>
|
23
|
+
<div class="content">
|
24
|
+
<%=session.description %>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
</div>
|