Sign-up page wording fixed
This commit is contained in:
parent
343ce8241c
commit
6564056f16
|
@ -8,8 +8,8 @@ use FastRoute\RouteCollector;
|
||||||
|
|
||||||
// Pages
|
// Pages
|
||||||
$route->get('/', 'HomeController@index');
|
$route->get('/', 'HomeController@index');
|
||||||
$route->get('/sign-up', 'SignUpController@view');
|
$route->get('/register', 'SignUpController@view');
|
||||||
$route->post('/sign-up', 'SignUpController@save');
|
$route->post('/register', 'SignUpController@save');
|
||||||
$route->get('/credits', 'CreditsController@index');
|
$route->get('/credits', 'CreditsController@index');
|
||||||
$route->get('/health', 'HealthController@index');
|
$route->get('/health', 'HealthController@index');
|
||||||
|
|
||||||
|
|
|
@ -174,7 +174,7 @@ function Users_view(
|
||||||
unset($user_table_headers[$key]);
|
unset($user_table_headers[$key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$link = button(page_link_to('sign-up'), icon('plus-lg'), 'add');
|
$link = button(url('register'), icon('plus-lg'), 'add');
|
||||||
return page_with_title(__('All users') . ' ' . $link, [
|
return page_with_title(__('All users') . ' ' . $link, [
|
||||||
msg(),
|
msg(),
|
||||||
table($user_table_headers, $usersList),
|
table($user_table_headers, $usersList),
|
||||||
|
|
|
@ -1710,7 +1710,7 @@ msgid "settings.profile.email_messages"
|
||||||
msgstr "Benachrichtige mich bei neuen privaten Nachrichten."
|
msgstr "Benachrichtige mich bei neuen privaten Nachrichten."
|
||||||
|
|
||||||
msgid "settings.profile.email_by_human_allowed"
|
msgid "settings.profile.email_by_human_allowed"
|
||||||
msgstr "Erlaube Himmel-Engeln dich per Mail zu kontaktieren."
|
msgstr "Erlaube Himmel-Engeln mich per Mail zu kontaktieren."
|
||||||
|
|
||||||
msgid "settings.profile.email_goody"
|
msgid "settings.profile.email_goody"
|
||||||
msgstr "Um gegebenenfalls Voucher für das nächste gleichartige Event zu erhalten stimme ich zu, "
|
msgstr "Um gegebenenfalls Voucher für das nächste gleichartige Event zu erhalten stimme ich zu, "
|
||||||
|
|
|
@ -281,7 +281,7 @@ msgid "settings.profile.email_messages"
|
||||||
msgstr "Notify me on new private messages."
|
msgstr "Notify me on new private messages."
|
||||||
|
|
||||||
msgid "settings.profile.email_by_human_allowed"
|
msgid "settings.profile.email_by_human_allowed"
|
||||||
msgstr "Allow heaven angels to contact you by e-mail."
|
msgstr "Allow heaven angels to contact me by e-mail."
|
||||||
|
|
||||||
msgid "settings.profile.email_goody"
|
msgid "settings.profile.email_goody"
|
||||||
msgstr "To possibly receive vouchers for the next similar event, I consent "
|
msgstr "To possibly receive vouchers for the next similar event, I consent "
|
||||||
|
@ -577,7 +577,7 @@ msgid "dashboard.day"
|
||||||
msgstr "Day"
|
msgstr "Day"
|
||||||
|
|
||||||
msgid "page.sign-up.title"
|
msgid "page.sign-up.title"
|
||||||
msgstr "Angel sign-up"
|
msgstr "Angel registration"
|
||||||
|
|
||||||
msgid "page.sign-up.login-data"
|
msgid "page.sign-up.login-data"
|
||||||
msgstr "Login data"
|
msgstr "Login data"
|
||||||
|
@ -589,10 +589,10 @@ msgid "page.sign-up.what-do-you-want-to-do"
|
||||||
msgstr "What do you want to do?"
|
msgstr "What do you want to do?"
|
||||||
|
|
||||||
msgid "page.sign-up.sign-up"
|
msgid "page.sign-up.sign-up"
|
||||||
msgstr "Sign up"
|
msgstr "Register"
|
||||||
|
|
||||||
msgid "pages.sign-up.disabled"
|
msgid "pages.sign-up.disabled"
|
||||||
msgstr "The angel registration is disabled"
|
msgstr "The angel registration is disabled"
|
||||||
|
|
||||||
msgid "pages.sign-up.successful"
|
msgid "pages.sign-up.successful"
|
||||||
msgstr "Angel sign-up success. You can now log in."
|
msgstr "Angel registration success. You can now log in."
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
{% include "layouts/parts/language_dropdown.twig" %}
|
{% include "layouts/parts/language_dropdown.twig" %}
|
||||||
|
|
||||||
{% if has_permission_to('register') and config('registration_enabled') %}
|
{% if has_permission_to('register') and config('registration_enabled') %}
|
||||||
{{ _self.toolbar_item(__('Register'), url('/sign-up'), 'register', 'plus') }}
|
{{ _self.toolbar_item(__('Register'), url('/register'), 'register', 'plus') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if has_permission_to('login') %}
|
{% if has_permission_to('login') %}
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if has_permission_to('register') and config('registration_enabled') %}
|
{% if has_permission_to('register') and config('registration_enabled') %}
|
||||||
<a href="{{ url('/sign-up') }}" class="btn btn-secondary back">
|
<a href="{{ url('/register') }}" class="btn btn-secondary back">
|
||||||
{{ __('registration.register') }}
|
{{ __('registration.register') }}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -106,7 +106,7 @@
|
||||||
{% if has_permission_to('register') and config('registration_enabled') %}
|
{% if has_permission_to('register') and config('registration_enabled') %}
|
||||||
{% if config('enable_password') %}
|
{% if config('enable_password') %}
|
||||||
<p>{{ __('Please sign up, if you want to help us!') }}</p>
|
<p>{{ __('Please sign up, if you want to help us!') }}</p>
|
||||||
<a href="{{ url('/sign-up') }}" class="btn btn-primary">{{ __('Register') }} »</a>
|
<a href="{{ url('/register') }}" class="btn btn-primary">{{ __('Register') }} »</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>{{ __('Registration is only available via external login.') }}</p>
|
<p>{{ __('Registration is only available via external login.') }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
{% include 'layouts/parts/messages.twig' %}
|
{% include 'layouts/parts/messages.twig' %}
|
||||||
|
|
||||||
<form method="post" action="{{ url('/sign-up') }}" novalidate class="mb-5">
|
<form method="post" action="{{ url('/register') }}" novalidate class="mb-5">
|
||||||
{{ csrf() }}
|
{{ csrf() }}
|
||||||
|
|
||||||
<div class="mb-5">
|
<div class="mb-5">
|
||||||
|
|
|
@ -324,6 +324,6 @@ class OAuthController extends BaseController
|
||||||
$this->session->set('oauth2_enable_password', $config['enable_password']);
|
$this->session->set('oauth2_enable_password', $config['enable_password']);
|
||||||
$this->session->set('oauth2_allow_registration', $config['allow_registration']);
|
$this->session->set('oauth2_allow_registration', $config['allow_registration']);
|
||||||
|
|
||||||
return $this->redirect->to('/sign-up');
|
return $this->redirect->to('/register');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@ class SignUpController extends BaseController
|
||||||
|
|
||||||
if ($this->auth->user()) {
|
if ($this->auth->user()) {
|
||||||
// User is already logged in - that means a supporter has registered an angel. Return to register page.
|
// User is already logged in - that means a supporter has registered an angel. Return to register page.
|
||||||
return $this->redirect->to('/sign-up');
|
return $this->redirect->to('/register');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->redirect->to('/');
|
return $this->redirect->to('/');
|
||||||
|
|
|
@ -440,7 +440,7 @@ class OAuthControllerTest extends TestCase
|
||||||
|
|
||||||
$this->setExpects($this->auth, 'user', null, null, $this->atLeastOnce());
|
$this->setExpects($this->auth, 'user', null, null, $this->atLeastOnce());
|
||||||
|
|
||||||
$this->setExpects($this->redirect, 'to', ['/sign-up']);
|
$this->setExpects($this->redirect, 'to', ['/register']);
|
||||||
|
|
||||||
$request = new Request();
|
$request = new Request();
|
||||||
$request = $request
|
$request = $request
|
||||||
|
@ -528,7 +528,7 @@ class OAuthControllerTest extends TestCase
|
||||||
|
|
||||||
$this->setExpects($this->auth, 'user', null, null, $this->atLeastOnce());
|
$this->setExpects($this->auth, 'user', null, null, $this->atLeastOnce());
|
||||||
|
|
||||||
$this->setExpects($this->redirect, 'to', ['/sign-up']);
|
$this->setExpects($this->redirect, 'to', ['/register']);
|
||||||
|
|
||||||
$request = new Request();
|
$request = new Request();
|
||||||
$request = $request
|
$request = $request
|
||||||
|
|
|
@ -100,7 +100,7 @@ final class SignUpControllerTest extends ControllerTest
|
||||||
$this->response
|
$this->response
|
||||||
->expects(self::once())
|
->expects(self::once())
|
||||||
->method('redirectTo')
|
->method('redirectTo')
|
||||||
->with('http://localhost/sign-up', 302);
|
->with('http://localhost/register', 302);
|
||||||
|
|
||||||
$this->subject->save($request);
|
$this->subject->save($request);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue