tb_events 1.0.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/README.md +17 -5
- data/Rakefile +2 -2
- data/app/assets/javascripts/admin/events/application.js +16 -0
- data/app/assets/javascripts/{calendar_events.js → admin/events/calendar_events.js} +0 -0
- data/app/assets/javascripts/{spud/admin → admin/events}/calendars.js +0 -0
- data/app/assets/stylesheets/admin/events/application.css +4 -0
- data/app/assets/{javascripts/spud/events.js → stylesheets/admin/events/calendar_events.css} +0 -0
- data/app/assets/stylesheets/{spud → admin/events}/calendars.css +23 -28
- data/app/controllers/admin/calendar_events_controller.rb +67 -0
- data/app/controllers/{spud/admin → admin}/calendars_controller.rb +17 -14
- data/app/controllers/calendar_events_controller.rb +12 -6
- data/app/controllers/calendars_controller.rb +18 -18
- data/app/helpers/admin/calendar_events_helper.rb +2 -0
- data/app/helpers/admin/calendars_helper.rb +13 -0
- data/app/helpers/calendars_helper.rb +66 -35
- data/app/models/spud_calendar.rb +28 -3
- data/app/models/spud_calendar_event.rb +1 -20
- data/app/models/spud_events/calendar_event_model.rb +31 -0
- data/app/views/admin/calendar_events/_calendar.html.erb +19 -0
- data/app/views/admin/calendar_events/_form.html.erb +21 -0
- data/app/views/admin/calendar_events/edit.html.erb +1 -0
- data/app/views/admin/calendar_events/index.html.erb +28 -0
- data/app/views/admin/calendar_events/new.html.erb +1 -0
- data/app/views/admin/calendars/_calendar_legend.html.erb +8 -0
- data/app/views/admin/calendars/_form.html.erb +5 -0
- data/app/views/{spud/admin → admin}/calendars/edit.html.erb +0 -0
- data/app/views/{spud/admin → admin}/calendars/new.html.erb +0 -0
- data/app/views/calendar_events/index.html.erb +22 -0
- data/app/views/calendar_events/show.html.erb +7 -5
- data/app/views/calendars/show.html.erb +19 -4
- data/config/locales/en.yml +9 -0
- data/config/routes.rb +9 -15
- data/db/migrate/20120216191833_create_spud_calendars.rb +2 -2
- data/db/migrate/20140723203144_add_identifier_to_spud_calendars.rb +6 -0
- data/db/migrate/20140730182213_remove_color_from_spud_calendars.rb +9 -0
- data/lib/spud_events/calendar_builder.rb +53 -0
- data/lib/spud_events/configuration.rb +6 -0
- data/lib/spud_events/engine.rb +23 -0
- data/lib/spud_events/version.rb +3 -0
- data/lib/tb_events.rb +4 -4
- metadata +83 -131
- data/app/assets/javascripts/calendars.js +0 -2
- data/app/assets/javascripts/spud/admin/calendar_events.js +0 -2
- data/app/assets/javascripts/spud/admin/events.js +0 -51
- data/app/assets/lib/colorpicker/colorpicker.css +0 -164
- data/app/assets/lib/colorpicker/colorpicker.js +0 -484
- data/app/assets/lib/colorpicker/images/blank.gif +0 -0
- data/app/assets/lib/colorpicker/images/colorpicker_background.png +0 -0
- data/app/assets/lib/colorpicker/images/colorpicker_hex.png +0 -0
- data/app/assets/lib/colorpicker/images/colorpicker_hsb_b.png +0 -0
- data/app/assets/lib/colorpicker/images/colorpicker_hsb_h.png +0 -0
- data/app/assets/lib/colorpicker/images/colorpicker_hsb_s.png +0 -0
- data/app/assets/lib/colorpicker/images/colorpicker_indic.gif +0 -0
- data/app/assets/lib/colorpicker/images/colorpicker_overlay.png +0 -0
- data/app/assets/lib/colorpicker/images/colorpicker_rgb_b.png +0 -0
- data/app/assets/lib/colorpicker/images/colorpicker_rgb_g.png +0 -0
- data/app/assets/lib/colorpicker/images/colorpicker_rgb_r.png +0 -0
- data/app/assets/lib/colorpicker/images/colorpicker_select.gif +0 -0
- data/app/assets/lib/colorpicker/images/colorpicker_submit.png +0 -0
- data/app/assets/lib/colorpicker/images/custom_background.png +0 -0
- data/app/assets/lib/colorpicker/images/custom_hex.png +0 -0
- data/app/assets/lib/colorpicker/images/custom_hsb_b.png +0 -0
- data/app/assets/lib/colorpicker/images/custom_hsb_h.png +0 -0
- data/app/assets/lib/colorpicker/images/custom_hsb_s.png +0 -0
- data/app/assets/lib/colorpicker/images/custom_indic.gif +0 -0
- data/app/assets/lib/colorpicker/images/custom_rgb_b.png +0 -0
- data/app/assets/lib/colorpicker/images/custom_rgb_g.png +0 -0
- data/app/assets/lib/colorpicker/images/custom_rgb_r.png +0 -0
- data/app/assets/lib/colorpicker/images/custom_submit.png +0 -0
- data/app/assets/lib/colorpicker/images/select.png +0 -0
- data/app/assets/lib/colorpicker/images/select2.png +0 -0
- data/app/assets/lib/colorpicker/images/slider.png +0 -0
- data/app/assets/stylesheets/spud/admin/events.css +0 -16
- data/app/assets/stylesheets/spud/calendar_events.css +0 -18
- data/app/assets/stylesheets/spud/events.css +0 -4
- data/app/controllers/spud/admin/calendar_events_controller.rb +0 -64
- data/app/helpers/spud/admin/calendar_events_helper.rb +0 -2
- data/app/helpers/spud/admin/calendars_helper.rb +0 -15
- data/app/views/calendars/_calendar.html.erb +0 -26
- data/app/views/calendars/_calendar_options.html.erb +0 -4
- data/app/views/spud/admin/calendar_events/_calendar.html.erb +0 -14
- data/app/views/spud/admin/calendar_events/_form.html.erb +0 -98
- data/app/views/spud/admin/calendar_events/edit.html.erb +0 -1
- data/app/views/spud/admin/calendar_events/index.html.erb +0 -20
- data/app/views/spud/admin/calendar_events/new.html.erb +0 -1
- data/app/views/spud/admin/calendars/_calendar_legend.html.erb +0 -7
- data/app/views/spud/admin/calendars/_form.html.erb +0 -20
- data/config/application.rb +0 -50
- data/config/boot.rb +0 -6
- data/lib/spud/events/calendar.rb +0 -85
- data/lib/spud/events/calendar_builder.rb +0 -58
- data/lib/spud/events/configuration.rb +0 -10
- data/lib/spud/events/engine.rb +0 -26
- data/lib/spud/events/table_builder.rb +0 -88
- data/lib/spud/events/version.rb +0 -5
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,16 +0,0 @@
|
|
1
|
-
/* ...
|
2
|
-
*= require spud/calendars
|
3
|
-
*= require spud/calendar_events
|
4
|
-
*= require colorpicker/colorpicker
|
5
|
-
*= require_self
|
6
|
-
*/
|
7
|
-
|
8
|
-
/* Calendar Color Picker
|
9
|
-
----------------------- */
|
10
|
-
.spud_events_admin_color_picker {
|
11
|
-
height: 28px;
|
12
|
-
width: 28px;
|
13
|
-
display: block;
|
14
|
-
background-image: url('/assets/colorpicker/images/select2.png');
|
15
|
-
background-position: 50% 50%;
|
16
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
a.spud_events_admin_calendar_event_marker,
|
2
|
-
a.spud_events_calendar_event_marker {
|
3
|
-
color: black;
|
4
|
-
font-size: 11px;
|
5
|
-
padding: 0 3px;
|
6
|
-
margin: 0 0 3px 0;
|
7
|
-
line-height: 13px;
|
8
|
-
display: block;
|
9
|
-
-moz-border-radius: 3px;
|
10
|
-
-webkit-border-radius: 3px;
|
11
|
-
border-radius: 3px;
|
12
|
-
text-decoration: none;
|
13
|
-
}
|
14
|
-
span.spud_events_admin_calendar_event_marker:last-child,
|
15
|
-
span.spud_events_calendar_event_marker:last-child {
|
16
|
-
color: #191919;
|
17
|
-
margin: 0;
|
18
|
-
}
|
@@ -1,64 +0,0 @@
|
|
1
|
-
class Spud::Admin::CalendarEventsController < Spud::Admin::ApplicationController
|
2
|
-
|
3
|
-
layout 'spud/admin/detail'
|
4
|
-
add_breadcrumb "Events", :spud_admin_list_spud_calendar_events_path
|
5
|
-
belongs_to_spud_app :events
|
6
|
-
|
7
|
-
respond_to :html, :xml, :json
|
8
|
-
respond_to :js, :only => [:index, ]
|
9
|
-
|
10
|
-
def index
|
11
|
-
if params[:month]
|
12
|
-
year = params[:year] ? params[:year] : Time.new.year
|
13
|
-
begin
|
14
|
-
@calendar_date = Time.local(year, params[:month])
|
15
|
-
rescue
|
16
|
-
@calendar_date = Time.new
|
17
|
-
end
|
18
|
-
else
|
19
|
-
@calendar_date = Time.new
|
20
|
-
end
|
21
|
-
|
22
|
-
if params[:spud_calendar] && calendar = SpudCalendar.find_by_title(params[:spud_calendar].titleize)
|
23
|
-
@calendar_events = calendar.events
|
24
|
-
else
|
25
|
-
@calendar_events = SpudCalendarEvent
|
26
|
-
end
|
27
|
-
@calendar_events = @calendar_events.in_month_of(@calendar_date).order('spud_calendar_events.start_at ASC').all
|
28
|
-
|
29
|
-
@calendars = SpudCalendar.all
|
30
|
-
@current_calendar = params[:spud_calendar] ? params[:spud_calendar] : 0
|
31
|
-
|
32
|
-
respond_with(@calendars, :include => :events)
|
33
|
-
end
|
34
|
-
|
35
|
-
def new
|
36
|
-
@calendar_event = SpudCalendarEvent.new
|
37
|
-
if params[:spud_calendar]
|
38
|
-
@calendar_event.spud_calendar_id = SpudCalendar.find_by_title(params[:spud_calendar].titleize).id
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def edit
|
43
|
-
@calendar_event = SpudCalendarEvent.find(params[:id])
|
44
|
-
end
|
45
|
-
|
46
|
-
def create
|
47
|
-
@calendar_event = SpudCalendarEvent.new(params[:spud_calendar_event])
|
48
|
-
flash[:notice] = 'Calendar event was successfully created.' if @calendar_event.save
|
49
|
-
respond_with(@calendar_event, :location => spud_admin_list_spud_calendar_events_path)
|
50
|
-
end
|
51
|
-
|
52
|
-
def update
|
53
|
-
@calendar_event = SpudCalendarEvent.find(params[:id])
|
54
|
-
flash[:notice] = 'Calendar event was successfully updated.' if @calendar_event.update_attributes(params[:spud_calendar_event])
|
55
|
-
respond_with(@calendar_event, :location =>spud_admin_list_spud_calendar_events_path)
|
56
|
-
end
|
57
|
-
|
58
|
-
def destroy
|
59
|
-
@calendar_event = SpudCalendarEvent.find(params[:id])
|
60
|
-
@calendar_event.destroy
|
61
|
-
respond_with(@calendar_event, :location => spud_admin_list_spud_calendar_events_path)
|
62
|
-
end
|
63
|
-
|
64
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Spud::Admin::CalendarsHelper
|
2
|
-
|
3
|
-
def link_to_previous_admin_calendar_month(date, url_for_options)
|
4
|
-
date = date.advance(:months => -1)
|
5
|
-
calendar = params[:calendar] ? params[:calendar] : nil
|
6
|
-
link_to('« Previous Month'.html_safe, spud_admin_list_spud_calendar_events_path(:month => date.month, :year => date.year, :calendar => calendar), :class => 'spud_events_calendar_link previous_calendar btn').html_safe
|
7
|
-
end
|
8
|
-
|
9
|
-
def link_to_next_admin_calendar_month(date, url_for_options)
|
10
|
-
date = date.advance(:months => 1)
|
11
|
-
calendar = params[:calendar] ? params[:calendar] : nil
|
12
|
-
link_to('Next Month »'.html_safe, spud_admin_list_spud_calendar_events_path(:month => date.month, :year => date.year, :calendar => calendar), :class => 'spud_events_calendar_link next_calendar btn').html_safe
|
13
|
-
end
|
14
|
-
|
15
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<div>
|
2
|
-
<h2><%= date.strftime("%B %Y") %></h2>
|
3
|
-
<% build_calendar_for @events, :year => date.year, :month => date.month do |t| %>
|
4
|
-
<%= raw t.head('S', 'M', 'T', 'W', 'T', 'F', 'S') %>
|
5
|
-
<% t.day do |day, tasks| %>
|
6
|
-
<%= content_tag :span, day.day, :class => (tasks.count > 0 ? "spud_events_calendar_date spud_events_calendar_date_active" : "spud_events_calendar_date") %>
|
7
|
-
<% end %>
|
8
|
-
<% end %>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<nav id="spud_events_calendar_nav">
|
12
|
-
<%= link_to_previous_calendar_month(@calendar_date, {:controller => 'spud/events/calendars', :action => :show}) %>
|
13
|
-
<%= link_to_next_calendar_month(@calendar_date, {:controller => 'spud/events/calendars', :action => :show}) %>
|
14
|
-
</nav>
|
15
|
-
|
16
|
-
<%= build_calendar_for @events, :year => date.year, :month => date.month do |t| %>
|
17
|
-
<%= raw t.head('S', 'M', 'T', 'W', 'T', 'F', 'S') %>
|
18
|
-
<%= t.day do |day, tasks| %>
|
19
|
-
<div class="spud_events_calendar_date_container">
|
20
|
-
<%= content_tag :span, day.day, :class => (tasks.count > 0 ? "spud_events_calendar_date spud_events_calendar_date_active" : "spud_events_calendar_date") %>
|
21
|
-
<% tasks.each do |task| %>
|
22
|
-
<%= link_to task.title[0,25], "#", :class => "spud_events_calendar_event_marker spud_events_calendar_event_#{task.spud_calendar_id}", :style => "background-color: \##{task.spud_calendar.color}; color:\##{calendar_fore_color(task.spud_calendar.color)};" %>
|
23
|
-
<% end %>
|
24
|
-
</div>
|
25
|
-
<% end %>
|
26
|
-
<% end %>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<p><%= link_to_next_admin_calendar_month(@calendar_date, :class => "btn") %></p>
|
2
|
-
<p><%= link_to_previous_admin_calendar_month(@calendar_date, :class => "btn") %></p>
|
3
|
-
|
4
|
-
<%= build_calendar_for @calendar_events, :year => @calendar_date.year, :month => @calendar_date.month do |t| %>
|
5
|
-
<%= raw t.head('S', 'M', 'T', 'W', 'T', 'F', 'S') %>
|
6
|
-
<%= t.day do |day, tasks| %>
|
7
|
-
<div class="spud_events_admin_calendar_date_container">
|
8
|
-
<%= content_tag :span, day.day, :class => (tasks.count > 0 ? "spud_events_admin_calendar_date spud_events_admin_calendar_date_active" : "spud_events_admin_calendar_date") %>
|
9
|
-
<% tasks.each do |task| %>
|
10
|
-
<%= link_to truncate(task.title, :length => 25), edit_spud_admin_calendar_event_path(task.id), :class => "spud_events_admin_calendar_event_marker spud_events_calendar_event_#{task.spud_calendar_id}", :style => "background-color: \##{task.spud_calendar.color}; color:\##{calendar_fore_color(task.spud_calendar.color)}" %>
|
11
|
-
<% end %>
|
12
|
-
</div>
|
13
|
-
<% end %>
|
14
|
-
<% end %>
|
@@ -1,98 +0,0 @@
|
|
1
|
-
<%= form_for @calendar_event, :url => path,:html=>{:class=>"form-horizontal"} do |f| %>
|
2
|
-
<%= error_messages_for(f.object) %>
|
3
|
-
<fieldset>
|
4
|
-
<legend>Details</legend>
|
5
|
-
<div class="control-group">
|
6
|
-
<%= f.label :spud_calender_id, "Calendar",:class => "control-label" %>
|
7
|
-
<div class="controls">
|
8
|
-
<%= f.select(:spud_calendar_id, options_from_collection_for_select(SpudCalendar.all, :id, :title, @calendar_event.spud_calendar_id)) %>
|
9
|
-
</div>
|
10
|
-
</div>
|
11
|
-
<div class="control-group">
|
12
|
-
<%= f.label :title,:class => "control-label" %>
|
13
|
-
<div class="controls">
|
14
|
-
<%= f.text_field :title %>
|
15
|
-
</div>
|
16
|
-
</div>
|
17
|
-
<div class="control-group">
|
18
|
-
<%= f.label :description,:class => "control-label" %>
|
19
|
-
<div class="controls">
|
20
|
-
<%= f.text_area :description, :rows => 5 %>
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
</fieldset>
|
24
|
-
|
25
|
-
<fieldset>
|
26
|
-
<legend>Event Time</legend>
|
27
|
-
|
28
|
-
<div class="control-group">
|
29
|
-
<%= f.label :start_at, "Starts",:class => "control-label" %>
|
30
|
-
<div class="controls">
|
31
|
-
<%= f.text_field :start_at,:value => f.object.start_at.blank? ? Time.now.strftime("%Y-%m-%d %H:%M") : f.object.start_at.strftime("%Y-%m-%d %H:%M") , :class => 'spud_form_date_picker' %>
|
32
|
-
<span class="time_select">
|
33
|
-
<%= f.time_select :start_at, :ignore_date => true,:ampm => true%>
|
34
|
-
</span>
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
<div class="control-group">
|
38
|
-
<%= f.label :end_at, "Ends",:class => "control-label" %>
|
39
|
-
|
40
|
-
<div class="controls">
|
41
|
-
<%= f.text_field :end_at,:value => f.object.end_at.blank? ? Time.now.strftime("%Y-%m-%d %H:%M") : f.object.end_at.strftime("%Y-%m-%d %H:%M") , :class => 'spud_form_date_picker' %>
|
42
|
-
<span class="time_select">
|
43
|
-
<%= f.time_select :end_at, :ignore_date => true,:ampm => true%>
|
44
|
-
</span>
|
45
|
-
</div>
|
46
|
-
</div>
|
47
|
-
</fieldset>
|
48
|
-
<fieldset>
|
49
|
-
<legend>Location</legend>
|
50
|
-
<div class="control-group">
|
51
|
-
<%= f.label :location,:class => "control-label" %>
|
52
|
-
<div class="controls">
|
53
|
-
<%= f.text_field :location %>
|
54
|
-
</div>
|
55
|
-
</div>
|
56
|
-
<div class="control-group">
|
57
|
-
<%= f.label :address,:class => "control-label" %>
|
58
|
-
<div class="controls">
|
59
|
-
<%= f.text_field :address %>
|
60
|
-
</div>
|
61
|
-
</div>
|
62
|
-
<div class="control-group">
|
63
|
-
<%= f.label :address_2,:class => "control-label" %>
|
64
|
-
<div class="controls">
|
65
|
-
<%= f.text_field :address_2 %>
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
<div class="control-group">
|
69
|
-
<%= f.label :city,:class => "control-label" %>
|
70
|
-
<div class="controls">
|
71
|
-
<%= f.text_field :city %>
|
72
|
-
</div>
|
73
|
-
</div>
|
74
|
-
<div class="control-group">
|
75
|
-
<%= f.label :state,:class => "control-label" %>
|
76
|
-
<div class="controls">
|
77
|
-
<%= f.text_field :state %>
|
78
|
-
</div>
|
79
|
-
</div>
|
80
|
-
<div class="control-group">
|
81
|
-
<%= f.label :zip,:class => "control-label" %>
|
82
|
-
<div class="controls">
|
83
|
-
<%= f.text_field :zip %>
|
84
|
-
</div>
|
85
|
-
</div>
|
86
|
-
</fieldset>
|
87
|
-
|
88
|
-
<div class="form-actions">
|
89
|
-
<%=f.submit "Create Event", :class=>"btn btn-primary"%> <%= link_to "Delete", spud_admin_calendar_event_path(@calendar_event), :method=>:delete,:class => "btn btn-danger", :confirm=>"Are you sure you want delete this event?" if !@calendar_event.new_record? %> or <%=link_to "cancel",spud_admin_list_spud_calendar_events_path,:class => "btn"%>
|
90
|
-
</div>
|
91
|
-
|
92
|
-
<% end %>
|
93
|
-
<br class="clear" />
|
94
|
-
<script type="text/javascript">
|
95
|
-
$(document).ready(function(){
|
96
|
-
spud.admin.date_picker.init();
|
97
|
-
});
|
98
|
-
</script>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render :partial => 'form', :locals => {:path => spud_admin_calendar_event_path(@calendar_event)} %>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<%=content_for :data_controls do%>
|
2
|
-
<%= link_to "New Event", new_spud_admin_calendar_event_path, :class => "btn btn-primary right" %>
|
3
|
-
<%end%>
|
4
|
-
<%=content_for :detail do%>
|
5
|
-
<h3>Calendar Events - <%= @calendar_date.strftime('%B %Y') %></h3>
|
6
|
-
|
7
|
-
<div id="spud_events_admin_calendar">
|
8
|
-
<%= render :partial => 'calendar' %>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<ul id="spud_events_admin_calendar_legend">
|
12
|
-
<%= render :partial => 'spud/admin/calendars/calendar_legend', :collection => @calendars, :as => :calendar %>
|
13
|
-
<li>
|
14
|
-
<%= link_to("New Calendar", new_spud_admin_calendar_path, :class => "btn btn-primary btn-small pull-right") %>
|
15
|
-
<br style="clear:right;"/>
|
16
|
-
</li>
|
17
|
-
</ul>
|
18
|
-
|
19
|
-
|
20
|
-
<%end%>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render :partial => 'form', :locals => {:path => spud_admin_calendar_events_path} %>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<li id="spud_events_admin_calendar_legend_<%= calendar.id %>" class="spud_events_admin_calendar_legend_item">
|
2
|
-
<%= content_tag :span, calendar.title, :style => "background-color: \##{calendar.color};color:\##{calendar_fore_color(calendar.color)}"%>
|
3
|
-
<div class="spud_events_admin_calendar_actions">
|
4
|
-
<%= link_to 'edit', edit_spud_admin_calendar_path(calendar), :class => "btn btn-mini" %>
|
5
|
-
<%= link_to 'delete', spud_admin_calendar_path(calendar), :remote => true, :confirm => "This action can't be undone. Would you like to remove the calendar \"#{calendar.title}\"?", :method => :delete, :class => 'js-spud-calendar-delete-action btn btn-mini btn-danger' %>
|
6
|
-
</div>
|
7
|
-
</li>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<%= form_for @calendar, :url => (@calendar.new_record? ? spud_admin_calendars_path : spud_admin_calendar_path(@calendar)),:html=>{:class=>"form-horizontal"} do |f| %>
|
2
|
-
<%= error_messages_for(f.object) %>
|
3
|
-
<div class="control-group">
|
4
|
-
<%= f.label :title,:class => "control-label" %>
|
5
|
-
<div class="controls">
|
6
|
-
<%= f.text_field :title %>
|
7
|
-
</div>
|
8
|
-
</div>
|
9
|
-
<div class="control-group">
|
10
|
-
<%= f.label :color,:class => "control-label" %>
|
11
|
-
<div class="controls">
|
12
|
-
<%= f.hidden_field :color %>
|
13
|
-
<div class="spud_events_admin_color_picker"></div>
|
14
|
-
</div>
|
15
|
-
</div>
|
16
|
-
<div class="form-actions">
|
17
|
-
<%=f.submit "Save", :class=>"btn btn-primary"%> or <%=link_to "cancel",spud_admin_list_spud_calendar_events_path,:class => "btn"%>
|
18
|
-
</div>
|
19
|
-
|
20
|
-
<% end %>
|
data/config/application.rb
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
if defined?(Bundler)
|
6
|
-
# If you precompile assets before deploying to production, use this line
|
7
|
-
Bundler.require *Rails.groups(:assets => %w(development test))
|
8
|
-
# If you want your assets lazily compiled in production, use this line
|
9
|
-
# Bundler.require(:default, :assets, Rails.env)
|
10
|
-
end
|
11
|
-
|
12
|
-
module Spud
|
13
|
-
module Events
|
14
|
-
class Application < Rails::Application
|
15
|
-
# Settings in config/environments/* take precedence over those specified here.
|
16
|
-
# Application configuration should go into files in config/initializers
|
17
|
-
# -- all .rb files in that directory are automatically loaded.
|
18
|
-
|
19
|
-
# Custom directories with classes and modules you want to be autoloadable.
|
20
|
-
# config.autoload_paths += %W(#{config.root}/extras)
|
21
|
-
|
22
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
23
|
-
# :all can be used as a placeholder for all plugins not explicitly named.
|
24
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
25
|
-
|
26
|
-
# Activate observers that should always be running.
|
27
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
28
|
-
|
29
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
30
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
31
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
32
|
-
|
33
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
34
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
35
|
-
# config.i18n.default_locale = :de
|
36
|
-
|
37
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
38
|
-
config.encoding = "utf-8"
|
39
|
-
|
40
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
41
|
-
config.filter_parameters += [:password]
|
42
|
-
|
43
|
-
# Enable the asset pipeline
|
44
|
-
config.assets.enabled = true
|
45
|
-
|
46
|
-
# Version of your assets, change this if you want to expire all your assets
|
47
|
-
config.assets.version = '1.0'
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|