% if !@collection.challenge.signup_open %>
<% if @collection.potential_matches.empty? %>
-
<% if !@settings || @settings.no_match_required? %>
<%= link_to ts("Generate Potential Matches"), generate_collection_potential_matches_path(@collection),
data: {confirm: ts("Your challenge settings don't require any matching. Assignments will be completely random. Is this what you want?")} %>
<% else %>
<%= link_to ts("Generate Potential Matches"), generate_collection_potential_matches_path(@collection) %>
<% end %>
<% else %>
- <%= submit_tag ts("Save Assignment Changes") %>
- <%= link_to ts("Regenerate Assignments"), generate_collection_assignments_path(@collection),
data: {confirm: ts("Are you sure? This will delete all current assignments.")} %>
- <%= link_to ts("Regenerate All Potential Matches"), generate_collection_potential_matches_path(@collection),
data: {confirm: ts("Are you sure? This will delete all current assignments and potential matches.")} %>
-
<%= link_to ts("Send Assignments"), send_out_collection_assignments_path(@collection),
data: {confirm: ts("Are you sure? This will send out the currently saved assignments to all participants!")} %>
<% end %>
<% end %>