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

18 lines
530 B
Plaintext
Raw Normal View History

2014-12-16 11:40:15 +00:00
<% if !@categories.blank? %>
2014-12-27 11:52:47 +00:00
<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>
2014-12-16 11:40:15 +00:00
<% else %>
2014-12-27 11:52:47 +00:00
<div class="event_summary alert" id="no-categories">
No categories assigned.
<a href="" class="close btn-close">&times;</a>
</div>
2014-12-16 11:40:15 +00:00
<% end %>
2014-12-27 11:52:47 +00:00
<script>
new FormValidator($("#new_event"));
</script>