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
Ludovic Kiefer
erp5
Commits
e3df7423
Commit
e3df7423
authored
Oct 21, 2014
by
Sven Franck
Committed by
Romain Courteaud
Nov 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: added section and temp icon switch
parent
6a7a1d4a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
8 deletions
+27
-8
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_html.xml
...m/web_page_module/rjs_gadget_erp5_pt_form_dialog_html.xml
+7
-4
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.xml
...tem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.xml
+20
-4
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_html.xml
View file @
e3df7423
...
...
@@ -124,7 +124,10 @@
</head>
\n
<body>
\n
\n
<h1></h1>
\n
<section
class=
"ui-content-header-plain"
>
\n
<h3
class=
"ui-content-title ui-body-c"
></h3>
\n
</section>
\n
\n
<!-- XXX action, method, fieldset -->
\n
<form
class=
"dialog_form"
>
\n
<button
type=
"submit"
class=
"ui-btn ui-btn-b ui-btn-inline\n
...
...
@@ -258,7 +261,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
romai
n
</string>
</value>
<value>
<string>
sve
n
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -272,7 +275,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
937.
54178.32965.53043
</string>
</value>
<value>
<string>
937.
64343.1806.54016
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -290,7 +293,7 @@
</tuple>
<state>
<tuple>
<float>
141
2240451.98
</float>
<float>
141
3880520.29
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.xml
View file @
e3df7423
...
...
@@ -164,6 +164,9 @@
.push(function (erp5_form) {\n
var title = options.form_definition.title,\n
i,\n
icon,\n
span = document.createElement("span"),\n
selector = form_gadget.__element.querySelector("h3"),\n
view_list = erp5_document._links.action_workflow || [];\n
\n
for (i = 0; i < view_list.length; i += 1) {\n
...
...
@@ -171,8 +174,21 @@
title = view_list[i].title;\n
}\n
}\n
form_gadget.__element.querySelector("h1").textContent = title;\n
\n
// XXX hardcoded...\n
switch (title) {\n
case "Create User": icon = " ui-icon-user"; break;\n
case "Create Document": icon = " ui-icon-file-o"; break;\n
case "Change State": icon = " ui-icon-share-alt"; break;\n
case "Submit": icon = " ui-icon-check"; break;\n
default: icon = " ui-icon-random"; break;\n
}\n
span.className = "ui-icon ui-icon-custom" + icon;\n
span.textContent = "\\u00A0";\n
selector.appendChild(span);\n
selector.appendChild(document.createTextNode(title));\n
\n
// <span class="ui-icon ui-icon-custom ui-icon-random">
</span>
\n
form_options.erp5_document = options.erp5_document;\n
form_options.form_definition = options.form_definition;\n
form_options.view = options.view;\n
...
...
@@ -377,7 +393,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
romai
n
</string>
</value>
<value>
<string>
sve
n
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -391,7 +407,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
7.65475.63762.40123
</string>
</value>
<value>
<string>
93
8.25845.4177.6041
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -409,7 +425,7 @@
</tuple>
<state>
<tuple>
<float>
141
2328524.22
</float>
<float>
141
3881685.29
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
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