summaryrefslogtreecommitdiffstats
path: root/app/views/settings/_authentication.html.erb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-25 01:20:36 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-25 01:20:36 +0000
commitccaf6229839a9a854f336653e242b7e70a6e77c3 (patch)
tree8a4f17a1d7a8fa660aac1ad3ba31f4194b5b14f0 /app/views/settings/_authentication.html.erb
parent7b29a61ef448d26564b40893b2a0395ebefe11af (diff)
downloadredmine-ccaf6229839a9a854f336653e242b7e70a6e77c3.tar.gz
redmine-ccaf6229839a9a854f336653e242b7e70a6e77c3.zip
rename .rhtml to .html.erb of app/views/settings/_authentication.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6614 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/settings/_authentication.html.erb')
-rw-r--r--app/views/settings/_authentication.html.erb23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/views/settings/_authentication.html.erb b/app/views/settings/_authentication.html.erb
new file mode 100644
index 000000000..90781f0b4
--- /dev/null
+++ b/app/views/settings/_authentication.html.erb
@@ -0,0 +1,23 @@
+<% form_tag({:action => 'edit', :tab => 'authentication'}) do %>
+
+<div class="box tabular settings">
+<p><%= setting_check_box :login_required %></p>
+
+<p><%= setting_select :autologin, [[l(:label_disabled), 0]] + [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]} %></p>
+
+<p><%= setting_select :self_registration, [[l(:label_disabled), "0"],
+ [l(:label_registration_activation_by_email), "1"],
+ [l(:label_registration_manual_activation), "2"],
+ [l(:label_registration_automatic_activation), "3"]] %></p>
+
+<p><%= setting_text_field :password_min_length, :size => 6 %></p>
+
+<p><%= setting_check_box :lost_password, :label => :label_password_lost %></p>
+
+<p><%= setting_check_box :openid, :disabled => !Object.const_defined?(:OpenID) %></p>
+
+<p><%= setting_check_box :rest_api_enabled %></p>
+</div>
+
+<%= submit_tag l(:button_save) %>
+<% end %>