1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-10-17 17:01:01 +00:00
redmine/app/views/users/new.html.erb
Go MAEDA a175bc5aac Submit button incorrectly displayed in the middle of the form on mobile view (#38795).
Patch by Kenta Kumojima (user:kumojima).


git-svn-id: https://svn.redmine.org/redmine/trunk@23932 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-08-22 09:03:07 +00:00

31 lines
1.2 KiB
Plaintext

<%= title [l(:label_user_plural), users_path], l(:label_user_new) %>
<%= labelled_form_for @user, :html => {:multipart => true} do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<% if email_delivery_enabled? %>
<p><label><%= check_box_tag 'send_information', 1, params[:send_information] %> <%= l(:label_send_information) %></label></p>
<% end %>
<p class="mobile-show">
<%= submit_tag l(:button_create) %>
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
</p>
<% end %>
<% if @auth_sources.present? && @auth_sources.any?(&:searchable?) %>
<%= javascript_tag do %>
observeAutocompleteField('user_login', '<%= escape_javascript autocomplete_for_new_user_auth_sources_path %>', {
select: function(event, ui) {
$('input#user_firstname').val(ui.item.firstname);
$('input#user_lastname').val(ui.item.lastname);
$('input#user_mail').val(ui.item.mail);
$('select#user_auth_source_id option').each(function(){
if ($(this).attr('value') == ui.item.auth_source_id) {
$(this).prop('selected', true);
$('select#user_auth_source_id').trigger('change');
}
});
}
});
<% end %>
<% end %>