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

16 lines
518 B
Plaintext

<div class="modal-body">
<div class="event_controller">
<% if !@categories.blank? %>
<%= form_for @event, url: {action: "update"}, :remote=>true, :html => {:class=>"form-horizontal"} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %>
<% end %>
<% else %>
<div class="modal-body" id="no-categories">
<div class="event_summary">
No categories assigned.
<a href="" class="btn btn-close" >&times;</a>
</div>
</div>
<% end %>
</div>
</div>