Sha256: 46e0883979eb0730428b57c500d5826dbc6a3180f68d8798596a11cc123795b3

Contents?: true

Size: 1.15 KB

Versions: 10

Compression:

Stored size: 1.15 KB

Contents

%h1
  Permissões

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

  %table.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 => "btn btn-primary btn-block"

%br
= link_to I18n.t("iugu.back"), account_users_index_path(account_id: params[:id]), class: "btn btn-primary btn-block"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
iugusdk-1.0.11 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.10 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.9 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.8 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.7 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.6 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.5 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.4 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.3 app/views/iugu/account_roles/edit.html.haml
iugusdk-1.0.2 app/views/iugu/account_roles/edit.html.haml