Commit c3732ec7 authored by Charlotte Bataille's avatar Charlotte Bataille
Browse files

fix/19929 : include more symbols in orgRegNumber

parent a2e8061c
Pipeline #16758 failed with stages
in 36 seconds
......@@ -204,8 +204,8 @@ msgstr "Comptes de service"
msgid "Submit"
msgstr "Valider"
msgid "You must use only letters, numbers and the special characters '_', '/' and '.'"
msgstr "Vous devez utiliser uniquement les lettres, les chiffres et les caractères spéciaux '_', '/' et '.'"
msgid "You must use only letters, numbers and the special characters ('_','-','/' and '.')"
msgstr "Vous devez utiliser uniquement les lettres, les chiffres et les caractères spéciaux ('_','-','/' et '.')"
msgid "The first and last character must be a letter. You must use only letters and the special character '_'"
msgstr "Les premier et dernier caractères doivent être des lettres. Vous devez utiliser uniquement les lettres et le caractère spécial '_'"
......
......@@ -33,7 +33,7 @@
<div class="form-group">
<label>Registration number <span style="color: red">*</span></label>
<input type="text" class="form-control" name="registrationNumber" placeholder="Registration number">
<small class="help-block">You must use only letters, numbers and the special characters '_', '/' and '.'</small>
<small class="help-block">You must use only letters, numbers and the special characters ('_','-','/' and '.')</small>
</div>
<div class="form-group" id="orgForm_enabled" style="display: none">
<label>Enabled</label>
......@@ -265,7 +265,7 @@
var organization = OrganizationForm.serialize();
var pattern = new RegExp("^[A-Za-z0-9_/.]*[A-Za-z0-9_/]$");
var pattern = new RegExp("^[A-Za-z0-9_/.-]*[A-Za-z0-9_/.-]$");
if(!pattern.test(organization.registrationNumber)) {
return;
......@@ -395,7 +395,7 @@
$("#organization_organizationForm").on("keyup","[name='registrationNumber']", function(){
var input = $(this);
var pattern = new RegExp("^[A-Za-z0-9_/.]*[A-Za-z0-9/]$");
var pattern = new RegExp("^[A-Za-z0-9_/.-]*[A-Za-z0-9/.-]$");
var formGroup = input.closest('.form-group');
if(!input.val()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment