Skip to content

Commit

Permalink
Adding a welcoming page prompting to add a Provider
Browse files Browse the repository at this point in the history
  • Loading branch information
romanblanco committed Apr 5, 2019
1 parent 3ffd0c0 commit 8dab2a2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
18 changes: 18 additions & 0 deletions app/views/ems_infra/_empty.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.blank-slate-pf
.blank-slate-pf-icon
%span.pficon.pficon-add-circle-o
%h1= _("Add a Provider")
%p
= _("You don't have any providers to display. Please add a Provider.")
%p
= _("Learn more about this")
%a{:href => "https://manageiq.org/docs/get-started/add-a-provider"}
= _("in the documentation.")
.blank-slate-pf-main-action
= link_to(_('Add a Provider'),
{:action => 'new'},
:class => 'btn btn-primary btn-lg',
"data-miq_sparkle_on" => true,
"data-miq_sparkle_off" => true,
"data-method" => :post,
:title => _("Add a new Infrastructure Provider"))
5 changes: 4 additions & 1 deletion app/views/ems_infra/show_list.html.haml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
#main_div
= render :partial => 'layouts/gtl'
- if ExtManagementSystem.any?
= render :partial => 'layouts/gtl'
- else
= render :partial => 'empty'
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,7 @@
tagging_edit
),
:post => %w(
new
button
create
form_field_changed
Expand Down

0 comments on commit 8dab2a2

Please sign in to comment.