Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Merge remote-tracking branch 'origin/release/13.4' into dev

ulferts6ea58a355aed
diff --cc app/views/account/_login.html.erb
index 112f59476a0,05d3b052839..f14f204318f
--- a/app/views/account/_login.html.erb
+++ b/app/views/account/_login.html.erb
@@@ -77,7 -77,7 +77,7 @@@ See COPYRIGHT and LICENSE files for mor
 
</label>
<input type="submit" name="login" id="login-pulldown"
- value="<%=t(:button_login)%>" class="button -primary" tabindex="1" />
- value="<%=t(:button_login)%>" class="button -highlight button_no-margin" tabindex="1" />
++ value="<%=t(:button_login)%>" class="button -primary button_no-margin" tabindex="1" />
</div>
</div>
diff --cc app/views/account/_password_login_form.html.erb
index 1fcf9d217bd,53e6283775e..ed3d7816f88
--- a/app/views/account/_password_login_form.html.erb
+++ b/app/views/account/_password_login_form.html.erb
@@@ -55,23 -55,27 +55,26 @@@ See COPYRIGHT and LICENSE files for mor
</div>
<% end %>
- <div class="login-form--footer">
- <%= submit_tag t(:button_login),
- name: :login,
- class: 'button -highlight button_no-margin',
- data: { disable_with: t(:label_loading) } %>
+ <%= submit_tag t(:button_login),
+ name: :login,
- class: 'button -primary',
++ class: 'button -primary button_no-margin',
+ data: { disable_with: t(:label_loading) } %>
- <div class="login-options-container">
- <div class="login-links">
- <% if Setting.lost_password? %>
- <%= link_to t(:label_password_lost), { controller: '/account', action: 'lost_password' } %>
- <br>
- <% end %>
- <% if Setting::SelfRegistration.enabled? %>
- <%= link_to t(:label_register),
- '',
- title: t(:label_register),
- class: 'registration-modal--activation-link' %>
- <% end %>
+ <div class="login-options-container">
+ <div class="login-links">
+ <% if Setting.lost_password? %>
+ <%= link_to t(:label_password_lost),
+ { controller: '/account', action: 'lost_password' },
+ class: 'login-form--footer-link' %>
+ <br>
+ <% end %>
+ <% if Setting::SelfRegistration.enabled? %>
+ <%= link_to t(:label_register),
+ '',
+ title: t(:label_register),
+ class: 'login-form--footer-link registration-modal--activation-link' %>
+ <% end %>
+ </div>
</div>
</div>
<% end %>
diff --cc modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb
index da2ca788a88,bbcb4b808ab..4406a7d07c0
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb
@@@ -11,7 -11,9 +11,8 @@@
<%= styled_text_field_tag 'backup_code', nil, required: true, autocomplete: 'off', size: 20, maxlength: 20, tabindex: 1, autofocus: true %>
</div>
</div>
- <input type="submit" name="login" value="<%=t(:button_submit)%>" class="button -primary" tabindex="2" />
- <div class="login-form--footer">
- <input type="submit" name="login" value="<%=t(:button_submit)%>" class="button -highlight button_no-margin" tabindex="2" />
- </div>
++
++ <input type="submit" name="login" value="<%=t(:button_submit)%>" class="button -primary button_no-margin" tabindex="2" />
<% end %>
</div>
</div>
diff --cc modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb
index 7f9a4f527cc,55a88d9159b..ddd616959e5
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb
@@@ -43,20 -43,24 +43,20 @@@
</label>
</div>
<% end %>
- <input type="submit" name="login" value="<%= t(:button_login) %>" class="button -primary" tabindex="2"/>
- <div class="login-form--footer">
- <input type="submit" name="login" value="<%= t(:button_login) %>" class="button -highlight button_no-margin" tabindex="2"/>
- <% if resend_supported || has_other_devices || has_backup_codes %>
- <div class="login-options-container">
- <div class="login-links">
- <%= link_to(
- t(:text_otp_not_receive),
- '#',
- id: 'toggle_resend_form',
- tabindex: 3,
- data: { action: 'two-factor-authentication#toggleResendOptions' },
- class: 'login-form--footer-link'
- ) %>
- </div>
++ <input type="submit" name="login" value="<%= t(:button_login) %>" class="button -primary button_no-margin" tabindex="2"/>
+ <% if resend_supported || has_other_devices || has_backup_codes %>
+ <div class="login-options-container">
+ <div class="login-links">
+ <%= link_to(
+ t(:text_otp_not_receive),
+ '#',
+ id: 'toggle_resend_form',
+ tabindex: 3,
+ data: { action: 'two-factor-authentication#toggleResendOptions' }
+ ) %>
</div>
- <% end %>
- </div>
-
+ </div>
+ <% end %>
<% end %>
<div
id="resend_otp_container"
@@@ -68,15 -72,17 +68,23 @@@
<%= hidden_field_tag 'use_device', @service.device.id %>
<hr/>
<div class="resend-header"><%= t(:text_send_otp_again) %></div>
- <div class="radios-wrapper">
- <% default_channel = @service.device.channel %>
- <% supported_channels = @used_device.class.supported_channels & @strategy.class.supported_channels %>
- <% supported_channels.each do |channel| %>
+
+ <% default_channel = @service.device.channel %>
+ <% supported_channels = @used_device.class.supported_channels & @strategy.class.supported_channels %>
+ <% supported_channels.each do |channel| %>
+ <div class="form--field">
<%= radio_button_tag 'use_channel', channel, default_channel == channel %>
<label for="channel_<%= channel %>"><%= t("button_otp_by_#{channel}") %></label>
++<<<<<<< HEAD
+ <% end %>
+ </div>
+ <input type="submit" value="<%= t(:button_resend_otp_form) %>" id="submit_resend_form" class="button -primary"/>
++=======
+ </div>
+ <% end %>
+
+ <input type="submit" value="<%= t(:button_resend_otp_form) %>" id="submit_resend_form" class="button -highlight"/>
++>>>>>>> origin/release/13.4
<% end %>
<% end %>
<% if has_other_devices %>
diff --cc modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb
index 64107c8b5c0,3b1fcb07c86..44c45f1da3f
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb
@@@ -13,7 -13,7 +13,7 @@@
<%= styled_text_field_tag 'otp', nil, required: true, autocomplete: 'off', size: 6, maxlength: 6, tabindex: 1, autofocus: true %>
</div>
</div>
- <div class="login-form--footer">
- <input type="submit" name="login" value="<%= t 'button_continue' %>" class="button -highlight button_no-margin" tabindex="2" />
+ <div>
- <input type="submit" name="login" value="<%= t 'button_continue' %>" class="button -primary" tabindex="2" />
++ <input type="submit" name="login" value="<%= t 'button_continue' %>" class="button -primary button_no-margin" tabindex="2" />
</div>
<% end %>