% if !@collection.challenge.signup_open %>
<% if @collection.potential_matches.empty? %>
-
<% if !@settings || @settings.no_match_required? %>
<%= button_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?") },
method: :post %>
<% else %>
<%= button_to ts("Generate Potential Matches"), generate_collection_potential_matches_path(@collection), method: :post %>
<% end %>
<% else %>
- <%= submit_tag ts("Save Assignment Changes") %>
- <%= button_to ts("Regenerate Assignments"), generate_collection_assignments_path(@collection),
data: { confirm: ts("Are you sure? This will delete all current assignments.") },
method: :post %>
- <%= button_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.") },
method: :post %>
-
<%= button_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!") },
method: :post %>
<% end %>
<% end %>