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
Amer
erp5
Commits
9a5c6f8e
Commit
9a5c6f8e
authored
Oct 20, 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: add listbox header first version
parent
a6319f38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
12 deletions
+26
-12
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_html.xml
...lateItem/web_page_module/rjs_gadget_erp5_listbox_html.xml
+15
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
...mplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
+11
-10
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_html.xml
View file @
9a5c6f8e
...
@@ -126,6 +126,19 @@
...
@@ -126,6 +126,19 @@
\n
\n
<!-- XXX must set a theme here -->
\n
<!-- XXX must set a theme here -->
\n
<section
class=
"document_table"
>
\n
<section
class=
"document_table"
>
\n
<div
class=
"ui-table-header ui-header ui-bar-c ui-corner-all"
>
\n
<div
class=
"ui-controlgroup ui-controlgroup-horizontal ui-btn-left"
>
\n
<div
class=
"ui-controlgroup-controls"
>
\n
<a
class=
"ui-responsive ui-btn ui-btn-icon-left ui-icon-eye ui-first-child"
href=
"#"
>
Hide Rows
</a>
\n
</div>
\n
</div>
\n
<h1
class=
"ui-title"
>
0 items selected
</h1>
\n
<div
class=
"ui-controlgroup ui-controlgroup-horizontal ui-btn-right"
>
\n
<div
class=
"ui-controlgroup-controls"
>
\n
<a
class=
"ui-responsive ui-btn ui-btn-icon-left ui-icon-sort-amount-desc ui-last-child"
href=
"#"
>
Apply Filter
</a>
\n
</div>
\n
</div>
\n
</div>
\n
<table
class=
"ui-responsive ui-body-c ui-table-inset"
>
\n
<table
class=
"ui-responsive ui-body-c ui-table-inset"
>
\n
<thead
class=
"ui-bar-inherit"
></thead>
\n
<thead
class=
"ui-bar-inherit"
></thead>
\n
<tfoot
class=
"ui-bar-inherit"
></tfoot>
\n
<tfoot
class=
"ui-bar-inherit"
></tfoot>
\n
...
@@ -270,7 +283,7 @@
...
@@ -270,7 +283,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
7.51306.4912.34986
</string>
</value>
<value>
<string>
93
8.20466.7800.9574
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -288,7 +301,7 @@
...
@@ -288,7 +301,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
141
1576737.72
</float>
<float>
141
3558987.65
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
View file @
9a5c6f8e
...
@@ -113,6 +113,7 @@
...
@@ -113,6 +113,7 @@
// Init local properties\n
// Init local properties\n
.ready(function (g) {\n
.ready(function (g) {\n
g.props = {};\n
g.props = {};\n
\n
})\n
})\n
\n
\n
// Assign the element to a variable\n
// Assign the element to a variable\n
...
@@ -127,7 +128,7 @@
...
@@ -127,7 +128,7 @@
// acquired method\n
// acquired method\n
//////////////////////////////////////////////\n
//////////////////////////////////////////////\n
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")\n
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")\n
.declareAcquiredMethod("whoWantToDisplayThis
", "whoWantToDisplayThis
")\n
.declareAcquiredMethod("whoWantToDisplayThis
FromQuery", "whoWantToDisplayThisFromQuery
")\n
.declareAcquiredMethod("pleasePublishMyState", "pleasePublishMyState")\n
.declareAcquiredMethod("pleasePublishMyState", "pleasePublishMyState")\n
//////////////////////////////////////////////\n
//////////////////////////////////////////////\n
// initialize the gadget content\n
// initialize the gadget content\n
...
@@ -198,7 +199,7 @@
...
@@ -198,7 +199,7 @@
\n
\n
for (i = 0; i < counter; i += 1) {\n
for (i = 0; i < counter; i += 1) {\n
promise_list.push(\n
promise_list.push(\n
gadget.whoWantToDisplayThis(result.data.rows[i].id)\n
gadget.whoWantToDisplayThis
FromQuery
(result.data.rows[i].id)\n
);\n
);\n
}\n
}\n
return RSVP.all(promise_list);\n
return RSVP.all(promise_list);\n
...
@@ -266,14 +267,14 @@
...
@@ -266,14 +267,14 @@
len;\n
len;\n
\n
\n
th.setAttribute("colspan", field_json.column_list.length);\n
th.setAttribute("colspan", field_json.column_list.length);\n
\n
// NOTE: Romain: paging menu with 3+ buttons should have another class name (like ui-paging-grid)
\n
paging_menu.className = "ui-controlgroup ui-controlgroup-horizontal ui-corner-all";\n
paging_menu.className = "ui-controlgroup ui-controlgroup-horizontal ui-corner-all
ui-paging-menu
";\n
paging_wrap.className = "ui-controlgroup-controls";\n
paging_wrap.className = "ui-controlgroup-controls";\n
\n
\n
paging_prev.className = "ui-btn ui-icon-carat-l ui-btn-icon-left ui-first-child";\n
paging_prev.className = "ui-btn ui-icon-carat-l ui-btn-icon-left
responsive
ui-first-child";\n
paging_prev.textContent = "Previous";\n
paging_prev.textContent = "Previous";\n
paging_prev.href = url_list[0];\n
paging_prev.href = url_list[0];\n
paging_info.className = "ui-btn ui-disabled
custom-readonly
";\n
paging_info.className = "ui-btn ui-disabled";\n
if ((begin_from === 0)
&&
(counter === 0)) {\n
if ((begin_from === 0)
&&
(counter === 0)) {\n
paging_info.textContent = "No records";\n
paging_info.textContent = "No records";\n
} else if ((dataset.data.rows.length
<
= lines)
&&
(begin_from === 0)) {\n
} else if ((dataset.data.rows.length
<
= lines)
&&
(begin_from === 0)) {\n
...
@@ -282,7 +283,7 @@
...
@@ -282,7 +283,7 @@
paging_info.textContent = "Records " + (((begin_from + lines) / lines - 1) * lines + 1) + " to " + (((begin_from + lines) / lines - 1) * lines + counter);\n
paging_info.textContent = "Records " + (((begin_from + lines) / lines - 1) * lines + 1) + " to " + (((begin_from + lines) / lines - 1) * lines + counter);\n
}\n
}\n
// paging_info.textContent = "Page " + ((begin_from + lines) / lines);\n
// paging_info.textContent = "Page " + ((begin_from + lines) / lines);\n
paging_next.className = "ui-btn ui-icon-carat-r ui-btn-icon-right ui-last-child";\n
paging_next.className = "ui-btn ui-icon-carat-r ui-btn-icon-right
responsive
ui-last-child";\n
paging_next.textContent = "Next";\n
paging_next.textContent = "Next";\n
paging_next.href = url_list[1];\n
paging_next.href = url_list[1];\n
\n
\n
...
@@ -435,7 +436,7 @@
...
@@ -435,7 +436,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
romai
n
</string>
</value>
<value>
<string>
sve
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -449,7 +450,7 @@
...
@@ -449,7 +450,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
938.
5956.58558.46011
</string>
</value>
<value>
<string>
938.
20414.6642.36608
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -467,7 +468,7 @@
...
@@ -467,7 +468,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
141
2689886.0
</float>
<float>
141
3558513.8
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</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