Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
maarchRM
Commits
c3732ec7
Commit
c3732ec7
authored
Mar 14, 2022
by
Charlotte Bataille
Browse files
fix/19929 : include more symbols in orgRegNumber
parent
a2e8061c
Pipeline
#16758
failed with stages
in 36 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/presentation/maarchRM/Resources/locale/fr/organization/messages.po
View file @
c3732ec7
...
...
@@ -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 '_'"
...
...
src/presentation/maarchRM/Resources/view/organization/organizationForm.html
View file @
c3732ec7
...
...
@@ -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
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment