commit ad1e1eef4270ab85614e2159010d816d1b960232 Author: phil Date: Wed Apr 12 20:25:45 2023 +0200 Initial commit diff --git a/app/views/account/register.html.erb b/app/views/account/register.html.erb new file mode 100644 index 0000000..ddf94f6 --- /dev/null +++ b/app/views/account/register.html.erb @@ -0,0 +1,37 @@ +

<%=l(:label_register)%>

+ +<%= labelled_form_for @user, :url => register_path do |f| %> +<%= error_messages_for 'user' %> + +
+<% if @user.auth_source_id.nil? %> +

<%= f.text_field :login, :size => 25, :required => true %>

+ +

<%= f.password_field :password, :size => 25, :required => true %> + <%= l(:text_caracters_minimum, :count => Setting.password_min_length) %> + <% if Setting.password_required_char_classes.any? %> + <%= l(:text_characters_must_contain, :character_classes => Setting.password_required_char_classes.collect{|c| l("label_password_char_class_#{c}")}.join(", ")) %> + <% end %> +

+

<%= f.password_field :password_confirmation, :size => 25, :required => true %>

+<% end %> + + + +

<%= f.text_field :mail, :required => true %>

+<%= labelled_fields_for :pref, @user.pref do |pref_fields| %> +

<%= pref_fields.check_box :hide_mail %>

+<% end %> + + +<% unless @user.force_default_language? %> +

<%= f.select :language, lang_options_for_select %>

+<% end %> + +<% @user.custom_field_values.select {|v| (Setting.show_custom_fields_on_registration? && v.editable?) || v.required?}.each do |value| %> +

<%= custom_field_tag_with_label :user, value %>

+<% end %> +
+ +<%= submit_tag l(:button_submit) %> +<% end %> diff --git a/init.rb b/init.rb new file mode 100644 index 0000000..65eb939 --- /dev/null +++ b/init.rb @@ -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