<% end %>
<% end %>
<% if view_membership(patient, @group) %>
<%= form_for [think_feel_do_engine, view_membership(patient, @group)] do |f| %>
<%= f.hidden_field :end_date %>
"
readonly="readonly">
<% end %>
<% if phq_features? %>
<%= button_to "Discontinue",
think_feel_do_engine.discontinue_membership_path(view_membership(patient, @group).id),
data: { confirm: "Are you sure you would like to end this study? You will not be able to undo this." },
method: :put,
class: "btn btn-primary" %>
<% end %>
<%= button_to "Terminate Access",
think_feel_do_engine.withdraw_membership_path(view_membership(patient, @group).id),
data: { confirm: "Are you sure you would like to terminate access to this membership? This option should also be used before changing membership of the patient to a different group or to completely revoke access to this membership. You will not be able to undo this." },
method: :put,
class: "btn btn-danger" %>