Sha256: fdf64f4e1947ddac152dcabc6e0716ba65871f501510b936fc8a623d8e2e784a

Contents?: true

Size: 1.14 KB

Versions: 34

Compression:

Stored size: 1.14 KB

Contents

<%= title [l(:label_user_plural), users_path], l(:label_user_new) %>

<%= labelled_form_for @user do |f| %>
  <%= render :partial => 'form', :locals => { :f => f } %>
  <% if email_delivery_enabled? %>
  <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p>
  <% end %>
  <p>
    <%= 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).attr('selected', true);
            $('select#user_auth_source_id').trigger('change');
          }
        });
      }
    });
  <% end %>
<% end %>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.39 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.0.38 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.0.37 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.1.11 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.1.10 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.0.36 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.0.34 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.1.09 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.1.07 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.1.06 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.1.05 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.1.04 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.1.03 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.0.33 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.1.02 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.1.01 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.0.29 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.0.28 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.0.27 spec/redmine/app/views/users/new.html.erb
redmine_extensions-0.0.24 spec/redmine/app/views/users/new.html.erb