= form_tag(account_roles_update_path(:id => @account.id, :user_id => @account_user.user_id)) do - if current_user.is?(:owner, @account) - APP_ROLES['roles'].each do |role| %div = check_box_tag "roles[]", role, @account_user.is?(role), :id => "#{role}_checkbox" = label_tag "#{role}_checkbox", role - elsif current_user.is?(:admin, @account) - APP_ROLES['roles'].each do |role| - unless role == APP_ROLES['owner_role'] || role == APP_ROLES['admin_role'] %div = check_box_tag "roles[]", role, @account_user.is?(role), :id => "#{role}_checkbox" = label_tag "#{role}_checkbox", role %div = submit_tag I18n.t("iugu.save")