Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
6
app/views/auth_sources/_form.html.erb
Normal file
6
app/views/auth_sources/_form.html.erb
Normal file
|
@ -0,0 +1,6 @@
|
|||
<%= error_messages_for 'auth_source' %>
|
||||
|
||||
<div class="box tabular">
|
||||
<p><%= f.text_field :name, :required => true %></p>
|
||||
<p><%= f.check_box :onthefly_register, :label => :field_onthefly %></p>
|
||||
</div>
|
24
app/views/auth_sources/_form_auth_source_ldap.html.erb
Normal file
24
app/views/auth_sources/_form_auth_source_ldap.html.erb
Normal file
|
@ -0,0 +1,24 @@
|
|||
<%= error_messages_for 'auth_source' %>
|
||||
|
||||
<div class="box tabular">
|
||||
<p><%= f.text_field :name, :required => true %></p>
|
||||
<p><%= f.text_field :host, :required => true %></p>
|
||||
<p><%= f.text_field :port, :required => true, :size => 6 %> <%= f.check_box :tls, :no_label => true %> LDAPS</p>
|
||||
<p><%= f.text_field :account %></p>
|
||||
<p><%= f.password_field :account_password, :label => :field_password,
|
||||
:name => 'dummy_password',
|
||||
:value => ((@auth_source.new_record? || @auth_source.account_password.blank?) ? '' : ('x'*15)),
|
||||
:onfocus => "this.value=''; this.name='auth_source[account_password]';",
|
||||
:onchange => "this.name='auth_source[account_password]';" %></p>
|
||||
<p><%= f.text_field :base_dn, :required => true, :size => 60 %></p>
|
||||
<p><%= f.text_area :filter, :size => 60, :label => :field_auth_source_ldap_filter %></p>
|
||||
<p><%= f.text_field :timeout, :size => 4 %></p>
|
||||
<p><%= f.check_box :onthefly_register, :label => :field_onthefly %></p>
|
||||
</div>
|
||||
|
||||
<fieldset class="box tabular"><legend><%=l(:label_attribute_plural)%></legend>
|
||||
<p><%= f.text_field :attr_login, :required => true, :size => 20 %></p>
|
||||
<p><%= f.text_field :attr_firstname, :size => 20 %></p>
|
||||
<p><%= f.text_field :attr_lastname, :size => 20 %></p>
|
||||
<p><%= f.text_field :attr_mail, :size => 20 %></p>
|
||||
</fieldset>
|
6
app/views/auth_sources/edit.html.erb
Normal file
6
app/views/auth_sources/edit.html.erb
Normal file
|
@ -0,0 +1,6 @@
|
|||
<%= title [l(:label_auth_source_plural), auth_sources_path], @auth_source.name %>
|
||||
|
||||
<%= labelled_form_for @auth_source, :as => :auth_source, :url => auth_source_path(@auth_source), :html => {:id => 'auth_source_form'} do |f| %>
|
||||
<%= render :partial => auth_source_partial_name(@auth_source), :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
31
app/views/auth_sources/index.html.erb
Normal file
31
app/views/auth_sources/index.html.erb
Normal file
|
@ -0,0 +1,31 @@
|
|||
<div class="contextual">
|
||||
<%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %>
|
||||
</div>
|
||||
|
||||
<%= title l(:label_auth_source_plural) %>
|
||||
|
||||
<table class="list">
|
||||
<thead><tr>
|
||||
<th><%=l(:field_name)%></th>
|
||||
<th><%=l(:field_type)%></th>
|
||||
<th><%=l(:field_host)%></th>
|
||||
<th><%=l(:label_user_plural)%></th>
|
||||
<th></th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<% for source in @auth_sources %>
|
||||
<tr id="auth-source-<%= source.id %>">
|
||||
<td class="name"><%= link_to(source.name, :action => 'edit', :id => source)%></td>
|
||||
<td><%= source.auth_method_name %></td>
|
||||
<td><%= source.host %></td>
|
||||
<td><%= source.users.count %></td>
|
||||
<td class="buttons">
|
||||
<%= link_to l(:button_test), try_connection_auth_source_path(source), :class => 'icon icon-test' %>
|
||||
<%= delete_link auth_source_path(source) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span class="pagination"><%= pagination_links_full @auth_source_pages %></span>
|
7
app/views/auth_sources/new.html.erb
Normal file
7
app/views/auth_sources/new.html.erb
Normal file
|
@ -0,0 +1,7 @@
|
|||
<%= title [l(:label_auth_source_plural), auth_sources_path], "#{l(:label_auth_source_new)} (#{@auth_source.auth_method_name})" %>
|
||||
|
||||
<%= labelled_form_for @auth_source, :as => :auth_source, :url => auth_sources_path, :html => {:id => 'auth_source_form'} do |f| %>
|
||||
<%= hidden_field_tag 'type', @auth_source.type %>
|
||||
<%= render :partial => auth_source_partial_name(@auth_source), :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<% end %>
|
Loading…
Add table
Add a link
Reference in a new issue