Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Improve username field detection (#541)

Leendert de Borst7fefe9f0bbf5
diff --git a/browser-extensions/chrome/src/shared/formDetector/FormDetector.ts b/browser-extensions/chrome/src/shared/formDetector/FormDetector.ts
index 847bee987..f4c7a0431 100644
--- a/browser-extensions/chrome/src/shared/formDetector/FormDetector.ts
+++ b/browser-extensions/chrome/src/shared/formDetector/FormDetector.ts
@@ -6,6 +6,8 @@ import { LoginForm } from "./types/LoginForm";
export class FormDetector {
private document: Document;
private clickedElement: HTMLElement | null;
+ private processedForms = new Set<HTMLFormElement | null>();
+ private forms: LoginForm[] = [];
/**
* Constructor.
@@ -19,52 +21,16 @@ export class FormDetector {
* Detect login forms on the page, prioritizing the form containing the clicked element.
*/
public detectForms(): LoginForm[] {
- const forms: LoginForm[] = [];
-
- // Create a Set to track processed forms to avoid duplicates
- const processedForms = new Set<HTMLFormElement | null>();
-
- /**
- * Helper to create a form entry
- */
- const createFormEntry = (form: HTMLFormElement | null): void => {
- // Skip if we've already processed this form
- if (form && processedForms.has(form)) return;
- processedForms.add(form);
-
- // Find all relevant fields
- const emailFields = this.findEmailField(form);
- const usernameField = this.findUsernameField(form);
- const passwordFields = this.findPasswordField(form);
- const firstNameField = this.findInputField(form, ['firstname', 'first-name', 'fname', 'voornaam', 'name'], ['text']);
- const lastNameField = this.findInputField(form, ['lastname', 'last-name', 'lname', 'achternaam'], ['text']);
- const birthdateField = this.findBirthdateFields(form);
- const genderField = this.findGenderField(form);
-
- forms.push({
- form,
- emailField: emailFields.primary,
- emailConfirmField: emailFields.confirm,
- usernameField,
- passwordField: passwordFields.primary,
- passwordConfirmField: passwordFields.confirm,
- firstNameField,
- lastNameField,
- birthdateField,
- genderField
- });
- };
-
// If we have a clicked element, try to find its form first
if (this.clickedElement) {
const formWrapper = this.clickedElement.closest('form');
if (formWrapper) {
- createFormEntry(formWrapper);
+ this.createFormEntry(formWrapper);
// If we found a valid form, return early
- if (forms.length > 0) {
- return forms;
+ if (this.forms.length > 0) {
+ return this.forms;
}
}
}
@@ -77,30 +43,30 @@ export class FormDetector {
// Process password fields first
passwordFields.forEach(passwordField => {
const form = passwordField.closest('form');
- createFormEntry(form);
+ this.createFormEntry(form);
});
// Process email fields that aren't already part of a processed form
emailFields.forEach(field => {
const form = field.closest('form');
- if (form && processedForms.has(form)) return;
+ if (form && this.processedForms.has(form)) return;
if (this.isLikelyEmailField(field)) {
- createFormEntry(form);
+ this.createFormEntry(form);
}
});
// Process potential username fields that aren't already part of a processed form
textFields.forEach(field => {
const form = field.closest('form');
- if (form && processedForms.has(form)) return;
+ if (form && this.processedForms.has(form)) return;
if (this.isLikelyUsernameField(field)) {
- createFormEntry(form);
+ this.createFormEntry(form);
}
});
- return forms;
+ return this.forms;
}
/**
@@ -109,7 +75,8 @@ export class FormDetector {
private findInputField(
form: HTMLFormElement | null,
patterns: string[],
- types: string[]
+ types: string[],
+ excludeElements: HTMLInputElement[] = []
): HTMLInputElement | null {
const candidates = form
? form.querySelectorAll<HTMLInputElement>('input, select')
@@ -120,6 +87,9 @@ export class FormDetector {
let bestMatchIndex = patterns.length;
for (const input of Array.from(candidates)) {
+ // Skip if this element is already used
+ if (excludeElements.includes(input)) continue;
+
// Handle both input and select elements
const type = input.tagName.toLowerCase() === 'select' ? 'select' : input.type.toLowerCase();
if (!types.includes(type)) continue;
@@ -170,36 +140,7 @@ export class FormDetector {
}
/**
- * Find the username field in the form containing the password field.
- */
- private findUsernameField(form: HTMLFormElement | null): HTMLInputElement | null {
- const candidates = form
- ? form.querySelectorAll<HTMLInputElement>('input')
- : this.document.querySelectorAll<HTMLInputElement>('input');
-
- for (const input of Array.from(candidates)) {
- const type = input.type.toLowerCase();
- if (type === 'text') {
- const attributes = [
- input.type,
- input.id,
- input.name,
- input.className,
- input.placeholder
- ].map(attr => attr?.toLowerCase() || '');
-
- const patterns = ['user', 'username', 'login', 'identifier'];
- if (patterns.some(pattern => attributes.some(attr => attr.includes(pattern)))) {
- return input;
- }
- }
- }
-
- return null;
- }
-
- /**
- * Find the email field in the form containing the password field.
+ * Find the email field in the form.
*/
private findEmailField(form: HTMLFormElement | null): {
primary: HTMLInputElement | null,
@@ -230,9 +171,9 @@ export class FormDetector {
/**
* Find the birthdate fields in the form.
*/
- private findBirthdateFields(form: HTMLFormElement | null): LoginForm['birthdateField'] {
+ private findBirthdateFields(form: HTMLFormElement | null, excludeElements: HTMLInputElement[] = []): LoginForm['birthdateField'] {
// First try to find a single date input
- const singleDateField = this.findInputField(form, ['birthdate', 'birth-date', 'dob', 'geboortedatum'], ['date', 'text']);
+ const singleDateField = this.findInputField(form, ['birthdate', 'birth-date', 'dob', 'geboortedatum'], ['date', 'text'], excludeElements);
// Detect date format by searching all text content in the form
let format = 'yyyy-mm-dd'; // default format
@@ -288,9 +229,9 @@ export class FormDetector {
}
// Look for separate day/month/year fields
- const dayField = this.findInputField(form, ['birth-day', 'birthday', 'day', 'dag', 'birthdate_d'], ['text', 'number', 'select']);
- const monthField = this.findInputField(form, ['birth-month', 'birthmonth', 'month', 'maand', 'birthdate_m'], ['text', 'number', 'select']);
- const yearField = this.findInputField(form, ['birth-year', 'birthyear', 'year', 'jaar', 'birthdate_y'], ['text', 'number', 'select']);
+ const dayField = this.findInputField(form, ['birth-day', 'birthday', 'day', 'dag', 'birthdate_d'], ['text', 'number', 'select'], excludeElements);
+ const monthField = this.findInputField(form, ['birth-month', 'birthmonth', 'month', 'maand', 'birthdate_m'], ['text', 'number', 'select'], excludeElements);
+ const yearField = this.findInputField(form, ['birth-year', 'birthyear', 'year', 'jaar', 'birthdate_y'], ['text', 'number', 'select'], excludeElements);
return {
single: null,
@@ -304,12 +245,13 @@ export class FormDetector {
/**
* Find the gender field in the form.
*/
- private findGenderField(form: HTMLFormElement | null): LoginForm['genderField'] {
+ private findGenderField(form: HTMLFormElement | null, excludeElements: HTMLInputElement[] = []): LoginForm['genderField'] {
// Try to find select or input element using the shared method
const genderField = this.findInputField(
form,
['gender', 'sex', 'geslacht', 'aanhef'],
- ['select']
+ ['select'],
+ excludeElements
);
if (genderField?.tagName.toLowerCase() === 'select') {
@@ -368,7 +310,7 @@ export class FormDetector {
}
// Fall back to regular text input
- const textField = this.findInputField(form, ['gender', 'sex', 'geslacht', 'aanhef'], ['text']);
+ const textField = this.findInputField(form, ['gender', 'sex', 'geslacht', 'aanhef'], ['text'], excludeElements);
return {
type: 'text',
@@ -467,4 +409,56 @@ export class FormDetector {
confirm: confirmPassword
};
}
+
+ /**
+ * Create a form entry.
+ */
+ private createFormEntry(form: HTMLFormElement | null): void {
+ // Skip if we've already processed this form
+ if (form && this.processedForms.has(form)) return;
+ this.processedForms.add(form);
+
+ // Keep track of detected fields to prevent overlap
+ const detectedFields: HTMLInputElement[] = [];
+
+ // Find fields in priority order (most specific to least specific).
+ const emailFields = this.findEmailField(form);
+ if (emailFields.primary) detectedFields.push(emailFields.primary);
+ if (emailFields.confirm) detectedFields.push(emailFields.confirm);
+
+ const passwordFields = this.findPasswordField(form);
+ if (passwordFields.primary) detectedFields.push(passwordFields.primary);
+ if (passwordFields.confirm) detectedFields.push(passwordFields.confirm);
+
+ const usernameField = this.findInputField(form, ['username', 'gebruikersnaam', 'gebruiker', 'login', 'identifier', 'user'],['text'], detectedFields);
+ if (usernameField) detectedFields.push(usernameField);
+
+ const firstNameField = this.findInputField(form, ['firstname', 'first-name', 'fname', 'voornaam', 'name'], ['text'], detectedFields);
+ if (firstNameField) detectedFields.push(firstNameField);
+
+ const lastNameField = this.findInputField(form, ['lastname', 'last-name', 'lname', 'achternaam'], ['text'], detectedFields);
+ if (lastNameField) detectedFields.push(lastNameField);
+
+ const birthdateField = this.findBirthdateFields(form, detectedFields);
+ if (birthdateField.single) detectedFields.push(birthdateField.single);
+ if (birthdateField.day) detectedFields.push(birthdateField.day);
+ if (birthdateField.month) detectedFields.push(birthdateField.month);
+ if (birthdateField.year) detectedFields.push(birthdateField.year);
+
+ const genderField = this.findGenderField(form, detectedFields);
+ if (genderField.field) detectedFields.push(genderField.field as HTMLInputElement);
+
+ this.forms.push({
+ form,
+ emailField: emailFields.primary,
+ emailConfirmField: emailFields.confirm,
+ usernameField,
+ passwordField: passwordFields.primary,
+ passwordConfirmField: passwordFields.confirm,
+ firstNameField,
+ lastNameField,
+ birthdateField,
+ genderField
+ });
+ }
}
diff --git a/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.nl.test.ts b/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.nl.test.ts
index 0cee503a8..d90a43bfd 100644
--- a/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.nl.test.ts
+++ b/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.nl.test.ts
@@ -86,4 +86,13 @@ describe('FormDetector', () => {
testField(FormField.Email, 'aliasvault-input-email', htmlFile);
testField(FormField.LastName, 'aliasvault-input-lastname', htmlFile);
});
+
+ describe('Dutch registration form 9 detection', () => {
+ const htmlFile = 'nl-registration-form9.html';
+
+ testField(FormField.Username, 'user_username', htmlFile);
+ testField(FormField.Email, 'user_email_address', htmlFile);
+ testField(FormField.Password, 'user_password', htmlFile);
+ testField(FormField.PasswordConfirm, 'user_password_confirmation', htmlFile);
+ });
});
diff --git a/browser-extensions/chrome/src/shared/formDetector/__tests__/test-forms/nl-registration-form9.html b/browser-extensions/chrome/src/shared/formDetector/__tests__/test-forms/nl-registration-form9.html
new file mode 100644
index 000000000..e3cf17c94
--- /dev/null
+++ b/browser-extensions/chrome/src/shared/formDetector/__tests__/test-forms/nl-registration-form9.html
@@ -0,0 +1,139 @@
+<!--
+Test that the username field is correctly detected.
+-->
+<form class="sch_form" id="new_sub_account" novalidate="novalidate" data-client-side-validations="{&quot;html_settings&quot;:{&quot;type&quot;:&quot;TaggedBuilder&quot;,&quot;input_tag&quot;:&quot;\u003cdiv class=\&quot;field_with_errors\&quot;\u003e\u003cspan id=\&quot;input_tag\&quot;\u003e\u003c/span\u003e\u003cdiv class=\&quot;error_msg\&quot;\u003e\u003clabel for=\&quot;\&quot; class=\&quot;message noscript\&quot;\u003e\u003c/label\u003e\u003c/div\u003e\u003c/div\u003e&quot;,&quot;label_tag&quot;:&quot;\u003cdiv class=\&quot;field_with_errors\&quot;\u003e\u003clabel id=\&quot;label_tag\&quot;\u003e\u003c/label\u003e\u003c/div\u003e&quot;},&quot;number_format&quot;:{&quot;separator&quot;:&quot;.&quot;,&quot;delimiter&quot;:&quot;,&quot;},&quot;validators&quot;:{&quot;sub_account[sub_account_profile_attributes][brin_number]&quot;:{&quot;length&quot;:[{&quot;messages&quot;:{&quot;maximum&quot;:&quot;is te lang (niet meer dan 255 karakters)&quot;},&quot;maximum&quot;:255}],&quot;presence&quot;:[{&quot;message&quot;:&quot;is niet ingevuld&quot;}]},&quot;sub_account[sub_account_profile_attributes][city]&quot;:{&quot;length&quot;:[{&quot;messages&quot;:{&quot;maximum&quot;:&quot;is te lang (niet meer dan 255 karakters)&quot;},&quot;maximum&quot;:255}],&quot;presence&quot;:[{&quot;message&quot;:&quot;is niet ingevuld&quot;}]},&quot;sub_account[sub_account_profile_attributes][contact_phone_number]&quot;:{&quot;length&quot;:[{&quot;messages&quot;:{&quot;maximum&quot;:&quot;is te lang (niet meer dan 255 karakters)&quot;},&quot;maximum&quot;:255}]},&quot;user[new_user_attributes][accept_conditions]&quot;:{&quot;acceptance&quot;:[{&quot;message&quot;:&quot;Het account kan alleen worden aangemaakt indien u akkoord gaat met de Privacy Policy en de Gebruiksvoorwaarden&quot;,&quot;accept&quot;:[&quot;1&quot;,true]}]},&quot;user[firstname]&quot;:{&quot;length&quot;:[{&quot;messages&quot;:{&quot;maximum&quot;:&quot;is te lang (niet meer dan 255 karakters)&quot;},&quot;maximum&quot;:255}],&quot;presence&quot;:[{&quot;message&quot;:&quot;is niet ingevuld&quot;}]},&quot;user[name_prefix]&quot;:{&quot;length&quot;:[{&quot;messages&quot;:{&quot;maximum&quot;:&quot;is te lang (niet meer dan 255 karakters)&quot;},&quot;maximum&quot;:255}]},&quot;user[lastname]&quot;:{&quot;length&quot;:[{&quot;messages&quot;:{&quot;maximum&quot;:&quot;is te lang (niet meer dan 255 karakters)&quot;},&quot;maximum&quot;:255}],&quot;presence&quot;:[{&quot;message&quot;:&quot;is niet ingevuld&quot;}]},&quot;user[email_address]&quot;:{&quot;length&quot;:[{&quot;messages&quot;:{&quot;maximum&quot;:&quot;is te lang (niet meer dan 255 karakters)&quot;},&quot;maximum&quot;:255}],&quot;presence&quot;:[{&quot;message&quot;:&quot;is niet ingevuld&quot;}],&quot;format&quot;:[{&quot;message&quot;:&quot;bevat geen geldig emailadres&quot;,&quot;with&quot;:{&quot;source&quot;:&quot;^(?:(?:[%'+\\x2D0-9=_a-z]+)(?:\\.(?![.@]))?)+@(?:[a-z0-9][\\x2D0-9a-z]*\\.)+[a-z]+(?=\\n?$)&quot;,&quot;options&quot;:&quot;i&quot;},&quot;allow_blank&quot;:true},{&quot;message&quot;:&quot;bevat geen geldig emailadres&quot;,&quot;with&quot;:{&quot;source&quot;:&quot;^(?:[\\x00-,.-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF])(?:[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[^\\n\\uD800-\\uDFFF])+&quot;,&quot;options&quot;:&quot;&quot;},&quot;allow_blank&quot;:true}]},&quot;user[username]&quot;:{&quot;length&quot;:[{&quot;messages&quot;:{&quot;maximum&quot;:&quot;is te lang (niet meer dan 255 karakters)&quot;},&quot;maximum&quot;:255}],&quot;presence&quot;:[{&quot;message&quot;:&quot;is niet ingevuld&quot;}],&quot;uniqueness&quot;:[{&quot;message&quot;:&quot;moet uniek zijn&quot;}],&quot;format&quot;:[{&quot;message&quot;:&quot;toegestaan: letters, cijfers en '_.%+-'&quot;,&quot;with&quot;:{&quot;source&quot;:&quot;^[%+\\x2D.0-9A-Z_a-z]+(?=\\n?$)&quot;,&quot;options&quot;:&quot;&quot;}}]},&quot;user[password]&quot;:{&quot;presence&quot;:[{&quot;message&quot;:&quot;is niet ingevuld&quot;}],&quot;confirmation&quot;:[{&quot;message&quot;:&quot;komt niet met z'n bevestiging overeen&quot;,&quot;case_sensitive&quot;:true}],&quot;format&quot;:[{&quot;message&quot;:&quot;min. 1 hoofdletter, 1 kleine letter, 1 cijfer of ander teken (min. 8 karakters)&quot;,&quot;with&quot;:{&quot;source&quot;:&quot;^(?=(?:[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[^\\n\\uD800-\\uDFFF])*[\\x09-\\x0D\\x20!#-\u0026(-@\\x5B-_{-}])(?=(?:[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[^\\n\\uD800-\\uDFFF])*[a-zà-ÿ])(?=(?:[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[^\\n\\uD800-\\uDFFF])*[A-ZÀ-Ÿ])[\\x09-\\x0D\\x20!#-\u0026(-_a-}\\xC0-\\xFF]{8,}(?=\\n?$)&quot;,&quot;options&quot;:&quot;&quot;}}]},&quot;user[password_confirmation]&quot;:{&quot;presence&quot;:[{&quot;message&quot;:&quot;is niet ingevuld&quot;}]},&quot;sub_account[name]&quot;:{&quot;length&quot;:[{&quot;messages&quot;:{&quot;maximum&quot;:&quot;is te lang (niet meer dan 255 karakters)&quot;},&quot;maximum&quot;:255}],&quot;presence&quot;:[{&quot;message&quot;:&quot;is niet ingevuld&quot;}]},&quot;sub_account[subdomain]&quot;:{&quot;length&quot;:[{&quot;messages&quot;:{&quot;maximum&quot;:&quot;is te lang (niet meer dan 255 karakters)&quot;},&quot;maximum&quot;:255}],&quot;presence&quot;:[{&quot;message&quot;:&quot;is niet ingevuld&quot;}],&quot;uniqueness&quot;:[{&quot;message&quot;:&quot;moet uniek zijn&quot;}],&quot;format&quot;:[{&quot;message&quot;:&quot;toegestaan: letters, cijfers en '-'&quot;,&quot;with&quot;:{&quot;source&quot;:&quot;^([\\x2D0-9A-Za-z])*(?=\\n?$)&quot;,&quot;options&quot;:&quot;&quot;}}]},&quot;sub_account[humanizer_answer]&quot;:{&quot;presence&quot;:[{&quot;message&quot;:&quot;is niet ingevuld&quot;}]}}}" action="/scholen/aanmaken_verwerken" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="aLf0yW9_HFyONjp27_ZtMkEcOmzS6dWJQR-wqmVo6lMzHEuPXqdwxbwFK16sTCcrW92o7IUPPS3aK9JrnFvHBA" autocomplete="off">
+ <div class="validation_error nodisplay"><a title="Verberg foutboodschap" class="close" onclick="$(this).closest('div.validation_error').addClass('nodisplay'); return false;" href="#"><span class="close font-icon hover"></span></a>Sommige velden zijn niet ingevuld of bevatten verkeerde invoer (zie de foutmeldingen bij de velden). Graag herstellen en opnieuw proberen.</div>
+ <fieldset class="sch_border">
+ <legend>Schoolgegevens</legend>
+ <a title="Lees meer..." class="facebox_js sch_button_show" href="#if_a_parent">Bent u een ouder? Klik hier</a>
+ <div style="display:none;" id="if_a_parent">
+
+ <div class="title">
+ <h1>Bent u een ouder?</h1>
+</div>
+<p>
+ Dan hoeft u dit formulier niet in te vullen.
+</p>
+<br>
+<p>
+ Een School-account wordt aangevraagd door de school zelf. Na het invoeren van de emailadressen
+ door de school ontvangt u als ouder vanzelf een uitnodigingsemail met daarin een link. Via die
+ link kunt u uw gebruikersaccount aanmaken.
+</p>
+
+
+ </div>
+ <div class=" mb-4"><div class="label "><div class="field_with_errors"><label for="sub_account_name">Naam school</label></div> <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=accounts%2Fname"><span class="help font-icon "></span></a></div><div class="input "><div class="field_with_errors"><input tabindex="1" class="" type="text" name="sub_account[name]" id="sub_account_name" data-validate="true" autocomplete="false"><div class="error_msg"><label for="sub_account_name" class="message noscript">is niet ingevuld</label></div></div><div class="field_help nodisplay" style="display: none;">
+<p>Geef de naam van de school, inclusief lidwoord. De naam die u invult zal gebruikt worden in zinnen als
+<em>"Welkom op het het ouderportaal van <strong>&lt;naam&gt;</strong>".</em></p>
+</div></div></div>
+
+ <div class=" mb-4"><div class="label "><label for="sub_account_sub_account_profile_attributes_brin_number">BRIN-nummer <a title="Klik voor meer informatie" class="question_mark no_print " target="product_help" href="/help?help_text=sub_accounts%2Fbrin_number"><span class="help font-icon "></span></a></label></div><div class="input "><input tabindex="2" type="text" name="sub_account[sub_account_profile_attributes][brin_number]" id="sub_account_sub_account_profile_attributes_brin_number" data-validate="true"></div></div>
+ <div class=" mb-4"><div class="label "><label for="sub_account_subdomain">Subdomein</label> <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=accounts%2Fsubdomain"><span class="help font-icon "></span></a></div><div class="input "><input tabindex="3" type="text" name="sub_account[subdomain]" id="sub_account_subdomain" data-validate="true"><div class="field_help nodisplay">
+<p>Geef de naam van het subdomein waarop u uw school op SchouderCom wilt kunnen benaderen. De naam die u invult
+wordt voor schoudercom.nl geplaatst en bepaald het webadres.</p>
+<br>
+<p><em>Voorbeeld: </em>indien u "regenboog" invult zal uw site onder <strong><em>regenboog</em>.schoudercom.nl</strong> bereikbaar zijn.</p></div></div></div>
+ <div class=" mb-4"><div class="label "><label for="sub_account_sub_account_profile_attributes_city">Plaats</label></div><div class="input "><input tabindex="4" type="text" name="sub_account[sub_account_profile_attributes][city]" id="sub_account_sub_account_profile_attributes_city" data-validate="true"></div></div>
+ <div class="region">
+ <div class="label"><span class="label_like">
+ Regio <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=accounts%2Fregion"><span class="help font-icon "></span></a>
+</span></div> <div class="input no_txtfld">
+ <span class="nobreak">
+ <input tabindex="5" class=" new-check" type="radio" value="0" name="sub_account[sub_account_profile_attributes][region]" id="sub_account_sub_account_profile_attributes_region_0"><label class="no_label new-check" for="sub_account_sub_account_profile_attributes_region_0">Noord</label>
+ &nbsp;&nbsp;&nbsp;
+ <input tabindex="6" class=" new-check" type="radio" value="1" checked="checked" name="sub_account[sub_account_profile_attributes][region]" id="sub_account_sub_account_profile_attributes_region_1"><label class="no_label new-check" for="sub_account_sub_account_profile_attributes_region_1">Midden</label>
+ &nbsp;&nbsp;&nbsp;
+ <input tabindex="7" class=" new-check" type="radio" value="2" name="sub_account[sub_account_profile_attributes][region]" id="sub_account_sub_account_profile_attributes_region_2"><label class="no_label new-check" for="sub_account_sub_account_profile_attributes_region_2">Zuid</label>
+ </span>
+ <div class="field_help nodisplay">
+<p>Selecteer de regio waartoe uw school behoort.</p><br>
+<p>
+ Wanneer u in de beheeromgeving de vakanties aan de jaarkalender toevoegt, zal SchouderCom
+ automatisch de juiste vakanties voor uw regio invoegen. Daarna kunt u desgewenst de gegevens
+ van de vakanties nog wijzigen.</p></div>
+</div> </div>
+ <div class="language">
+ <div class="label"><span class="label_like">
+ Standaardtaal <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=accounts%2Fset_default_language"><span class="help font-icon "></span></a>
+</span></div> <div class="input ">
+ <div id="language_body">
+ <span>
+ <input type="radio" name="sub_account[sub_account_profile_attributes][default_language]" id="sub_account_sub_account_profile_attributes_default_language_nl" value="nl" tabindex="8" class=" new-check" checked="checked"><label class=" new-check hide_label" for="sub_account_sub_account_profile_attributes_default_language_nl">l</label>
+ </span>
+ <span>
+ <label for="sub_account_sub_account_profile_attributes_default_language_nl"><span title="Dit is de huidige selectie voor de standaardtaal in uw Gratis School-account" class="flag-icon flag-icon-nl"></span></label>
+ </span>
+ <span>
+ <input type="radio" name="sub_account[sub_account_profile_attributes][default_language]" id="sub_account_sub_account_profile_attributes_default_language_en" value="en" tabindex="9" class=" new-check"><label class=" new-check hide_label" for="sub_account_sub_account_profile_attributes_default_language_en">l</label>
+ </span>
+ <span>
+ <label for="sub_account_sub_account_profile_attributes_default_language_en"><span title="Selecteer als u dit als standaardtaal voor het Gratis School-account wilt" class="flag-icon flag-icon-en"></span></label>
+ </span>
+</div>
+ <div class="field_help nodisplay">
+<p>
+ De standaardtaal voor nieuwe gebruikers bepaalt de taal van de uitnodigingsemails waarmee nieuwe gebruikers
+ uitgenodigd worden een account aan te maken. Zodra ze een account hebben aangemaakt kunnen ze zelf de taalkeuze
+ aanpassen aan hun voorkeuren.
+</p>
+<p>
+ U kunt de standaardtaal later via de <em>Beheer</em> tab altijd weer aanpassen.
+</p>
+</div>
+</div> </div>
+ </fieldset>
+ <fieldset class="sch_border">
+ <legend>Gegevens beheerder <a title="Klik voor meer informatie" class="question_mark no_print " target="product_help" href="/help?help_text=accounts%2Fadministrator"><span class="help font-icon "></span></a></legend>
+
+ <div class=" mb-4"><div class="label "><label for="user_firstname">Voornaam</label></div><div class="input "><input tabindex="10" type="text" name="user[firstname]" id="user_firstname" data-validate="true" autocomplete="false"></div></div>
+ <div class=" mb-4"><div class="label "><label for="user_name_prefix">Tussenvoegsel</label></div><div class="input "><input tabindex="11" type="text" name="user[name_prefix]" id="user_name_prefix" data-validate="true"></div></div>
+ <div class=" mb-4"><div class="label "><label for="user_lastname">Achternaam</label></div><div class="input "><input tabindex="12" type="text" name="user[lastname]" id="user_lastname" data-validate="true"></div></div>
+ <div class=" mb-4"><div class="label "><label for="user_email_address">Emailadres</label> <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=accounts%2Femail_address"><span class="help font-icon "></span></a></div><div class="input "><input tabindex="13" type="email" name="user[email_address]" id="user_email_address" data-validate="true" autocomplete="false"><div class="field_help nodisplay" style="display: none;">
+<p>Gebruik het emailadres waarmee u aan de school verbonden bent. Als u een algemeen emailadres gebruikt, bijvoorbeeld van Gmail of Hotmail,
+ dan kan dit vertraging opleveren bij het vrijgeven van het school-account.</p>
+</div></div></div>
+
+ <div class=" mb-4"><div class="label "><label for="sub_account_sub_account_profile_attributes_contact_phone_number">Telefoon</label></div><div class="input "><input tabindex="14" type="text" name="sub_account[sub_account_profile_attributes][contact_phone_number]" id="sub_account_sub_account_profile_attributes_contact_phone_number" data-validate="true"></div></div>
+ <div class=" mb-4"><div class="label "><label for="user_username">Gebruikersnaam</label> <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=users%2Fdesired_username"><span class="help font-icon "></span></a></div><div class="input "><input tabindex="15" type="text" name="user[username]" id="user_username" data-validate="true"><div class="field_help nodisplay">
+<p>Iedereen binnen SchouderCom heeft een gebruikersnaam.</p>
+<p>De gebruikersnaam moet uniek zijn, het kan zijn dat u hierover een melding krijgt en een andere moet kiezen.</p></div></div></div>
+ <div class=" mb-4"><div class="label "><label for="user_password">Wachtwoord</label></div><div class="input "><input tabindex="16" type="password" name="user[password]" id="user_password" data-validate="true"></div></div>
+ <div class=" mb-4"><div class="label "><label for="user_password_confirmation">Bevestig wachtwoord</label></div><div class="input "><input tabindex="17" type="password" name="user[password_confirmation]" id="user_password_confirmation"></div></div>
+
+ <br>
+ <div class="check accept_conditions">
+ <input name="user[new_user_attributes][accept_conditions]" type="hidden" value="0" autocomplete="off"><input tabindex="18" class=" new-check" type="checkbox" value="1" name="user[new_user_attributes][accept_conditions]" id="user_new_user_attributes_accept_conditions" data-validate="true"><label class=" new-check" for="user_new_user_attributes_accept_conditions">Ik ga akkoord met de <a title="Bekijk de Privacy Policy van SchouderCom.nl" class="link facebox_js as_popup" href="/privacy_policy">Privacy Policy</a>, de <a title="Bekijk de Gebruiksvoorwaarden van SchouderCom.nl" class="link facebox_js as_popup" href="/gebruiksvoorwaarden">Gebruiksvoorwaarden</a> en de synchronisatie van mijn gegevens met de leerling-administratie</label>
+ </div>
+ <div class="check accept_conditions">
+ <input name="user[new_user_attributes][open_for_mailings]" type="hidden" value="0" autocomplete="off"><input tabindex="19" class=" new-check" type="checkbox" value="1" name="user[new_user_attributes][open_for_mailings]" id="user_new_user_attributes_open_for_mailings" data-validate="true"><label class=" new-check" for="user_new_user_attributes_open_for_mailings">Ik wil de SchouderCom.nl nieuwsbrief ontvangen (~4x per jaar, keuze kunt u in uw profiel weer wijzigen) (<em><strong>optioneel</strong></em>)</label>
+ </div>
+ <div class="check accept_conditions">
+ <input name="user[new_user_attributes][open_for_partners]" type="hidden" value="0" autocomplete="off"><input tabindex="20" class=" new-check" type="checkbox" value="1" name="user[new_user_attributes][open_for_partners]" id="user_new_user_attributes_open_for_partners" data-validate="true"><label class=" new-check" for="user_new_user_attributes_open_for_partners">Ik doe mee met incidentele niet-commerciële onderzoeksenquêtes van SchouderCom.nl of onderwijspartners (<em><strong>optioneel</strong></em>)</label>
+ </div>
+
+ </fieldset>
+ <div class="wizard_next no_border">
+ <fieldset>
+ <div class="anti_spam">
+ <div class="label">
+ <label for="sub_account_humanizer_answer">Anti-spam vraag <a title="Klik voor meer informatie" class="question_mark no_print noscript " target="product_help" href="/help?help_text=anti_spam"><span class="help font-icon "></span></a>: Wat is het omgekeerde van zuid?</label>
+ </div>
+ <div class="input">
+ <input tabindex="21" type="text" name="sub_account[humanizer_answer]" id="sub_account_humanizer_answer" data-validate="true">
+ <div class="field_help nodisplay">
+<p>
+ Om het automatisch invullen van formulieren door robots tegen te gaan verzoeken wij u deze vraag te beantwoorden.
+</p>
+</div>
+ </div>
+ <input autocomplete="off" type="hidden" value="11" name="sub_account[humanizer_question_id]" id="sub_account_humanizer_question_id">
+ </div>
+ </fieldset>
+
+ <input type="submit" name="create_free" value="Gratis School-account" tabindex="22" id="create_free" title="Klik om een Gratis School-account aan te maken." class=" sch_button_publish" data-disable-with="Gratis School-account"> of
+ <input type="submit" name="create_basic" value="Instap School-account" tabindex="23" id="create_basic" title="Klik om een Instap School-account aan te maken." class=" sch_button_publish" data-disable-with="Instap School-account"> of
+ <input type="submit" name="create_premium" value="Premium School-account" tabindex="24" id="create_premium" title="Klik om een Premium School-account aan te maken." class=" sch_button_publish" data-disable-with="Premium School-account">
+ <p class="top_20"><em></em></p>
+ </div>
+</form>
\ No newline at end of file