Use bootstrap4 style

panel -> card

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-05-18 15:46:21 +09:00
parent ac6d2e5d67
commit d89bccef98
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1
2 changed files with 17 additions and 17 deletions

View File

@ -1,7 +1,7 @@
.panel.panel-default
.panel-heading
.card
.card-header
= t('.update_title', title: fluentd_ui_title)
.panel-body
.card-body
#processing
= icon('fa-lg fa-gear fa-spin')
= t('.updating')

View File

@ -54,17 +54,17 @@ describe "source_and_output", js: true, stub: :daemon do
it do
page.should_not have_content(I18n.t("fluentd.settings.source_and_output.setting_empty"))
page.should have_css('.input .panel .panel-heading')
page.should have_css('.output .panel .panel-heading')
page.should have_css('.input .card .card-header')
page.should have_css('.output .card .card-header')
end
it ".panel-body is hidden by default and click .panel-heading for display" do
page.should_not have_css('.input .panel .panel-body')
page.should_not have_css('.output .panel .panel-body')
all(".input .panel .panel-heading").first.click
page.should have_css('.input .panel .panel-body')
all(".output .panel .panel-heading").first.click
page.should have_css('.output .panel .panel-body')
it ".card-body is hidden by default and click .card-header for display" do
page.should_not have_css('.input .card .card-body')
page.should_not have_css('.output .card .card-body')
all(".input .card .card-header").first.click
page.should have_css('.input .card .card-body')
all(".output .card .card-header").first.click
page.should have_css('.output .card .card-body')
end
it "display plugin name" do
@ -94,7 +94,7 @@ describe "source_and_output", js: true, stub: :daemon do
CONF
before do
all(".input .panel .panel-heading").first.click
all(".input .card .card-header").first.click
end
it "click edit button transform textarea, then click cancel button to be reset" do
@ -136,20 +136,20 @@ describe "source_and_output", js: true, stub: :daemon do
end
it "click delete button transform textarea" do
page.should have_css('.input .panel-body')
page.should have_css('.input .card-body')
confirm_dialog(true) do
find(".btn", text: I18n.t('terms.destroy')).click
end
page.should_not have_css('.input .panel-body')
page.should_not have_css('.input .card-body')
daemon.agent.config.strip.should == ""
end
it "click delete button then cancel it" do
page.should have_css('.input .panel-body')
page.should have_css('.input .card-body')
confirm_dialog(false) do
find(".btn", text: I18n.t('terms.destroy')).click
end
page.should have_css('.input .panel-body')
page.should have_css('.input .card-body')
daemon.agent.config.strip.should == config_contents.strip
end
end