annotate .svn/pristine/01/01295ecfb41026f1bdc485aae7fd6a8c5187ac83.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 <div class="contextual">
Chris@1464 2 <%= link_to l(:label_user_new), new_user_path, :class => 'icon icon-add' %>
Chris@1464 3 </div>
Chris@1464 4
Chris@1464 5 <h2><%=l(:label_user_plural)%></h2>
Chris@1464 6
Chris@1464 7 <%= form_tag(users_path, :method => :get) do %>
Chris@1464 8 <fieldset><legend><%= l(:label_filter_plural) %></legend>
Chris@1464 9 <label for='status'><%= l(:field_status) %>:</label>
Chris@1464 10 <%= select_tag 'status', users_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %>
Chris@1464 11
Chris@1464 12 <% if @groups.present? %>
Chris@1464 13 <label for='group_id'><%= l(:label_group) %>:</label>
Chris@1464 14 <%= select_tag 'group_id', content_tag('option') + options_from_collection_for_select(@groups, :id, :name, params[:group_id].to_i), :onchange => "this.form.submit(); return false;" %>
Chris@1464 15 <% end %>
Chris@1464 16
Chris@1464 17 <label for='name'><%= l(:label_user) %>:</label>
Chris@1464 18 <%= text_field_tag 'name', params[:name], :size => 30 %>
Chris@1464 19 <%= submit_tag l(:button_apply), :class => "small", :name => nil %>
Chris@1464 20 <%= link_to l(:button_clear), users_path, :class => 'icon icon-reload' %>
Chris@1464 21 </fieldset>
Chris@1464 22 <% end %>
Chris@1464 23 &nbsp;
Chris@1464 24
Chris@1464 25 <div class="autoscroll">
Chris@1464 26 <table class="list">
Chris@1464 27 <thead><tr>
Chris@1464 28 <%= sort_header_tag('login', :caption => l(:field_login)) %>
Chris@1464 29 <%= sort_header_tag('firstname', :caption => l(:field_firstname)) %>
Chris@1464 30 <%= sort_header_tag('lastname', :caption => l(:field_lastname)) %>
Chris@1464 31 <%= sort_header_tag('mail', :caption => l(:field_mail)) %>
Chris@1464 32 <%= sort_header_tag('admin', :caption => l(:field_admin), :default_order => 'desc') %>
Chris@1464 33 <%= sort_header_tag('created_on', :caption => l(:field_created_on), :default_order => 'desc') %>
Chris@1464 34 <%= sort_header_tag('last_login_on', :caption => l(:field_last_login_on), :default_order => 'desc') %>
Chris@1464 35 <th></th>
Chris@1464 36 </tr></thead>
Chris@1464 37 <tbody>
Chris@1464 38 <% for user in @users -%>
Chris@1464 39 <tr class="<%= user.css_classes %> <%= cycle("odd", "even") %>">
Chris@1464 40 <td class="username"><%= avatar(user, :size => "14") %><%= link_to h(user.login), edit_user_path(user) %></td>
Chris@1464 41 <td class="firstname"><%= h(user.firstname) %></td>
Chris@1464 42 <td class="lastname"><%= h(user.lastname) %></td>
Chris@1464 43 <td class="email"><%= mail_to(h(user.mail)) %></td>
Chris@1464 44 <td class="tick"><%= checked_image user.admin? %></td>
Chris@1464 45 <td class="created_on"><%= format_time(user.created_on) %></td>
Chris@1464 46 <td class="last_login_on"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
Chris@1464 47 <td class="buttons">
Chris@1464 48 <%= change_status_link(user) %>
Chris@1464 49 <%= delete_link user_path(user, :back_url => users_path(params)) unless User.current == user %>
Chris@1464 50 </td>
Chris@1464 51 </tr>
Chris@1464 52 <% end -%>
Chris@1464 53 </tbody>
Chris@1464 54 </table>
Chris@1464 55 </div>
Chris@1464 56 <p class="pagination"><%= pagination_links_full @user_pages, @user_count %></p>
Chris@1464 57
Chris@1464 58 <% html_title(l(:label_user_plural)) -%>