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
Laurent S
erp5
Commits
caab19c1
Commit
caab19c1
authored
Jul 02, 2015
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: make multi checkbox field and radio field 's layout better
parent
ecd90514
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
17 deletions
+24
-17
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multicheckboxfield_html.xml
...b_page_module/rjs_gadget_erp5_multicheckboxfield_html.xml
+10
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_radiofield_html.xml
...eItem/web_page_module/rjs_gadget_erp5_radiofield_html.xml
+7
-5
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_radiofield_js.xml
...ateItem/web_page_module/rjs_gadget_erp5_radiofield_js.xml
+7
-6
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multicheckboxfield_html.xml
View file @
caab19c1
...
@@ -121,13 +121,17 @@
...
@@ -121,13 +121,17 @@
<script
src=
"gadget_erp5_field_multicheckbox.js"
type=
"text/javascript"
></script>
\n
<script
src=
"gadget_erp5_field_multicheckbox.js"
type=
"text/javascript"
></script>
\n
\n
\n
<script
id=
"unchecked-template"
type=
"text/x-handlebars-template"
>
\n
<script
id=
"unchecked-template"
type=
"text/x-handlebars-template"
>
\n
<
input
type=
"checkbox"
value=
"{{value}}"
name=
"{{text}}"
class =
"ui-btn"
data-i18n=
"{{text}}
"
>
\n
<
div
class=
"ui-field-contain
"
>
\n
<label
for=
"{{text}}"
data-i18n=
"{{text}}"
>
{{text}}
</label>
\n
<label
for=
"{{text}}"
data-i18n=
"{{text}}"
>
{{text}}
</label>
\n
<input
type=
"checkbox"
value=
"{{value}}"
name=
"{{text}}"
class =
"ui-btn"
data-i18n=
"{{text}}"
>
\n
</div>
\n
</script>
\n
</script>
\n
\n
\n
<script
id=
"checked-template"
type=
"text/x-handlebars-template"
>
\n
<script
id=
"checked-template"
type=
"text/x-handlebars-template"
>
\n
<
input
type=
"checkbox"
value=
"{{value}}"
checked=
true
data-i18n=
"{{text}}"
class =
"ui-btn"
name=
"{{text}}
"
>
\n
<
diV
class=
"ui-field-contain
"
>
\n
<label
for=
"{{text}}"
data-i18n=
"{{text}}"
>
{{text}}
</label>
\n
<label
for=
"{{text}}"
data-i18n=
"{{text}}"
>
{{text}}
</label>
\n
<input
type=
"checkbox"
value=
"{{value}}"
checked=
true
data-i18n=
"{{text}}"
class =
"ui-btn"
name=
"{{text}}"
>
\n
</div>
\n
</script>
\n
</script>
\n
</head>
\n
</head>
\n
<body>
\n
<body>
\n
...
@@ -273,7 +277,7 @@
...
@@ -273,7 +277,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
944.6
697.38351.57821
</string>
</value>
<value>
<string>
944.6
874.36886.54937
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -291,7 +295,7 @@
...
@@ -291,7 +295,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
143581
3493.6
5
</float>
<float>
143581
7983.3
5
</float>
<string>
GMT+2
</string>
<string>
GMT+2
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_radiofield_html.xml
View file @
caab19c1
...
@@ -120,7 +120,9 @@
...
@@ -120,7 +120,9 @@
</head>
\n
</head>
\n
\n
\n
<body>
\n
<body>
\n
<fieldset
class=
"radiogroup"
data-role=
"controlgroup"
>
\n
<fieldset
class=
"ui-controlgroup ui-corner-all ui-controlgroup-vertical"
>
\n
<div
class=
"radiogroup"
>
\n
</div>
\n
</fieldset>
\n
</fieldset>
\n
</body>
\n
</body>
\n
</html>
</html>
...
@@ -246,7 +248,7 @@
...
@@ -246,7 +248,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
xiaowu
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -260,7 +262,7 @@
...
@@ -260,7 +262,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
943.
40818.25091.49920
</string>
</value>
<value>
<string>
943.
62898.42115.10666
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -278,8 +280,8 @@
...
@@ -278,8 +280,8 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
143
4009025.41
</float>
<float>
143
5816933.09
</float>
<string>
UTC
</string>
<string>
GMT+2
</string>
</tuple>
</tuple>
</state>
</state>
</object>
</object>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_radiofield_js.xml
View file @
caab19c1
...
@@ -135,6 +135,7 @@
...
@@ -135,6 +135,7 @@
div = document.createElement("div");\n
div = document.createElement("div");\n
div.setAttribute("class", "ui-field-contain");\n
div.setAttribute("class", "ui-field-contain");\n
input = document.createElement("input");\n
input = document.createElement("input");\n
input.setAttribute("class", "ui-btn");\n
input.setAttribute("type", "radio");\n
input.setAttribute("type", "radio");\n
input.setAttribute("name", field_json.key);\n
input.setAttribute("name", field_json.key);\n
input.setAttribute("value", items[i][1]);\n
input.setAttribute("value", items[i][1]);\n
...
@@ -142,13 +143,13 @@
...
@@ -142,13 +143,13 @@
input.setAttribute("checked", true);\n
input.setAttribute("checked", true);\n
}\n
}\n
if (editable === 0) {\n
if (editable === 0) {\n
input.setAttribute("class", "ui-state-disabled");\n
input.setAttribute("class", "ui-
btn ui-
state-disabled");\n
}\n
}\n
label = document.createElement("label");\n
label = document.createElement("label");\n
label.setAttribute(\'for\', items[i][0]);\n
label.setAttribute(\'for\', items[i][0]);\n
label.textContent = items[i][0];\n
label.textContent = items[i][0];\n
label.setAttribute(\'data-i18n\', items[i][0]);\n
label.setAttribute(\'data-i18n\', items[i][0]);\n
\n
\n
div.appendChild(label);\n
div.appendChild(label);\n
div.appendChild(input);\n
div.appendChild(input);\n
radio_group.appendChild(div);\n
radio_group.appendChild(div);\n
...
@@ -307,7 +308,7 @@
...
@@ -307,7 +308,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
xiaowu
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -321,7 +322,7 @@
...
@@ -321,7 +322,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
3.41916.12770.63334
</string>
</value>
<value>
<string>
94
4.6869.21158.19933
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -339,8 +340,8 @@
...
@@ -339,8 +340,8 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
143
4075112.9
</float>
<float>
143
5817661.94
</float>
<string>
UTC
</string>
<string>
GMT+2
</string>
</tuple>
</tuple>
</state>
</state>
</object>
</object>
...
...
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