|
| 1 | +<%#-- copyright |
| 2 | +OpenProject is an open source project management software. |
| 3 | +Copyright (C) the OpenProject GmbH |
| 4 | +
|
| 5 | +This program is free software; you can redistribute it and/or |
| 6 | +modify it under the terms of the GNU General Public License version 3. |
| 7 | +
|
| 8 | +OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: |
| 9 | +Copyright (C) 2006-2013 Jean-Philippe Lang |
| 10 | +Copyright (C) 2010-2013 the ChiliProject Team |
| 11 | +
|
| 12 | +This program is free software; you can redistribute it and/or |
| 13 | +modify it under the terms of the GNU General Public License |
| 14 | +as published by the Free Software Foundation; either version 2 |
| 15 | +of the License, or (at your option) any later version. |
| 16 | +
|
| 17 | +This program is distributed in the hope that it will be useful, |
| 18 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | +GNU General Public License for more details. |
| 21 | +
|
| 22 | +You should have received a copy of the GNU General Public License |
| 23 | +along with this program; if not, write to the Free Software |
| 24 | +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 25 | +
|
| 26 | +See COPYRIGHT and LICENSE files for more details. |
| 27 | +
|
| 28 | +++#%> |
| 29 | +<%= styled_form_tag(saml_provider_path(@provider), |
| 30 | + class: 'danger-zone', |
| 31 | + method: :delete) do %> |
| 32 | + <section class="form--section"> |
| 33 | + <h3 class="form--section-title"> |
| 34 | + <%= t('saml.delete_title') %> |
| 35 | + </h3> |
| 36 | + <p> |
| 37 | + <%= t('provider.delete_warning.provider', name: content_tag(:strong, @provider.display_name)).html_safe %> |
| 38 | + </p> |
| 39 | + <ul class="mb-3"> |
| 40 | + <li> <%= t('provider.delete_warning.delete_result_1') %> |
| 41 | + <li> <%= t('provider.delete_warning.delete_result_user_count', count: @provider.user_count) %> |
| 42 | + <% if Setting.omniauth_direct_login_provider == @provider.slug %> |
| 43 | + <li> <%= t('provider.delete_warning.delete_result_direct') %> |
| 44 | + <% end %> |
| 45 | + </ul> |
| 46 | + <p class="danger-zone--warning"> |
| 47 | + <span class="icon icon-error"></span> |
| 48 | + <span><%= t('provider.delete_warning.irreversible_notice') %></span> |
| 49 | + </p> |
| 50 | + <p> |
| 51 | + <%= t('provider.delete_warning.input_delete_confirmation', name: "<em class=\"danger-zone--expected-value\">#{h(@provider.display_name)}</em>").html_safe %> |
| 52 | + </p> |
| 53 | + <div class="danger-zone--verification"> |
| 54 | + <%= text_field_tag :delete_confirmation %> |
| 55 | + <%= styled_button_tag title: t(:button_delete), class: '-primary', disabled: true do |
| 56 | + concat content_tag :i, '', class: 'button--icon icon-delete' |
| 57 | + concat content_tag :span, t(:button_delete), class: 'button--text' |
| 58 | + end %> |
| 59 | + <%= link_to saml_providers_path, |
| 60 | + title: t(:button_cancel), |
| 61 | + class: 'button -with-icon icon-cancel' do %> |
| 62 | + <%= t(:button_cancel) %> |
| 63 | + <% end %> |
| 64 | + </div> |
| 65 | + </section> |
| 66 | +<% end %> |
0 commit comments