Adds registration controller for organizations
This commit is contained in:
@@ -5,6 +5,7 @@ en:
|
||||
debate: Debate
|
||||
user: User
|
||||
vote: Vote
|
||||
organization: Organization
|
||||
attributes:
|
||||
comment:
|
||||
body: Comment
|
||||
@@ -19,4 +20,6 @@ en:
|
||||
first_name: "First name"
|
||||
last_name: "Last name"
|
||||
nickname: Nickname
|
||||
password: Password
|
||||
password: Password
|
||||
organization:
|
||||
name: Organization name
|
||||
|
||||
@@ -5,6 +5,7 @@ es:
|
||||
debate: Debate
|
||||
user: Usuario
|
||||
vote: Voto
|
||||
organization: Organización
|
||||
attributes:
|
||||
comment:
|
||||
body: Comentario
|
||||
@@ -19,4 +20,6 @@ es:
|
||||
first_name: Nombre
|
||||
last_name: Apellidos
|
||||
nickname: Pseudónimo
|
||||
password: Contraseña
|
||||
password: Contraseña
|
||||
organization:
|
||||
name: Nombre de organización
|
||||
|
||||
@@ -60,6 +60,17 @@ en:
|
||||
min_length: "(%{min} characters minimum)"
|
||||
password_confirmation_label: "Confirm password"
|
||||
submit: "Sign up"
|
||||
organizations:
|
||||
registrations:
|
||||
new:
|
||||
title: "Sign up as organization"
|
||||
organization_name_label: "Organization name"
|
||||
email_label: "Email"
|
||||
password_label: "Password"
|
||||
phone_number_label: "Phone number"
|
||||
min_length: "(%{min} characters minimum)"
|
||||
password_confirmation_label: "Confirm password"
|
||||
submit: "Sign up"
|
||||
sessions:
|
||||
new:
|
||||
title: "Log in"
|
||||
@@ -77,6 +88,7 @@ en:
|
||||
login: "Log in"
|
||||
signup: "Sign up"
|
||||
signin_with_provider: "Sign in with %{provider}"
|
||||
organization_signup: "Sign up as an organization"
|
||||
new_password: "Forgot your password?"
|
||||
new_confirmation: "Didn't receive confirmation instructions?"
|
||||
new_unlock: "Didn't receive unlock instructions?"
|
||||
|
||||
@@ -60,6 +60,17 @@ es:
|
||||
min_length: "(mínimo %{min} caracteres)"
|
||||
password_confirmation_label: "Confirmar contraseña"
|
||||
submit: "Registrarse"
|
||||
organizations:
|
||||
registrations:
|
||||
new:
|
||||
title: "Registrarse como organización"
|
||||
organization_name_label: "Nombre de la organización"
|
||||
email_label: "Email"
|
||||
password_label: "Contraseña"
|
||||
phone_number_label: "Teléfono"
|
||||
min_length: "(mínimo %{min} caracteres)"
|
||||
password_confirmation_label: "Confirmar contraseña"
|
||||
submit: "Registrarse"
|
||||
sessions:
|
||||
new:
|
||||
title: "Entrar"
|
||||
@@ -76,6 +87,7 @@ es:
|
||||
links:
|
||||
login: "Entrar"
|
||||
signup: "Registrarse"
|
||||
organization_signup: "Registro para organizaciones"
|
||||
signin_with_provider: "Entrar con %{provider}"
|
||||
new_password: "¿Olvidaste tu contraseña?"
|
||||
new_confirmation: "¿No has recibido instrucciones para confirmar tu cuenta?"
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
Rails.application.routes.draw do
|
||||
devise_for :users, controllers: { registrations: 'users/registrations' }
|
||||
devise_for :organizations, class_name: 'User',
|
||||
controllers: {
|
||||
registrations: 'organizations/registrations',
|
||||
sessions: 'devise/sessions'
|
||||
}
|
||||
|
||||
# The priority is based upon order of creation: first created -> highest priority.
|
||||
# See how all your routes lay out with "rake routes".
|
||||
|
||||
Reference in New Issue
Block a user