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
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
Nicolas Wavrant
slapos.core
Commits
e6c1235f
Commit
e6c1235f
authored
Apr 29, 2015
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_web: warn before destroying hosting subscription
parent
bd02658a
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
661 additions
and
0 deletions
+661
-0
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_warnBeforeDestroyJS.xml
...m/portal_skins/vifib_hosting/Base_warnBeforeDestroyJS.xml
+87
-0
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/HostingSubscription_viewAsWeb.xml
...tal_skins/vifib_hosting/HostingSubscription_viewAsWeb.xml
+2
-0
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/HostingSubscription_viewAsWeb/my_destroy_button.xml
...sting/HostingSubscription_viewAsWeb/my_destroy_button.xml
+5
-0
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/HostingSubscription_viewAsWeb/my_destroy_warn_message.xml
...HostingSubscription_viewAsWeb/my_destroy_warn_message.xml
+260
-0
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/HostingSubscription_viewAsWeb/your_destroy_hosting.xml
...ng/HostingSubscription_viewAsWeb/your_destroy_hosting.xml
+307
-0
No files found.
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_warnBeforeDestroyJS.xml
0 → 100644
View file @
e6c1235f
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
return """\n
<script>
\n
"use strict";\n
$(document).ready(function(){\n
\n
$("#destroy_hs").click(function(){\n
if ($(this).attr("rel") !== "confirm") {\n
$(this).val("Confirm destruction");\n
$(this).attr("rel", "confirm");\n
$("#alert_destroy_hs").fadeIn(200);\n
$("#alert_destroy_hs").css("display", "inline-block");\n
return false;\n
}\n
});\n
});\n
</script>
\n
"""\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Base_warnBeforeDestroyJS
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/HostingSubscription_viewAsWeb.xml
View file @
e6c1235f
...
@@ -76,6 +76,7 @@
...
@@ -76,6 +76,7 @@
<value>
<value>
<list>
<list>
<string>
listbox
</string>
<string>
listbox
</string>
<string>
my_destroy_warn_message
</string>
<string>
my_destroy_button
</string>
<string>
my_destroy_button
</string>
<string>
ticket_listbox
</string>
<string>
ticket_listbox
</string>
<string>
new_ticket_button
</string>
<string>
new_ticket_button
</string>
...
@@ -118,6 +119,7 @@
...
@@ -118,6 +119,7 @@
<string>
my_restricted_access_token_generate_button
</string>
<string>
my_restricted_access_token_generate_button
</string>
<string>
your_connection_listbox
</string>
<string>
your_connection_listbox
</string>
<string>
your_monitoring_status
</string>
<string>
your_monitoring_status
</string>
<string>
your_destroy_hosting
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
...
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/HostingSubscription_viewAsWeb/my_destroy_button.xml
View file @
e6c1235f
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<string>
css_class
</string>
<string>
css_class
</string>
<string>
default
</string>
<string>
default
</string>
<string>
enabled
</string>
<string>
enabled
</string>
<string>
extra
</string>
<string>
name
</string>
<string>
name
</string>
<string>
title
</string>
<string>
title
</string>
</list>
</list>
...
@@ -115,6 +116,10 @@
...
@@ -115,6 +116,10 @@
<key>
<string>
enabled
</string>
</key>
<key>
<string>
enabled
</string>
</key>
<value>
<int>
1
</int>
</value>
<value>
<int>
1
</int>
</value>
</item>
</item>
<item>
<key>
<string>
extra
</string>
</key>
<value>
<string>
id=\'destroy_hs\'
</string>
</value>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_input_button_field
</string>
</value>
<value>
<string>
my_input_button_field
</string>
</value>
...
...
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/HostingSubscription_viewAsWeb/my_destroy_warn_message.xml
0 → 100644
View file @
e6c1235f
This diff is collapsed.
Click to expand it.
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/HostingSubscription_viewAsWeb/your_destroy_hosting.xml
0 → 100644
View file @
e6c1235f
This diff is collapsed.
Click to expand it.
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