<%= title l(:edit, :scope => :easy_attendance, :date => format_date(@easy_attendance.arrival)) -%>
<% back_url = params[:back_url].presence || easy_attendances_path %>
<%= form_for(@easy_attendance) do |f| %>
  <%= render(:partial => 'form', :locals => {:f => f, :easy_attendance => @easy_attendance, :modul_uniq_id => '', :easy_attendance_activities => @easy_attendance_activities}) -%>
  <%= f.submit(l(:button_update), :class => 'button-1') -%>
  <%= link_to(l(:button_delete), easy_attendance_path(f.object, {:back_url => back_url}), :method => :delete, :data => {:confirm => l(:text_are_you_sure)}, :class => 'icon icon-del button-2') if f.object.can_delete? %>
  <%= link_to(l(:button_back), back_url, :class => 'button-2') -%>
<% end -%>

<%= easy_journal_render_history(@journals, :entity => @easy_attendance) %>

<script type="text/javascript">
  $(document).ready(function() {
    EASY.journals.collapseUnnecessary();
  });
</script>

<%= javascript_tag('iniEasyAttendanceActivityChanger();') %>
