|
|
@ -27,27 +27,25 @@ |
|
|
|
value: @resource.email |
|
|
|
value: @resource.email |
|
|
|
%> |
|
|
|
%> |
|
|
|
|
|
|
|
|
|
|
|
<%= roles = User::ROLES.map { |key, _| OpenStruct.new(id: key, name: key.to_s.humanize) } |
|
|
|
<%= roles = current_user.assignable_roles.map { |key, _| OpenStruct.new(id: key, name: key.to_s.humanize) } |
|
|
|
f.govuk_collection_radio_buttons :role, roles, :id, :name, legend: { text: "Role", size: "m" } |
|
|
|
f.govuk_collection_radio_buttons :role, roles, :id, :name, legend: { text: "Role", size: "m" } |
|
|
|
%> |
|
|
|
%> |
|
|
|
|
|
|
|
|
|
|
|
<% if current_user.data_coordinator? %> |
|
|
|
<%= f.govuk_collection_radio_buttons :is_dpo, |
|
|
|
<%= f.govuk_collection_radio_buttons :is_dpo, |
|
|
|
[OpenStruct.new(id: false, name: "No"), OpenStruct.new(id: true, name: "Yes")], |
|
|
|
[OpenStruct.new(id: false, name: "No"), OpenStruct.new(id: true, name: "Yes")], |
|
|
|
:id, |
|
|
|
:id, |
|
|
|
:name, |
|
|
|
:name, |
|
|
|
inline: true, |
|
|
|
inline: true, |
|
|
|
legend: { text: "Are #{pronoun(@user, current_user)} a data protection officer?", size: "m" } |
|
|
|
legend: { text: "Are #{pronoun(@user, current_user)} a data protection officer?", size: "m" } |
|
|
|
%> |
|
|
|
%> |
|
|
|
|
|
|
|
|
|
|
|
<%= f.govuk_collection_radio_buttons :is_key_contact, |
|
|
|
<%= f.govuk_collection_radio_buttons :is_key_contact, |
|
|
|
[OpenStruct.new(id: false, name: "No"), OpenStruct.new(id: true, name: "Yes")], |
|
|
|
[OpenStruct.new(id: false, name: "No"), OpenStruct.new(id: true, name: "Yes")], |
|
|
|
:id, |
|
|
|
:id, |
|
|
|
:name, |
|
|
|
:name, |
|
|
|
inline: true, |
|
|
|
inline: true, |
|
|
|
legend: { text: "Are #{pronoun(@user, current_user)} a key contact?", size: "m" } |
|
|
|
legend: { text: "Are #{pronoun(@user, current_user)} a key contact?", size: "m" } |
|
|
|
%> |
|
|
|
%> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%= f.govuk_submit "Continue" %> |
|
|
|
<%= f.govuk_submit "Continue" %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|