2022-07-13 04:05:33 +00:00
|
|
|
<% content_for :page_specific_javascript do %>
|
|
|
|
<%= render :partial=>'calendars/calendar_variable' %>
|
|
|
|
<% end %>
|
|
|
|
<%#= javascript_include_tag 'calendar_moment.min' %>
|
2014-12-16 11:40:15 +00:00
|
|
|
<%= javascript_include_tag 'fullcalendar' %>
|
2022-07-13 04:05:33 +00:00
|
|
|
<%#= javascript_include_tag 'fullcalendar_moment.min' %>
|
2014-12-16 11:40:15 +00:00
|
|
|
<%= javascript_include_tag 'calendar' %>
|
2014-12-27 11:52:47 +00:00
|
|
|
<%= javascript_include_tag 'validator' %>
|
2014-12-16 11:40:15 +00:00
|
|
|
|
|
|
|
<%= stylesheet_link_tag "fullcalendar"%>
|
|
|
|
<%= stylesheet_link_tag "calendar"%>
|
2020-08-04 02:39:26 +00:00
|
|
|
<%= render_filter @filter_fields, "view_holder" %>
|
2022-07-13 04:05:33 +00:00
|
|
|
<style type="text/css">
|
|
|
|
.row{
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
</style>
|
2022-07-28 06:41:27 +00:00
|
|
|
<form action="<%= "#{request.path}" %>" method="get">
|
|
|
|
<% CGI.parse(request.query_string).each do |k,v| %>
|
|
|
|
<% if k != 'display_hide' %>
|
|
|
|
<% if v.class == Array %>
|
|
|
|
<% v.each do |vv| %>
|
|
|
|
<input type="hidden" name="<%=k%>" value="<%=vv%>">
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<input type="hidden" name="<%=k%>" value="<%=v%>">
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<input type="checkbox" id="display_hide" name="display_hide" value="true" <%='checked=checked' if params[:display_hide] == 'true' %>><%= t('calendar.display_hide_events') %>
|
|
|
|
</form>
|
2014-12-16 11:40:15 +00:00
|
|
|
<div id="orbit_calendar" class="month_view">
|
2014-12-27 11:52:47 +00:00
|
|
|
<div class="clearfix cal-fn">
|
|
|
|
<div id='sec2'>
|
|
|
|
<h3 id="current_title" class="current_day_title"></h4>
|
|
|
|
</div>
|
|
|
|
<div class="pull-left" id='sec1'>
|
|
|
|
<div class="btn-toolbar" id="navigation">
|
2014-12-16 11:40:15 +00:00
|
|
|
<div id="calendar-nav">
|
|
|
|
<div class="btn-group">
|
2022-07-13 04:05:33 +00:00
|
|
|
<button class="btn" id="today_btn"><%=t('calendar.today')%></button>
|
2014-12-16 11:40:15 +00:00
|
|
|
</div>
|
|
|
|
<div class="btn-group">
|
|
|
|
<button class="btn" id="prev_month_btn">
|
|
|
|
<i class="icon-chevron-left"></i>
|
|
|
|
</button>
|
|
|
|
<button class="btn" id="next_month_btn">
|
|
|
|
<i class="icon-chevron-right"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-12-27 11:52:47 +00:00
|
|
|
<div class="form-inline" id="range_selection" style="display:none;"></div>
|
2014-12-16 11:40:15 +00:00
|
|
|
</div>
|
2014-12-27 11:52:47 +00:00
|
|
|
<div class="pull-right" id='sec3'>
|
|
|
|
<div class="btn-toolbar">
|
2014-12-16 11:40:15 +00:00
|
|
|
<div class="btn-group calendar_mode">
|
2022-07-13 04:05:33 +00:00
|
|
|
<%= @calendar_setting.get_modes_info.each_with_index do |(trans, mode), i| %>
|
|
|
|
<button class="btn btn-default mode_switch btn-sm <%= 'active' if i == 2 %>" data-mode="<%= mode %>" ><%= trans %></button>
|
|
|
|
<% end %>
|
2014-12-16 11:40:15 +00:00
|
|
|
</div>
|
|
|
|
<div class="btn-group">
|
|
|
|
<button id="refresh_btn" class="btn">
|
|
|
|
<i class="icons-cycle"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="view_holder">
|
2020-08-04 02:37:49 +00:00
|
|
|
<%= render partial: 'index' %>
|
2014-12-16 11:40:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-12-27 11:52:47 +00:00
|
|
|
<div id="event_create_space"></div>
|
|
|
|
<div id="calendar-loading"></div>
|
2014-12-30 09:35:55 +00:00
|
|
|
<div class="calendar-form-actions form-actions text-right">
|
2014-12-29 11:44:42 +00:00
|
|
|
<%= link_to "Add", new_admin_calendar_path, :class => "btn btn-primary", :id=>"create_event_btn", :ref=>"add-btn" %>
|
2022-07-28 06:41:27 +00:00
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
$('#display_hide').click(function(){
|
|
|
|
$(this).parent('form').submit();
|
|
|
|
});
|
|
|
|
</script>
|