-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3739 from 3scale/THREESCALE-10691_account_overvie…
…w_cards 🦋 Account overview layout (Cards)
- Loading branch information
Showing
10 changed files
with
215 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
- account = local_assigns[:account] | ||
table.list | ||
tr | ||
th = account.field_label("org_name") | ||
td | ||
= account.field_value("org_name") | ||
- if can? :impersonate, account | ||
=> link_to 'Impersonate', | ||
admin_buyers_account_impersonation_path(account), | ||
class: 'action bolt', method: 'post', target: '_blank' | ||
=> link_to 'Send message', | ||
new_provider_admin_messages_outbox_path(to: account), | ||
class: 'action message fancybox' | ||
- if current_account.master? && account.provider? | ||
tr | ||
th Public domain | ||
td = link_to account.external_domain, public_domain(account), target: "_blank" | ||
tr | ||
th Admin domain | ||
td = link_to account.external_admin_domain, | ||
provider_admin_dashboard_url(host: account.external_admin_domain), | ||
target: "_blank" | ||
- if account.admins.present? | ||
tr | ||
th Administrator | ||
td | ||
=> account.admin_user_display_name | ||
- admin_user_email = account.admin_user.email | ||
- if admin_user_email.present? | ||
| (#{mail_to admin_user_email}) | ||
tr | ||
th Signed up on | ||
td = account.created_at.to_s(:long) | ||
= fields_definitions_rows account, | ||
%w{org_name org_legaladdress org_legaladdress_cont city state_region} | ||
- unless account.org_legaladdress.blank? \ | ||
&& account.org_legaladdress_cont.blank? \ | ||
&& account.city.blank? && account.state_region.blank? \ | ||
&& account.country.try(:name).blank? | ||
tr | ||
th Address | ||
td = account_address(account) | ||
tr | ||
th Status | ||
td | ||
=> account_states_info(account) | ||
- if account.pending? | ||
=> fancy_button_to 'Approve', | ||
approve_admin_buyers_account_path(account), | ||
method: :post, | ||
class: 'approve action' | ||
=> fancy_button_to 'Reject', | ||
reject_admin_buyers_account_path(account), | ||
method: :post, | ||
class: 'reject action' | ||
- unless account.suspended_or_scheduled_for_deletion? | ||
= action_link_to 'Suspend', | ||
suspend_admin_buyers_account_path(account), | ||
method: :post, | ||
data: { confirm: 'Are you sure?', disable_with: 'suspending…' }, | ||
class: 'action suspend' | ||
- if can?(:resume, account) && account.can_resume? | ||
= action_link_to 'Resume', | ||
resume_admin_buyers_account_path(account), | ||
method: :post, | ||
data: { confirm: 'Are you sure?', disable_with: 'resuming…' }, | ||
class: 'action resume' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- account = local_assigns[:account] | ||
- plans = local_assigns[:plans] | ||
|
||
= form_for account.bought_account_contract, builder: Fields::PatternflyFormBuilder, | ||
url: admin_buyers_account_contract_path(account), | ||
html: { method: :put, class: "pf-c-form" } do |form| | ||
div class="pf-c-form__group" | ||
div class="pf-c-form__group-label" | ||
label class="pf-c-form__label" for="cinstance_plan_id" | ||
span class="pf-c-form__label-text" Change Plan | ||
= form.collection_select :plan_id, plans, :id, :name | ||
|
||
= form.actions do | ||
= form.commit_button 'Change', data: { confirm: plan_confirm_message(account.bought_account_plan) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<h3>Billing Status</h3> | ||
<table class='list' id='finance-status'> | ||
|
||
<tr> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.