<% if allowed_to?(:react_to_request_access, :collaborative_draft, collaborative_draft: @collaborative_draft) %> <%= decidim_form_for(@reject_request_form, url: request_reject_collaborative_draft_path(@collaborative_draft)) do |form| %> <%= form.hidden_field :id, value: @collaborative_draft.id %> <%= form.hidden_field :state, value: @collaborative_draft.state %> <%= form.hidden_field :requester_user_id, value: requester.id %> <%= button_tag type: "submit", data: { disable: true }, title: reject_request_button_label do %> <%= icon "x", class: "icon--small muted ml-xs" %> <% end %> <% end %> <% end %>