Initial commit
This commit is contained in:
commit
ad1e1eef42
2 changed files with 45 additions and 0 deletions
37
app/views/account/register.html.erb
Normal file
37
app/views/account/register.html.erb
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
<h2><%=l(:label_register)%></h2>
|
||||||
|
|
||||||
|
<%= labelled_form_for @user, :url => register_path do |f| %>
|
||||||
|
<%= error_messages_for 'user' %>
|
||||||
|
|
||||||
|
<div class="box tabular">
|
||||||
|
<% if @user.auth_source_id.nil? %>
|
||||||
|
<p><%= f.text_field :login, :size => 25, :required => true %></p>
|
||||||
|
|
||||||
|
<p><%= f.password_field :password, :size => 25, :required => true %>
|
||||||
|
<em class="info"><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em>
|
||||||
|
<% if Setting.password_required_char_classes.any? %>
|
||||||
|
<em class="info"><%= l(:text_characters_must_contain, :character_classes => Setting.password_required_char_classes.collect{|c| l("label_password_char_class_#{c}")}.join(", ")) %></em>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
|
<p><%= f.password_field :password_confirmation, :size => 25, :required => true %></p>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<p hidden><%= f.text_field :firstname, value: ".", :required => true %></p>
|
||||||
|
<p hidden><%= f.text_field :lastname, value: ".", :required => true %></p>
|
||||||
|
<p><%= f.text_field :mail, :required => true %></p>
|
||||||
|
<%= labelled_fields_for :pref, @user.pref do |pref_fields| %>
|
||||||
|
<p><%= pref_fields.check_box :hide_mail %></p>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
|
<% unless @user.force_default_language? %>
|
||||||
|
<p><%= f.select :language, lang_options_for_select %></p>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% @user.custom_field_values.select {|v| (Setting.show_custom_fields_on_registration? && v.editable?) || v.required?}.each do |value| %>
|
||||||
|
<p><%= custom_field_tag_with_label :user, value %></p>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<%= submit_tag l(:button_submit) %>
|
||||||
|
<% end %>
|
8
init.rb
Normal file
8
init.rb
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
Redmine::Plugin.register :redmine_sao do
|
||||||
|
name 'systemausfall.org Anpassungen'
|
||||||
|
author 'systemausfall.org'
|
||||||
|
description 'Anpassungen für Redmine-Instanzen auf systemausfall.org'
|
||||||
|
version '0.2.0'
|
||||||
|
url 'https://systemausfall.org'
|
||||||
|
author_url 'https://systemausfall.org'
|
||||||
|
end
|
Loading…
Reference in a new issue