.col-12.col-md-6.text-left.text-md-left.loged-font =image_tag("products/logo-cruza-grafos.png") .col-12.col-md-6.text-left.text-md-left.loged-font - if !@user.cruza_grafos_user %p.grey.pt-2 != t('cruza_grafos.subscribe_to') = link_to t('cruza_grafos.subscribe_to_label_button'), new_cruza_grafos_user_path, class: "btn btn-warning orange" %p = link_to t('cruza_grafos.see_our_faq'), "/acessando-o-cruzagrafos", class: "" - else - if @user.cruza_grafos_user.waiting_moderation? %p.grey.pt-2 != t('cruza_grafos.awaiting_moderation') - if @user.cruza_grafos_user.waiting_pay_user? -if @user.cruza_grafos_user.in_trial %p.grey.pt-2 != t('cruza_grafos.moderation_approved') = @user.cruza_grafos_user.valid_until.to_s = link_to t('cruza_grafos.moderation_approved_label_button'), "https://cruzagrafos.abraji.org.br/", target:"_blank", class: "btn btn-warning orange" -else %p.grey.pt-2 != t('cruza_grafos.trial_expired_text1') %p.grey.pt-2 != t('cruza_grafos.trial_expired_text2') = simple_form_for(:type, url: payment_pay_cruza_grafo_path, html: { method: :post }) do |f| .form-inputs.grey = f.input :type_id, as: :radio_buttons, required: true, label:false, collection: @types, label_method: :description, value_method: :id, checked: @types.first.id, item_wrapper_tag: :div .form-actions = f.button :submit, t('cruza_grafos.trial_expired_label_button') -# = link_to 'Assinar Cruza Grafos', payment_pay_cruza_grafo_path, method: :post, class: "btn btn-warning orange" - if @user.cruza_grafos_user.waiting_pay_confirm? %p.grey.pt-2 != t('cruza_grafos.awaiting_payment_return') - if @user.cruza_grafos_user.running? %p.grey.pt-2 != t('cruza_grafos.subscribe_active',actived_date: @user.cruza_grafos_user.approval_payment_date.to_date.to_s, expire_date: @user.cruza_grafos_user.valid_until.to_date.to_s) %br = link_to t('cruza_grafos.subscribe_active_label_button'), t('cruza_grafos.subscribe_active_link_button'), target:"_blank", class: "btn btn-warning orange" -#%p.grey.pt-2 -# Clique no botão para comprar mais 30 dias -# = link_to 'Cruza Grafos', payment_pay_cruza_grafo_path, method: :post, class: "btn btn-warning orange" - if @user.cruza_grafos_user.rejected_moderation? %p.grey.pt-2 != t('cruza_grafos.moderation_refused') - if @user.cruza_grafos_user.rejected_payment? %p.grey.pt-2 != t('cruza_grafos.payment_refused') = link_to t('cruza_grafos.payment_refused_label_button'), payment_pay_cruza_grafo_path, method: :post, class: "btn btn-warning orange" - if @user.cruza_grafos_user.expired? %p.grey.pt-2 != t('cruza_grafos.access_expired') %p.grey.pt-2 != t('cruza_grafos.trial_expired_text2') = simple_form_for(:type, url: payment_pay_cruza_grafo_path, html: { method: :post }) do |f| .form-inputs.grey = f.input :type_id, as: :radio_buttons, required: true, label:false, collection: @types, label_method: :description, value_method: :id, checked: @types.first.id, item_wrapper_tag: :div .form-actions = f.button :submit, t('cruza_grafos.trial_expired_label_button')