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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
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 @@
\n
<!-- XXX must set a theme here -->
\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
<thead
class=
"ui-bar-inherit"
></thead>
\n
<tfoot
class=
"ui-bar-inherit"
></tfoot>
\n
...
...
@@ -270,7 +283,7 @@
</item>
<item>
<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>
<key>
<string>
state
</string>
</key>
...
...
@@ -288,7 +301,7 @@
</tuple>
<state>
<tuple>
<float>
141
1576737.72
</float>
<float>
141
3558987.65
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
View file @
9a5c6f8e
...
...
@@ -113,6 +113,7 @@
// Init local properties\n
.ready(function (g) {\n
g.props = {};\n
\n
})\n
\n
// Assign the element to a variable\n
...
...
@@ -127,7 +128,7 @@
// acquired method\n
//////////////////////////////////////////////\n
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")\n
.declareAcquiredMethod("whoWantToDisplayThis
", "whoWantToDisplayThis
")\n
.declareAcquiredMethod("whoWantToDisplayThis
FromQuery", "whoWantToDisplayThisFromQuery
")\n
.declareAcquiredMethod("pleasePublishMyState", "pleasePublishMyState")\n
//////////////////////////////////////////////\n
// initialize the gadget content\n
...
...
@@ -198,7 +199,7 @@
\n
for (i = 0; i < counter; i += 1) {\n
promise_list.push(\n
gadget.whoWantToDisplayThis(result.data.rows[i].id)\n
gadget.whoWantToDisplayThis
FromQuery
(result.data.rows[i].id)\n
);\n
}\n
return RSVP.all(promise_list);\n
...
...
@@ -266,14 +267,14 @@
len;\n
\n
th.setAttribute("colspan", field_json.column_list.length);\n
\n
paging_menu.className = "ui-controlgroup ui-controlgroup-horizontal ui-corner-all";\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
ui-paging-menu
";\n
paging_wrap.className = "ui-controlgroup-controls";\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.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
paging_info.textContent = "No records";\n
} else if ((dataset.data.rows.length
<
= lines)
&&
(begin_from === 0)) {\n
...
...
@@ -282,7 +283,7 @@
paging_info.textContent = "Records " + (((begin_from + lines) / lines - 1) * lines + 1) + " to " + (((begin_from + lines) / lines - 1) * lines + counter);\n
}\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.href = url_list[1];\n
\n
...
...
@@ -435,7 +436,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>
...
...
@@ -449,7 +450,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
938.
5956.58558.46011
</string>
</value>
<value>
<string>
938.
20414.6642.36608
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -467,7 +468,7 @@
</tuple>
<state>
<tuple>
<float>
141
2689886.0
</float>
<float>
141
3558513.8
</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