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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
df7875d6
Commit
df7875d6
authored
Jun 19, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web_renderjs_ui: move login_page tal:define to <html>
This way we don't need to define absolute_url multiple times
parent
59e1221c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/login_form.zpt
...lateItem/portal_skins/erp5_web_renderjs_ui/login_form.zpt
+8
-7
No files found.
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/login_form.zpt
View file @
df7875d6
<html>
<html
tal:define=
"form_action string:WebSite_login;
absolute_url context/absolute_url;
portal context/getPortalObject"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title
tal:content=
"p
ython: here.getPortalObject().getTitle()
"
></title>
<title
tal:content=
"p
ortal/getTitle
"
></title>
<link
rel=
"stylesheet"
href=
"gadget_erp5_nojqm.css"
>
</head>
<body
tal:define=
"form_action string:WebSite_login;
portal here/getPortalObject"
>
<body>
<div
data-gadget-scope=
'header'
>
<div
class=
"ui-header"
>
...
...
@@ -38,7 +39,7 @@
</section>
<section
tal:condition=
"portal/portal_membership/isAnonymousUser"
>
<form
method=
"post"
tal:attributes=
"action python: '%s/' %
context.absolute_url()
"
>
<form
method=
"post"
tal:attributes=
"action python: '%s/' %
absolute_url
"
>
<div
class=
"ui-field-contain"
>
<label
i18n:domain=
"ui"
i18n:translate=
""
>
Username
</label>
...
...
@@ -50,7 +51,7 @@
</div>
<div
class=
"ui-field-contain"
>
<label></label>
<div
tal:define=
"absolute_url python:context.absolute_url()"
>
<div>
<a
i18n:domain=
"ui"
i18n:translate=
""
tal:attributes=
"href python: '%s/WebSite_viewRecoverAccount?came_from=%s' % (absolute_url, absolute_url)"
>
I forgot my password!
</a>
</div>
</div><br/>
...
...
@@ -60,7 +61,7 @@
</div>
<input
type=
"hidden"
name=
"url"
tal:attributes=
"value
python: context.absolute_url()
"
/>
<input
type=
"hidden"
name=
"url"
tal:attributes=
"value
absolute_url
"
/>
<input
tal:condition=
"exists: request/came_from"
type=
"hidden"
name=
"came_from"
tal:attributes=
"value request/came_from"
/>
...
...
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