diff --git a/app/controllers/identity_providers_controller.rb b/app/controllers/identity_providers_controller.rb index 06cedfb20..7656e9c6e 100644 --- a/app/controllers/identity_providers_controller.rb +++ b/app/controllers/identity_providers_controller.rb @@ -7,6 +7,7 @@ class IdentityProvidersController < ApplicationController before_action :set_identity_provider, only: %i[edit update destroy] def index + add_breadcrumbs @identity_providers = IdentityProvider.all end diff --git a/app/views/hyrax/dashboard/sidebar/_configuration.html.erb b/app/views/hyrax/dashboard/sidebar/_configuration.html.erb index 8e31594a1..85184aab0 100644 --- a/app/views/hyrax/dashboard/sidebar/_configuration.html.erb +++ b/app/views/hyrax/dashboard/sidebar/_configuration.html.erb @@ -16,7 +16,7 @@ <% end %> <%= menu.nav_link(main_app.identity_providers_path, class: "nav-link") do %> -
+ <% end %> <%= menu.nav_link(main_app.edit_site_labels_path, diff --git a/app/views/identity_providers/_form.html.erb b/app/views/identity_providers/_form.html.erb index 5958f3105..499cc0fbe 100644 --- a/app/views/identity_providers/_form.html.erb +++ b/app/views/identity_providers/_form.html.erb @@ -11,7 +11,7 @@ <% end %> - <%= f.input :name %> + <%= f.input :name, label: t('hyku.identity_provider.label.name'), required: true %> <%= f.input :provider, collection: Devise.omniauth_providers.map {|o| [o, o.upcase]}, label_method: :second, @@ -38,12 +38,12 @@Metadata is available <%= link_to 'here', "/users/auth/saml/#{@identity_provider.id}/metadata", data: { turbolinks: false } %>
<% end %> - <%= f.input :options, input_html: {value: @identity_provider.options&.to_json } %> + <%= f.input :options, label: t('hyku.identity_provider.label.options'), input_html: {value: @identity_provider.options&.to_json } %> <%# Upload Logo Image %> - <%= f.input :logo_image, as: :file, wrapper: :vertical_file_input, hint: t('hyrax.admin.appearances.show.forms.logo_image.hint') %> - <%= f.input :logo_image_text, as: :text %> + <%= f.input :logo_image, label: t('hyku.identity_provider.label.logo_image'), as: :file, wrapper: :vertical_file_input, hint: t('hyrax.admin.appearances.show.forms.logo_image.hint') %> + <%= f.input :logo_image_text, label: t('hyku.identity_provider.label.logo_image_alt_text'), as: :text %> <%= image_tag f.object.logo_image.url(:medium), class: "img-responsive", alt: f.object.logo_image_text if f.object.logo_image? %> diff --git a/app/views/identity_providers/index.html.erb b/app/views/identity_providers/index.html.erb index d56219c3d..80a459f93 100644 --- a/app/views/identity_providers/index.html.erb +++ b/app/views/identity_providers/index.html.erb @@ -1,5 +1,5 @@ <% content_for :page_header do %> -Name | -Provider | -Updated At | -Logo | +<%= t('hyku.identity_provider.label.name') %> | +<%= t('hyku.identity_provider.label.provider') %> | +<%= t('hyku.identity_provider.label.updated_at') %> | +<%= t('hyku.identity_provider.label.logo') %> | <%= u.updated_at %> | <%= image_tag u.logo_image.url(:thumb), class: "img-fluid", alt: u.logo_image_text if u.logo_image? %> | - <%= link_to t('.edit'), edit_identity_provider_path(u) %> | + <%= link_to t('hyku.identity_provider.label.edit'), edit_identity_provider_path(u) %> | <%= link_to t('helpers.action.delete'), identity_provider_path(u), method: :delete, data: { confirm: t('.confirm_delete') } %> | @@ -32,7 +32,7 @@
---|