.container.bg_light .row .col-md-12 .page_header %h1 #{t('admin.action.show.title')} .hr .row .col-md-12 .tab-content.list .tab-pane.fade.show.active .show_container %h4 .row .col-4 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.registration_status').titleize} %dd.well.user-info = "#{@user.registration_status} (#{@user.registration_status_list.key(@user.registration_status.to_s)})" .col-4 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.registration_status_at').titleize} %dd.well.user-info = @user.registration_status_at .row .col-4 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.name').titleize} %dd.well.user-info = @user.name .col-4 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.email').titleize} %dd.well.user-info = @user.email .col-4 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.birthday').titleize} %dd.well.user-info = @user.birthday .row .col-3 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.lives_out_brazil').titleize} %dd.well.user-info - if @user.lives_out_brazil #{t('simple_form.yes').titleize} - else #{t('simple_form.no').titleize} .col-3 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.cpf').titleize} %dd.well.user-info = @user.cpf .col-3 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.rg').titleize} %dd.well.user-info = @user.rg .col-3 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.phone').titleize} %dd.well.user-info = @user.phone .row .col-3 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.zipcode').titleize} %dd.well.user-info = @user.zipcode .col-3 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.country').titleize} %dd.well.user-info = @user.country .col-3 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.state').titleize} %dd.well.user-info = @user.state .col-3 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.city').titleize} %dd.well.user-info = @user.city .row .col-3 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.neighborhood').titleize} %dd.well.user-info = @user.neighborhood .col-5 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.address_street').titleize} %dd.well.user-info = @user.address_street .col-2 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.address_number').titleize} %dd.well.user-info = @user.address_number .col-2 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.address_complement').titleize} %dd.well.user-info = @user.address_complement .row .col-6 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.formation_level').titleize} %dd.well.user-info = @user.formation_level_list.key(@user.formation_level) .col-6 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.acting').titleize} %dd.well.user-info = @user.acting_list.key(@user.acting) .row .col-6 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.color_or_race').titleize} %dd.well.user-info = @user.color_or_race_list.key(@user.color_or_race) .col-6 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.gender').titleize} %dd.well.user-info = @user.gender_list.key(@user.gender) .row .col-4 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.is_pcd').titleize} %dd.well.user-info - if @user.is_pcd #{t('simple_form.yes').titleize} - else #{t('simple_form.no').titleize} .col-8 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.pcd_description').titleize} %dd.well.user-info = @user.pcd_description .row .col-12 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.know_abraji').titleize} %dd.well.user-info = @user.know_abraji_list.key(@user.know_abraji) .row .col-12 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.newsletter').titleize} %dd.well.user-info - if @user.newsletter #{t('simple_form.yes').titleize} - else #{t('simple_form.no').titleize} .col-12 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.optin_new_investigatora').titleize} %dd.well.user-info - if @user.optin_new_investigatora #{t('simple_form.yes').titleize} - else #{t('simple_form.no').titleize} .row .col-4 %dt %span.label.user-info-title.name_field.string_type #{t('simple_form.labels.defaults.active').titleize} %dd.well.user-info - if @user.active #{t('simple_form.yes').titleize} - else #{t('simple_form.no').titleize} .row - if @user.associate = render partial: 'show_associate' = render partial: 'courses' - if @user.associate .row.justify-content-md-center - if @user.associate.new_associate? = link_to user_associate_approve_admin_users_path(@user), method: :get, data:{confirm: "Deseja mesmo aprovar a associação?"} do %img{:alt => "Aprovar associação", :title => "Aprovar associação", :src => asset_path("icons/approve.png")}/ = link_to '' , 'data-target': "#denyAssociation", 'data-toggle': "modal" do %img{:alt => "Rejeitar associação", :title => "Rejeitar associação", :src => asset_path("icons/reject.png")}/ - if @user.associate.approved? = link_to '' , 'data-target': "#denyAssociation", 'data-toggle': "modal" do %img{:alt => "Rejeitar associação", :title => "Rejeitar associação", :src => asset_path("icons/reject.png")}/ - if @user.associate.running? = link_to '' , 'data-target': "#denyAssociation", 'data-toggle': "modal" do %img{:alt => "Rejeitar associação", :title => "Rejeitar associação", :src => asset_path("icons/reject.png")}/ -#= link_to user_associate_expire_admin_users_path(@user), method: :get, data:{confirm: "Deseja mesmo expirar a associação?"} do -# %img{:alt => "Expirar associação", :title => "Expirar associação", :src => asset_path("icons/payment-needed.png")}/ - if @user.associate.rejected? = link_to user_associate_approve_admin_users_path(@user), method: :get, data:{confirm: "Deseja mesmo aprovar a associação?"} do %img{:alt => "Aprovar associação", :title => "Aprovar associação", :src => asset_path("icons/approve.png")}/ -#- if @user.associate.expired? -# = link_to user_associate_approve_admin_users_path(@user), method: :get, data:{confirm: "Deseja mesmo aprovar a associação?"} do -# %img{:alt => "Aprovar associação", :title => "Aprovar associação", :src => asset_path("/icons/approve.png"}/ #denyAssociation.modal.fade{"aria-labelledby" => "denyAssociation", :role => "dialog", :tabindex => "-1"} .modal-dialog{:role => "document"} .modal-content .modal-header %h4#myModalLabel.modal-title Escreva o Motivo %button.close{"aria-label" => "Close", "data-dismiss" => "modal", :type => "button"} %span{"aria-hidden" => "true"} × .modal-body %form.rejectMessageForm{:action => user_associate_reject_admin_users_path(@user), :method => "get"} .form-group %textarea{:name => "reason", :class => 'form-control'} .col-12 %input.submitReject.btn.btn-primary{:type => "submit"}/ %button.btn.btn-secondary{"aria-label" => "Close", "data-dismiss" => "modal", :type => "button"} %span{"aria-hidden" => "true"} Cancelar -# can nothing TODO validate -#= link_to admin_user_path(user), method: :get do -# %i.fa.fa-info-circle.fa-fw.fa-inverse -#.row.justify-content-md-center -# .col-4.text-center -# %p.grey -# Aprovar Associação -# .col-4.text-center -# %p.grey -# Declinar Associação -#.row.justify-content-md-center.pb-5 -# .col-4.text-center -# = link_to user_associate_approve_admin_users_path(@user), method: :get do -# %img{:alt => "Aprovar", :src => asset_path("/assets/icons/approve.png"}/ -# .col-4.text-center -# = link_to user_associate_reject_admin_users_path(@user), method: :get do -# %img{:alt => "Negar", :src => asset_path("/assets/icons/reject.png"}/ .row.justify-content-md-center.pb-5 .col-md-auto .form-actions = link_to "Voltar", :back, class: "btn btn-warning orange"