ref: master
app/views/profile_editor/_change_identifier.html.erb
<% if @environment.enabled?(feature_name) %> <% end %> <% if @environment.enabled?(feature_name) %> <%= hidden_field_tag 'old_profile_identifier', @profile.identifier %><%= required labelled_form_field( _('Address'), content_tag('code', url_for(profile.url).gsub(/#{profile.identifier}$/, '').html_safe + text_field(:profile_data, :identifier, :onchange => "warn_value_change()", :size => 25) ) + content_tag('div', content_tag('strong', _('WARNING!')) + ' ' + _("You are about to change the address, and this will break external links to the homepage or to content inside it. Do you really want to change?") + content_tag('div', button_to_function(:ok, _("Yes"), "confirm_change()") + ' ' + button_to_function(:cancel, _('No'), 'no_change()') ), :id => 'identifier-change-confirmation', :class => 'change-confirmation', :style => 'display: none;' ) ) %><% end %>