Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
cf7b8116
Commit
cf7b8116
authored
Oct 21, 2022
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_panel: do not display "Editable" checkbox
parent
3ddf3a4c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
master/bt5/slapos_panel/PathTemplateItem/web_page_module/slapos_master_panel_panel_html.html
...eItem/web_page_module/slapos_master_panel_panel_html.html
+2
-2
master/bt5/slapos_panel/PathTemplateItem/web_page_module/slapos_master_panel_panel_html.xml
...teItem/web_page_module/slapos_master_panel_panel_html.xml
+2
-2
master/bt5/slapos_panel/PathTemplateItem/web_page_module/slapos_master_panel_panel_js.js
...plateItem/web_page_module/slapos_master_panel_panel_js.js
+5
-3
master/bt5/slapos_panel/PathTemplateItem/web_page_module/slapos_master_panel_panel_js.xml
...lateItem/web_page_module/slapos_master_panel_panel_js.xml
+2
-2
No files found.
master/bt5/slapos_panel/PathTemplateItem/web_page_module/slapos_master_panel_panel_html.html
View file @
cf7b8116
...
@@ -55,9 +55,9 @@
...
@@ -55,9 +55,9 @@
</form>
</form>
<ul></ul>
<ul></ul>
<div
data-gadget-url=
"gadget_erp5_field_multicheckbox.html"
<
!--
div data-gadget-url="gadget_erp5_field_multicheckbox.html"
data-gadget-scope="erp5_checkbox"
data-gadget-scope="erp5_checkbox"
data-gadget-sandbox=
"public"
></div>
data-gadget-sandbox="public"></div
--
>
<dl></dl>
<dl></dl>
</div>
</div>
</div>
</div>
...
...
master/bt5/slapos_panel/PathTemplateItem/web_page_module/slapos_master_panel_panel_html.xml
View file @
cf7b8116
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
1003.
49969.4010.22357
</string>
</value>
<value>
<string>
1003.
50025.317.42786
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -256,7 +256,7 @@
...
@@ -256,7 +256,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1666
257180.24
</float>
<float>
1666
345667.93
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_panel/PathTemplateItem/web_page_module/slapos_master_panel_panel_js.js
View file @
cf7b8116
...
@@ -197,12 +197,12 @@
...
@@ -197,12 +197,12 @@
'
Search
'
,
'
Search
'
,
'
My Account
'
,
'
My Account
'
,
'
Logout
'
'
Logout
'
])
,
])
checkbox_gadget
:
gadget
.
getDeclaredGadget
(
"
erp5_checkbox
"
)
//
checkbox_gadget: gadget.getDeclaredGadget("erp5_checkbox")
});
});
})
})
.
push
(
function
(
result_dict
)
{
.
push
(
function
(
result_dict
)
{
var
editable_value
=
[],
var
//
editable_value = [],
element_list
=
[],
element_list
=
[],
icon_and_key_list
=
[
icon_and_key_list
=
[
'
home
'
,
null
,
'
home
'
,
null
,
...
@@ -229,6 +229,7 @@
...
@@ -229,6 +229,7 @@
domsugar
(
gadget
.
element
.
querySelector
(
"
ul
"
),
domsugar
(
gadget
.
element
.
querySelector
(
"
ul
"
),
[
domsugar
(
null
,
element_list
)]);
[
domsugar
(
null
,
element_list
)]);
/*
// Update the checkbox field value
// Update the checkbox field value
if (gadget.state.editable) {
if (gadget.state.editable) {
editable_value = ['editable'];
editable_value = ['editable'];
...
@@ -241,6 +242,7 @@
...
@@ -241,6 +242,7 @@
items: [[result_dict.translation_list[0], 'editable']],
items: [[result_dict.translation_list[0], 'editable']],
'default': editable_value
'default': editable_value
}});
}});
*/
});
});
}
}
...
...
master/bt5/slapos_panel/PathTemplateItem/web_page_module/slapos_master_panel_panel_js.xml
View file @
cf7b8116
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
1003.51
470.26068.15547
</string>
</value>
<value>
<string>
1003.51
500.27349.12782
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1666345
403.05
</float>
<float>
1666345
844.17
</float>
<string>
UTC
</string>
<string>
UTC
</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