-
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.
fixes weird layout and extra space after card on larger screen-width
- Loading branch information
1 parent
372d495
commit c01f8d6
Showing
4 changed files
with
54 additions
and
68 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 |
---|---|---|
@@ -1,32 +1,35 @@ | ||
div id="provider-change-plan" | ||
- app = provider.bought_cinstance | ||
- plans = app.available_application_plans | ||
div class="pf-c-card" | ||
div class="pf-c-card__body" | ||
div id="provider-change-plan" | ||
- app = provider.bought_cinstance | ||
- plans = app.available_application_plans | ||
|
||
p #{provider.name} is currently on plan <b>#{ app.plan.name }</b> with these settings: | ||
p #{provider.name} is currently on plan <b>#{ app.plan.name }</b> with these settings: | ||
|
||
table.list | ||
- provider.available_switches.each do |switch| | ||
tr | ||
td | ||
b => t(:name, scope: [:switches, switch.name]) | ||
table.list | ||
- provider.available_switches.each do |switch| | ||
tr | ||
td | ||
b => t(:name, scope: [:switches, switch.name]) | ||
|
||
- if (description = t(:internal, scope: [:switches, switch.name], default: '').presence) | ||
| (#{description}) | ||
- if (description = t(:internal, scope: [:switches, switch.name], default: '').presence) | ||
| (#{description}) | ||
|
||
td | ||
=> switch.status.capitalize | ||
- if switch.denied? | ||
= fancy_button_to 'enable', master_provider_switch_path(provider, switch.name), method: :put, data: { confirm: 'Really?', disable_with: true } | ||
br | ||
= form_for app, builder: Fields::PatternflyFormBuilder, | ||
url: edit_master_provider_plan_path(provider), | ||
remote: true, | ||
method: :get, | ||
html: { class: 'pf-c-form' } do |form| | ||
= form.input :plan, as: :patternfly_select, | ||
collection: options_from_collection_for_select(plans, :id, :name), | ||
label: 'Change plan', | ||
required: false, | ||
include_blank: false | ||
= form.actions do | ||
= form.commit_button 'Change plan' | ||
td | ||
=> switch.status.capitalize | ||
td | ||
- if switch.denied? | ||
= fancy_button_to 'enable', master_provider_switch_path(provider, switch.name), method: :put, data: { confirm: 'Really?', disable_with: true } | ||
div class="pf-c-card__body" | ||
= form_for app, builder: Fields::PatternflyFormBuilder, | ||
url: edit_master_provider_plan_path(provider), | ||
remote: true, | ||
method: :get, | ||
html: { class: 'pf-c-form' } do |form| | ||
= form.input :plan, as: :patternfly_select, | ||
collection: options_from_collection_for_select(plans, :id, :name), | ||
label: 'Change plan', | ||
required: false, | ||
include_blank: false | ||
= form.actions do | ||
= form.commit_button 'Change 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