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
a2e8061c
Commit
a2e8061c
authored
Mar 11, 2022
by
Charlotte Bataille
Browse files
fix/19929 : include more symbols allowed in orgRegNumber
parent
30b9a80b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/presentation/maarchRM/Resources/locale/fr/organization/messages.po
View file @
a2e8061c
...
...
@@ -204,8 +204,8 @@ msgstr "Comptes de service"
msgid "Submit"
msgstr "Valider"
msgid "You must use only letters, numbers and the special character '_'"
msgstr "Vous devez utiliser uniquement les lettres, les chiffres et le caractère spécia
l
'_'"
msgid "You must use only letters, numbers and the special character
s
'_'
, '/' and '.'
"
msgstr "Vous devez utiliser uniquement les lettres, les chiffres et le
s
caractère
s
spécia
ux
'_'
, '/' 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 @
a2e8061c
...
...
@@ -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 character '_'
</small>
<small
class=
"help-block"
>
You must use only letters, numbers and the special character
s
'_'
, '/' 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