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

18 lines
530 B
Plaintext

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