Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930
  1. <%= title [l(:label_user_plural), users_path], l(:label_user_new) %>
  2. <%= labelled_form_for @user, :html => {:multipart => true} do |f| %>
  3. <%= render :partial => 'form', :locals => { :f => f } %>
  4. <% if email_delivery_enabled? %>
  5. <p><label><%= check_box_tag 'send_information', 1, params[:send_information] %> <%= l(:label_send_information) %></label></p>
  6. <% end %>
  7. <p>
  8. <%= submit_tag l(:button_create) %>
  9. <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
  10. </p>
  11. <% end %>
  12. <% if @auth_sources.present? && @auth_sources.any?(&:searchable?) %>
  13. <%= javascript_tag do %>
  14. observeAutocompleteField('user_login', '<%= escape_javascript autocomplete_for_new_user_auth_sources_path %>', {
  15. select: function(event, ui) {
  16. $('input#user_firstname').val(ui.item.firstname);
  17. $('input#user_lastname').val(ui.item.lastname);
  18. $('input#user_mail').val(ui.item.mail);
  19. $('select#user_auth_source_id option').each(function(){
  20. if ($(this).attr('value') == ui.item.auth_source_id) {
  21. $(this).prop('selected', true);
  22. $('select#user_auth_source_id').trigger('change');
  23. }
  24. });
  25. }
  26. });
  27. <% end %>
  28. <% end %>