var replacement = $("<%= j render Admin::BudgetPhases::ToggleEnabledComponent.new(@phase) %>");
var form = $("#<%= dom_id(@phase) %> .toggle-switch");

form.replaceWith(replacement);
replacement.find("[type='submit']").focus();
