scinote-web/app/views/users/shared/_azure_sign_in_links.html.erb

8 lines
440 B
Text
Raw Normal View History

<% ApplicationSettings.instance.values['azure_ad_apps'].select { |v| v['enable_sign_in'] }.each do |config| %>
2019-12-11 00:24:53 +08:00
<div class="form-group">
2023-03-09 18:54:58 +08:00
<%= form_tag user_customazureactivedirectory_omniauth_authorize_path(provider: config['provider_name']), method: :post, class: "azureAdForm" do %>
<%= submit_tag config['sign_in_label'] || t('devise.sessions.new.azure_ad_submit'), class: 'btn btn-primary' %>
2019-12-11 00:24:53 +08:00
<% end %>
</div>
<% end %>