Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
64855bed
Commit
64855bed
authored
1 year ago
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_credential: Fix external validator to check login availability in ERP5JS
parent
d077422a
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
289 additions
and
1 deletion
+289
-1
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_checkLoginAvailability.py
...p5_credential/CredentialRequest_checkLoginAvailability.py
+1
-1
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_view.xml
...m/portal_skins/erp5_credential/CredentialRequest_view.xml
+1
-0
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_view/your_object_path.xml
...p5_credential/CredentialRequest_view/your_object_path.xml
+287
-0
No files found.
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_checkLoginAvailability.py
View file @
64855bed
...
@@ -17,7 +17,7 @@ if value:
...
@@ -17,7 +17,7 @@ if value:
def
getRealContext
():
def
getRealContext
():
if
not
REQUEST
:
if
not
REQUEST
:
return
context
return
context
object_path
=
REQUEST
.
get
(
"object_path"
)
object_path
=
REQUEST
.
get
(
"object_path"
)
or
REQUEST
.
get
(
"field_your_object_path"
)
return
portal
.
restrictedTraverse
(
object_path
)
return
portal
.
restrictedTraverse
(
object_path
)
#Allow user to create a request with it's username
#Allow user to create a request with it's username
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_view.xml
View file @
64855bed
...
@@ -123,6 +123,7 @@
...
@@ -123,6 +123,7 @@
<string>
my_start_date
</string>
<string>
my_start_date
</string>
<string>
my_stop_date
</string>
<string>
my_stop_date
</string>
<string>
my_url_string
</string>
<string>
my_url_string
</string>
<string>
your_object_path
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_view/your_object_path.xml
0 → 100644
View file @
64855bed
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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