<% administerable = @plan.administerable_by?(current_user) %> <% if administerable %> <div class="col-xs-12"> <% if plan.owner_and_coowners.include?(current_user) && current_user.org.feedback_enabled? %> <h2><%= _('Request expert feedback') %></h2> <p><%= _("Click below to give data management staff at %{org_name}, the Plan Owner's org, access to read and comment on your plan.") % { org_name: current_user.org.name } %></p> <div class="well well-sm"> <%= sanitize current_user.org.feedback_email_msg.to_s % { user_name: current_user.name(false), plan_name: plan.title } %> </div> <p><%= _('You can continue to edit and download the plan in the interim.') %></p> <div class="form-group col-xs-8"> <%= link_to _('Request feedback'), feedback_requests_path(plan_id: @plan.id), data: { method: 'post' }, class: "btn btn-default#{' disabled' if @plan.feedback_requested?} accessible" %> <span><%= _("Feedback has been requested.") if @plan.feedback_requested? %></span> </div> <% end %> </div> <% end %>