<%= f.label :name %>
<%= f.text_field :name, class: 'form-control' %>
<%= f.label :description %>
<%= f.text_area :description, class: 'form-control' %>
<%= f.label :location %>
<%= f.text_area :location, class: 'form-control' %>
<%= f.label :deadline %>
<%= f.datetime_field :deadline, class: 'form-control' %>
<%= submit_tag(t(:save_and_return), class: "btn btn-success") %>
<%= f.submit class: 'btn btn-primary', name: "commit-continue" %>
<% unless activity.new_record? %>
<%= link_to I18n.t('activities.subgroups.distribute_remaining'),
{ action: 'immediate_subgroups', group_id: activity.group_id, activity_id: activity.id },
class: 'btn btn-warning',
method: :post,
data: { confirm: I18n.t('activities.subgroups.distribute_remaining_explanation')}
%>
<%= link_to I18n.t('activities.subgroups.redistribute'),
{ action: 'immediate_subgroups', group_id: activity.group_id, activity_id: activity.id, overwrite: true },
method: :post,
class: 'btn btn-danger',
data: { confirm: I18n.t('activities.subgroups.redistribute_explanation')}
%>
<%= link_to I18n.t('activities.subgroups.clear'),
{ action: 'clear_subgroups', group_id: activity.group_id, activity_id: activity.id, },
method: :post,
class: 'btn btn-danger',
data: { confirm: I18n.t('activities.subgroups.clear_explanation')}
%>
<% end %>
<% end %>