Sha256: 182d99efe20e6c27af0e6939032934e627f9862f6d6c96705273fbfa182f0fc0

Contents?: true

Size: 1.13 KB

Versions: 8

Compression:

Stored size: 1.13 KB

Contents

= form_tag(account_roles_update_path(@account, :user_id => @account_user.user)) do

  %h3
    Permissões

  %table
    %tbody
      %tr
        %td
          = @account_user.user.email

  %div{ :style => "margin-bottom:20px" }
    - if current_user.is?(:owner, @account)
      - APP_ROLES['roles'].each do |role|
        - unless role == APP_ROLES['owner_role']
          %div{ :style => "margin-bottom: 5px" }
            = check_box_tag "roles[]", role, @account_user.is?(role), :id => "#{role}_checkbox"
            = label_tag "#{role}_checkbox", I18n.t("iugu.#{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{ :style => "margin-bottom: 5px" }
            = check_box_tag "roles[]", role, @account_user.is?(role), :id => "#{role}_checkbox"
            = label_tag "#{role}_checkbox", I18n.t("iugu.#{role}")
    
  %div
    = submit_tag I18n.t("iugu.save"), :class => "button full-width"

= link_to I18n.t("iugu.back"), account_users_index_path(account_id: params[:id]), class: "button no-bottom-margin"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
iugusdk-1.0.1 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.0.alpha.32 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.0.alpha.31 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.0.alpha.30 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.0.alpha.29 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.0.alpha.28 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.0.alpha.27 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.0.alpha.26 app/views/iugu/account_roles/edit.html.haml