calendar/app/views/admin/calendars/show.html.erb

21 lines
954 B
Plaintext

<div class="modal-header">
<button type="button" class="close event-close-btn" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3><%= @event.title %></h3>
</div>
<div class="modal-body">
<div class="event_summary">
<!-- Thu, September 13 -->
<% if @event.start_date == @event.end_date %>
<%= @start_day_name+", "+@event.start_date.to_s+"-"+@start_month_name %>
<% else %>
<%= @start_day_name+", "+@event.start_date.to_s+"-"+@start_month_name %> to <%= @end_day_name+", "+@event.end_date.to_s + "-" + @end_month_name %>
<% end %>
</div>
</div>
<%if can_edit_or_delete?(@event.calendar_type) %>
<div class="modal-footer">
<%= link_to t(:delete_), panel_calendar_new_back_end_event_path(@event),:class => "btn bt-del", :method => :delete, :remote => true %>
<%= link_to t(:edit), edit_panel_calendar_new_back_end_event_path(@event),:class => "btn btn-primary",:id=>"edit_event_btn" ,:remote => true %>
</div>
<% end %>