summaryrefslogtreecommitdiffstats
path: root/app/views/auth_sources
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-05 20:45:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-05 20:45:04 +0000
commit96f83cc8f0f032554f771a59da22303cd473b878 (patch)
tree355a0d2ed653a5426c59ebf6a1fe65eba024b4d0 /app/views/auth_sources
parenteabc04d8368824965d3ac8de3fa84502e9c05d38 (diff)
downloadredmine-96f83cc8f0f032554f771a59da22303cd473b878.tar.gz
redmine-96f83cc8f0f032554f771a59da22303cd473b878.zip
trunk moved from /trunk/redmine to /trunk
git-svn-id: http://redmine.rubyforge.org/svn/trunk@67 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/auth_sources')
-rw-r--r--app/views/auth_sources/_form.rhtml45
-rw-r--r--app/views/auth_sources/edit.rhtml7
-rw-r--r--app/views/auth_sources/list.rhtml30
-rw-r--r--app/views/auth_sources/new.rhtml6
4 files changed, 88 insertions, 0 deletions
diff --git a/app/views/auth_sources/_form.rhtml b/app/views/auth_sources/_form.rhtml
new file mode 100644
index 000000000..b6365dce5
--- /dev/null
+++ b/app/views/auth_sources/_form.rhtml
@@ -0,0 +1,45 @@
+<%= error_messages_for 'auth_source' %>
+
+<div class="box">
+<!--[form:auth_source]-->
+<p><label for="auth_source_name"><%=l(:field_name)%> <span class="required">*</span></label>
+<%= text_field 'auth_source', 'name' %></p>
+
+<p><label for="auth_source_host"><%=l(:field_host)%> <span class="required">*</span></label>
+<%= text_field 'auth_source', 'host' %></p>
+
+<p><label for="auth_source_port"><%=l(:field_port)%> <span class="required">*</span></label>
+<%= text_field 'auth_source', 'port', :size => 6 %></p>
+
+<p><label for="auth_source_account"><%=l(:field_account)%></label>
+<%= text_field 'auth_source', 'account' %></p>
+
+<p><label for="auth_source_account_password"><%=l(:field_password)%></label>
+<%= password_field 'auth_source', 'account_password' %></p>
+
+<p><label for="auth_source_base_dn"><%=l(:field_base_dn)%> <span class="required">*</span></label>
+<%= text_field 'auth_source', 'base_dn', :size => 60 %></p>
+</div>
+
+<div class="box">
+<p><label for="auth_source_onthefly_register"><%=l(:field_onthefly)%></label>
+<%= check_box 'auth_source', 'onthefly_register' %></p>
+
+<p>
+<fieldset><legend><%=l(:label_attribute_plural)%></legend>
+<p><label for="auth_source_attr_login"><%=l(:field_login)%> <span class="required">*</span></label>
+<%= text_field 'auth_source', 'attr_login', :size => 20 %></p>
+
+<p><label for="auth_source_attr_firstname"><%=l(:field_firstname)%></label>
+<%= text_field 'auth_source', 'attr_firstname', :size => 20 %></p>
+
+<p><label for="auth_source_attr_lastname"><%=l(:field_lastname)%></label>
+<%= text_field 'auth_source', 'attr_lastname', :size => 20 %></p>
+
+<p><label for="auth_source_attr_mail"><%=l(:field_mail)%></label>
+<%= text_field 'auth_source', 'attr_mail', :size => 20 %></p>
+</fieldset>
+</p>
+</div>
+<!--[eoform:auth_source]-->
+
diff --git a/app/views/auth_sources/edit.rhtml b/app/views/auth_sources/edit.rhtml
new file mode 100644
index 000000000..149463e7f
--- /dev/null
+++ b/app/views/auth_sources/edit.rhtml
@@ -0,0 +1,7 @@
+<h2><%=l(:label_auth_source)%> (<%= @auth_source.auth_method_name %>)</h2>
+
+<%= start_form_tag({:action => 'update', :id => @auth_source}, :class => "tabular") %>
+ <%= render :partial => 'form' %>
+ <%= submit_tag l(:button_save) %>
+<%= end_form_tag %>
+
diff --git a/app/views/auth_sources/list.rhtml b/app/views/auth_sources/list.rhtml
new file mode 100644
index 000000000..47cbeeaff
--- /dev/null
+++ b/app/views/auth_sources/list.rhtml
@@ -0,0 +1,30 @@
+<h2><%=l(:label_auth_source_plural)%></h2>
+
+<table class="listTableContent">
+ <tr class="ListHead">
+ <th><%=l(:field_name)%></th>
+ <th><%=l(:field_type)%></th>
+ <th><%=l(:field_host)%></th>
+ <th></th>
+ <th></th>
+ </tr>
+
+<% for source in @auth_sources %>
+ <tr class="<%= cycle("odd", "even") %>">
+ <td><%= link_to source.name, :action => 'edit', :id => source%></td>
+ <td align="center"><%= source.auth_method_name %></td>
+ <td align="center"><%= source.host %></td>
+ <td align="center">
+ <%= link_to l(:button_test), :action => 'test_connection', :id => source %>
+ </td>
+ <td align="center">
+ <%= button_to l(:button_delete), { :action => 'destroy', :id => source }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
+ </td>
+ </tr>
+<% end %>
+</table>
+
+<%= pagination_links_full @auth_source_pages %>
+<br />
+<%= link_to '&#187; ' + l(:label_auth_source_new), :action => 'new' %>
+
diff --git a/app/views/auth_sources/new.rhtml b/app/views/auth_sources/new.rhtml
new file mode 100644
index 000000000..29d66327b
--- /dev/null
+++ b/app/views/auth_sources/new.rhtml
@@ -0,0 +1,6 @@
+<h2><%=l(:label_auth_source_new)%> (<%= @auth_source.auth_method_name %>)</h2>
+
+<%= start_form_tag({:action => 'create'}, :class => "tabular") %>
+ <%= render :partial => 'form' %>
+ <%= submit_tag l(:button_create) %>
+<%= end_form_tag %>