Commit efcbe3a4 authored by Rafael Monnerat's avatar Rafael Monnerat

Drop Trial Request

See merge request !401
parents bda3cde9 d816cfc2
...@@ -259,8 +259,6 @@ class TestSlapOSConfigurator(SlapOSTestCaseMixin): ...@@ -259,8 +259,6 @@ class TestSlapOSConfigurator(SlapOSTestCaseMixin):
'task_report_module', 'task_report_module',
'test_page_module', 'test_page_module',
'transformation_module', 'transformation_module',
'trial_condition_module',
'trial_request_module',
'upgrade_decision_module', 'upgrade_decision_module',
'web_page_module', 'web_page_module',
'web_site_module', 'web_site_module',
......
...@@ -109,8 +109,6 @@ url_list = [ ...@@ -109,8 +109,6 @@ url_list = [
"gadget_erp5_page_slap_project_view.js", "gadget_erp5_page_slap_project_view.js",
"gadget_erp5_page_slap_regularisation_request_view.html", "gadget_erp5_page_slap_regularisation_request_view.html",
"gadget_erp5_page_slap_regularisation_request_view.js", "gadget_erp5_page_slap_regularisation_request_view.js",
"gadget_erp5_page_slap_request_trial.html",
"gadget_erp5_page_slap_request_trial.js",
"gadget_erp5_page_slap_rss_critical_ticket.html", "gadget_erp5_page_slap_rss_critical_ticket.html",
"gadget_erp5_page_slap_rss_critical_ticket.js", "gadget_erp5_page_slap_rss_critical_ticket.js",
"gadget_erp5_page_slap_rss_ticket.html", "gadget_erp5_page_slap_rss_ticket.html",
...@@ -144,8 +142,6 @@ url_list = [ ...@@ -144,8 +142,6 @@ url_list = [
"gadget_erp5_page_slap_transfer_instance_tree.js", "gadget_erp5_page_slap_transfer_instance_tree.js",
"gadget_erp5_page_slap_transfer_computer_network.html", "gadget_erp5_page_slap_transfer_computer_network.html",
"gadget_erp5_page_slap_transfer_computer_network.js", "gadget_erp5_page_slap_transfer_computer_network.js",
"gadget_erp5_page_slap_trial_request_message.html",
"gadget_erp5_page_slap_trial_request_message.js",
"gadget_erp5_page_slap_upgrade_decision_view.html", "gadget_erp5_page_slap_upgrade_decision_view.html",
"gadget_erp5_page_slap_upgrade_decision_view.js", "gadget_erp5_page_slap_upgrade_decision_view.js",
"gadget_erp5_page_slap_invalidate_login.js", "gadget_erp5_page_slap_invalidate_login.js",
...@@ -158,9 +154,6 @@ url_list = [ ...@@ -158,9 +154,6 @@ url_list = [
"gadget_erp5_page_slapos.html", "gadget_erp5_page_slapos.html",
"gadget_erp5_page_slapos.js", "gadget_erp5_page_slapos.js",
"gadget_erp5_page_slapos_request_form.html", "gadget_erp5_page_slapos_request_form.html",
"gadget_erp5_page_trial.css",
"gadget_erp5_page_trial.html",
"gadget_erp5_page_trial.js",
"gadget_erp5_panel_shortcut.html", "gadget_erp5_panel_shortcut.html",
"gadget_erp5_panel_shortcut.js", "gadget_erp5_panel_shortcut.js",
"gadget_erp5_pt_form_slapos_index.html", "gadget_erp5_pt_form_slapos_index.html",
...@@ -205,8 +198,6 @@ url_list = [ ...@@ -205,8 +198,6 @@ url_list = [
"gadget_slapos_site_status.html", "gadget_slapos_site_status.html",
"gadget_slapos_site_status.js", "gadget_slapos_site_status.js",
"gadget_slapos_utils.js", "gadget_slapos_utils.js",
"gadget_trial_panel.html",
"gadget_trial_panel.js",
"leaflet.css", "leaflet.css",
"leaflet.js", "leaflet.js",
"tv4.min.js", "tv4.min.js",
......
<!DOCTYPE html>
<html>
<!--
data-i18n=The name of a document in ERP5
data-i18n=Your Email
data-i18n=Terms of Service
data-i18n=Parent Relative Url
data-i18n=Request a Trial for
-->
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title>Site List</title>
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script>
<!-- custom script -->
<script src="gadget_erp5_page_slap_request_trial.js" type="text/javascript"></script>
</head>
<body>
<form class="save_form ui-body-c" novalidate>
<button type="submit" class="ui-btn ui-btn-b ui-btn-inline
ui-icon-edit ui-btn-icon-right ui-screen-hidden"></button>
<div data-gadget-url="gadget_erp5_form.html"
data-gadget-scope="form_view"
data-gadget-sandbox="public">
</div>
</form>
</body>
</html>
/*global window, rJS, RSVP, btoa */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(function (window, rJS, RSVP) {
"use strict";
rJS(window)
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
.declareAcquiredMethod("updateHeader", "updateHeader")
.declareAcquiredMethod("updatePanel", "updatePanel")
.declareAcquiredMethod("getSetting", "getSetting")
.declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("redirect", "redirect")
.declareAcquiredMethod("jio_post", "jio_post")
.declareAcquiredMethod("jio_get", "jio_get")
.declareAcquiredMethod("jio_getAttachment", "jio_getAttachment")
.declareAcquiredMethod("jio_putAttachment", "jio_putAttachment")
.declareAcquiredMethod("notifySubmitting", "notifySubmitting")
.declareAcquiredMethod("notifySubmitted", 'notifySubmitted')
.declareAcquiredMethod("getTranslationList", "getTranslationList")
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.allowPublicAcquisition('notifySubmit', function () {
return this.triggerSubmit();
})
.onEvent('submit', function () {
var gadget = this;
return gadget.notifySubmitting()
.push(function () {
return gadget.getDeclaredGadget('form_view');
})
.push(function (form_gadget) {
return form_gadget.getContent();
})
.push(function (doc) {
return gadget.getSetting("hateoas_url")
.push(function (url) {
return gadget.jio_getAttachment(doc.relative_url,
url + doc.relative_url +
"/TrialCondition_requestFreeTrial?default_email_text=" + encodeURIComponent(doc.default_email_text) +
"&default_input0=" + encodeURIComponent(doc.default_input0) +
"&default_input1=" + encodeURIComponent(doc.default_input1));
});
})
.push(function (result) {
return gadget.redirect({"command": "change",
"options": {"jio_key": "/",
"page": "slap_trial_request_message",
"result": result}});
});
})
.declareMethod("triggerSubmit", function () {
return this.element.querySelector('button[type="submit"]').click();
})
.declareMethod("render", function (options) {
var gadget = this,
page_title_translation,
translation_list = [
"The name of a document in ERP5",
"Your Email",
"Terms of Service",
"Parent Relative Url",
"Request a Trial for"
];
return new RSVP.Queue()
.push(function () {
return gadget.getSetting("hateoas_url");
})
.push(function (hateoas_url) {
return RSVP.all([
gadget.getDeclaredGadget('form_view'),
gadget.jio_getAttachment("/",
hateoas_url + "/ERP5Site_getTrialConfigurationAsJSON"),
gadget.getTranslationList(translation_list)
]);
})
.push(function (result) {
page_title_translation = result[2][4];
var i, doc;
for (i in result[1]) {
if ((result[1].hasOwnProperty(i)) &&
(result[1][i].url === options.jio_key)) {
doc = result[1][i];
break;
}
}
return result[0].render({
erp5_document: {
"_embedded": {"_view": {
"your_product_description": {
"description": result[2][0],
"title": "",
"default": doc.product_description,
"css_class": "",
"required": 0,
"editable": 0,
"key": "product_description",
"hidden": 0,
"type": "EditorField"
},
"your_email": {
"description": result[2][0],
"title": result[2][1],
"default": "",
"css_class": "",
"required": 1,
"editable": 1,
"key": "default_email_text",
"hidden": 0,
"type": "EmailField"
},
"your_input0": {
"description": result[2][0],
"title": doc.input_list.length > 0 ? doc.input_list[0] : "",
"default": "",
"css_class": "",
"required": 0,
"editable": 1,
"key": "default_input0",
"hidden": doc.input_list.length > 0 ? 0 : 1,
"type": "StringField"
},
"your_input1": {
"description": result[2][0],
"title": doc.input_list.length > 1 ? doc.input_list[1] : "",
"default": "",
"css_class": "",
"required": 0,
"editable": 1,
"key": "default_input1",
"hidden": doc.input_list.length > 1 ? 0 : 1,
"type": "StringField"
},
"your_terms_of_service": {
"default": doc.terms_of_service,
"title": result[2][2],
"css_class": "",
"required": 0,
"editable": 0,
"key": "terms_of_service",
"hidden": 0,
"type": "EditorField",
//"url": "gadget_editor.html",
"sandbox": "iframe"
},
"my_relative_url": {
"description": "",
"title": result[2][3],
"default": options.jio_key,
"css_class": "",
"required": 1,
"editable": 1,
"key": "relative_url",
"hidden": 1,
"type": "StringField"
}
}},
"_links": {
"type": {
// form_list display portal_type in header
name: ""
}
}
},
form_definition: {
group_list: [[
"center",
[["your_product_description"], ["your_email"],
["your_input0"], ["your_input1"],
["your_terms_of_service"], ["my_relative_url"]]
]]
}
})
.push(function () {
return gadget.updatePanel({
jio_key: false
});
})
.push(function () {
return gadget.updateHeader({
page_title: page_title_translation + " " + doc.name,
submit_action: true
});
});
});
});
}(window, rJS, RSVP));
\ No newline at end of file
<!DOCTYPE html>
<html>
<!--
data-i18n=Already Requested
data-i18n=Thank You
data-i18n=Limit Exceed
data-i18n=Unknown action to take:
-->
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title>Site List</title>
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
<script src="handlebars.js"></script>
<script src="renderjs.js" type="text/javascript"></script>
<!-- custom script -->
<script src="gadget_erp5_page_slap_trial_request_message.js" type="text/javascript"></script>
<script id="thank-you-template" type="text/x-handlebars-template">
<h1> Thank you!</h1>
<p> Your <strong>token</strong> is under preparation, one email is going to be send to you in about <strong>10 minutes</strong> with your token and instructions on how to use! </p>
<p> Remember your token is only valid for the next 30 days and it will be automatically expired in after this day.</p>
<br/>
<p> <a href={{return_url}}>Return </a></p>
</script>
<script id="exceed-limit-template" type="text/x-handlebars-template">
<h1> Sorry, You exceeded the limit of Trial Requests</h1>
<p> Your email already has more them 30 active trial requests, so you exceeded the limit. </p>
<p> Please use another email address or wait few days until some the activity tickets expire. </p>
<br/>
<p> <a href={{return_url}}>Return </a></p>
</script>
<script id="already-requested-template" type="text/x-handlebars-template">
<h1> Sorry, You already has one trial under deployment.</h1>
<br />
<p> You already requested for a trial and it was not deployed yet. Please be patient and wait a little longer for a mail with your token. </p>
<br />
<p> In case the problem persists for more them 1 hour, please do not hesitate to contact us. </p>
<br/>
<p> <a href={{return_url}}>Return </a></p>
</script>
</head>
<body>
<div> </div>
</body>
</html>
/*globals console, window, rJS, RSVP, loopEventListener, i18n, Handlebars*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
(function (window, rJS, RSVP, Handlebars) {
"use strict";
var gadget_klass = rJS(window),
already_requested_source = gadget_klass.__template_element
.getElementById("already-requested-template")
.innerHTML,
already_requested_template = Handlebars.compile(already_requested_source),
thank_you_source = gadget_klass.__template_element
.getElementById("thank-you-template")
.innerHTML,
thank_you_template = Handlebars.compile(thank_you_source),
exceed_limit_source = gadget_klass.__template_element
.getElementById("exceed-limit-template")
.innerHTML,
exceed_limit_template = Handlebars.compile(exceed_limit_source);
gadget_klass
.declareAcquiredMethod("jio_get", "jio_get")
.declareAcquiredMethod("getSetting", "getSetting")
.declareAcquiredMethod("jio_getAttachment", "jio_getAttachment")
.declareAcquiredMethod("translateHtml", "translateHtml")
.declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("updateHeader", "updateHeader")
.declareAcquiredMethod("updatePanel", "updatePanel")
.declareAcquiredMethod("getTranslationList", "getTranslationList")
.declareMethod("getContent", function () {
return {};
})
.declareMethod("render", function (options) {
var gadget = this,
translation_list = [
"Already Requested",
"Thank You",
"Limit Exceed",
"Unknown action to take:"
];
return new RSVP.Queue()
.push(function () {
return gadget.updatePanel({
jio_key: false
});
})
.push(function () {
return RSVP.all([
gadget.getElement(),
gadget.getUrlFor({command: 'change',
options: {jio_key: "/", page: "trial", "result": ""}}),
gadget.getTranslationList(translation_list)
]);
})
.push(function (result) {
var return_url = result[1],
element = result[0],
template,
page_title;
if (options.result === "already-requested") {
template = already_requested_template;
page_title = result[2][0];
} else if (options.result === "thank-you") {
template = thank_you_template;
page_title = result[2][1];
} else if (options.result === "exceed-limit") {
template = exceed_limit_template;
page_title = result[1][2];
} else {
throw new Error(result[2][3] + options.result);
}
element.innerHTML = template({
return_url: return_url
});
return page_title;
})
.push(function (page_title) {
var header_dict = {
page_title: page_title
};
return gadget.updateHeader(header_dict);
});
});
}(window, rJS, RSVP, Handlebars));
\ No newline at end of file
.offer {
}
.offer ul {
margin: 0;
padding: 31px 0 0 0;
list-style-type: none;
text-align: center;
}
.offer ul li {
display: inline;
width: 278px;
padding: 0;
margin: 0;
}
.offer ul li .theoffer {
display: inline-block;
width: 277px;
color: #fff;
margin: 0 auto 45px auto;
text-decoration: none;
}
.offer ul li .theoffer a:visited,
.offer ul li .theoffer a {
color: #fff;
text-decoration: none;
}
.offer ul li .theoffer span {
display: block;
}
.offer .top {
background: rgb(107,139,155);
-webkit-box-shadow: inset 0 0px 70px rgba(0,0,0,0.1);
-moz-box-shadow: inset 0 0px 70px rgba(0,0,0,0.1);
box-shadow: inset 0 0px 70px rgba(0,0,0,0.1);
}
.offer .conditions {
width: 100%;
margin-top: 1px;
background: rgb(119,158,177);
-webkit-box-shadow: inset 0 0px 70px rgba(0,0,0,0.1);
-moz-box-shadow: inset 0 0px 70px rgba(0,0,0,0.1);
box-shadow: inset 0 0px 70px rgba(0,0,0,0.1);
}
.offer a.conditions {
text-decoration: none;
text-transform: uppercase;
display: inline-block;
color: #fff;
}
.offer a.conditions:hover {
background: rgb(62,102,122);
}
.offer .system,
.offer .terms {
font-size: 0.9em;
text-transform: uppercase;
padding: 17px 0;
}
.offer .offername {
font-size: 3.7em;
font-weight: 700;
padding: 12px 0 14px 0;
}
.offer .conditions strong {
display: inline-block;
padding: 12px 0 8px 0;
margin: 0;
font-size: 1.5em;
font-weight: 600;
text-transform: uppercase;
}
.offer .desc {
padding: 0 0 10px 0;
font-size: 0.9em;
}
.offer ul li .theoffer {
margin: 0 20px 45px 20px;
}
li {
margin-left: 20px;
}
\ No newline at end of file
<!DOCTYPE html>
<html>
<!--
data-i18n=Slapos
-->
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title>SlapOS Page</title>
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
<script src="handlebars.js"></script>
<script src="renderjs.js" type="text/javascript"></script>
<!-- custom script -->
<script src="gadget_erp5_page_trial.js" type="text/javascript"></script>
<link href="gadget_erp5_page_trial.css" rel="stylesheet" type="text/css"/>
<script id="offer-template" type="text/x-handlebars-template">
<li>
<span class="theoffer">
<span class="top">
<a class="explanation" href="{{url}}">
<span class="system">
{{header}}
</span>
<span class="offername">
{{name}}
</span>
<span class="terms">
{{footer}}
</span>
</a>
</span>
<a class="conditions" href="{{url}}">
<strong>
{{ price }}
</strong>
<span class="desc">
Order now
</span>
</a>
</span>
</li>
</script>
</head>
<body>
<form>
<div class="offer">
<ul>
</ul>
<div class="clear"></div>
</div>
</form>
</body>
</html>
\ No newline at end of file
/*global document, window, Option, rJS, RSVP, Chart, UriTemplate, Handlebars*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
(function (window, rJS, RSVP, Handlebars) {
"use strict";
var gadget_klass = rJS(window),
offer_source = gadget_klass.__template_element
.getElementById("offer-template")
.innerHTML,
offer_template = Handlebars.compile(offer_source);
gadget_klass
.ready(function (gadget) {
gadget.property_dict = {};
return gadget.getElement()
.push(function (element) {
gadget.property_dict.element = element;
gadget.property_dict.deferred = RSVP.defer();
});
})
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
.declareAcquiredMethod("jio_getAttachment", "jio_getAttachment")
.declareAcquiredMethod("translateHtml", "translateHtml")
.declareAcquiredMethod("redirect", "redirect")
.declareAcquiredMethod("updateHeader", "updateHeader")
.declareAcquiredMethod("updateConfiguration", "updateConfiguration")
.declareAcquiredMethod("getSetting", "getSetting")
.declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")
.declareAcquiredMethod("jio_getAttachment", "jio_getAttachment")
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.declareMethod("render", function () {
var gadget = this, offer_list = [];
return new RSVP.Queue()
.push(function () {
return gadget.getSetting("hateoas_url");
})
.push(function (hateoas_url) {
return gadget.jio_getAttachment("/",
hateoas_url + "/ERP5Site_getTrialConfigurationAsJSON");
})
.push(function (queue_list) {
var i, url_queue = [];
gadget.queue_list = queue_list;
for (i in gadget.queue_list) {
if (gadget.queue_list.hasOwnProperty(i)) {
url_queue.push(
gadget.getUrlFor({command: 'change', options: {jio_key: gadget.queue_list[i].url, page: "slap_request_trial"}})
);
}
}
return RSVP.all(url_queue);
})
.push(function (url_list) {
var i;
for (i in gadget.queue_list) {
if (gadget.queue_list.hasOwnProperty(i)) {
offer_list.push(offer_template({
url: url_list[i],
header: gadget.queue_list[i].header,
name: gadget.queue_list[i].name,
footer: gadget.queue_list[i].footer,
price: gadget.queue_list[i].price
}));
}
}
return gadget.getElement()
.push(function (element) {
var ul = element.querySelector("ul");
ul.innerHTML = offer_list.join(" ");
return element;
});
})
.push(function () {
return gadget.updateHeader({
page_title: "Welcome to Free Trial Program"
});
});
});
}(window, rJS, RSVP, Handlebars));
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title>ERP5 Panel</title>
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script>
<script src="handlebars.js" type="text/javascript"></script>
<script src="gadget_global.js" type="text/javascript"></script>
<!-- custom script -->
<script src="gadget_trial_panel.js" type="text/javascript"></script>
</head>
<body>
<div class="jqm-navmenu-panel">
<div data-gadget-scope='panel'>
<div data-role="header">
<div class="panel_img">
<img class="ui-title" alt="SlapOS logo" src="gadget_slapos_panel.png?format=png"/>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*global window, document, rJS, Handlebars, RSVP, Node, loopEventListener */
(function (window, document, rJS, Handlebars, RSVP, Node, loopEventListener) {
"use strict";
/////////////////////////////////////////////////////////////////
// temlates
/////////////////////////////////////////////////////////////////
// Precompile templates while loading the first gadget instance
var gadget_klass = rJS(window);
gadget_klass
.setState({
visible: false,
desktop: false
})
//////////////////////////////////////////////
// acquired method
//////////////////////////////////////////////
.declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("translateHtml", "translateHtml")
.declareAcquiredMethod("getSetting", "getSetting")
.declareAcquiredMethod("redirect", "redirect")
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.declareMethod('toggle', function () {
return this.changeState({
visible: false
});
})
.declareMethod('close', function () {
return this.changeState({
visible: false
});
})
.declareMethod('render', function (options) {
var erp5_document = options.erp5_document,
workflow_list,
view_list;
if (erp5_document !== undefined) {
workflow_list = erp5_document._links.action_workflow || [];
view_list = erp5_document._links.action_object_view || [];
if (workflow_list.constructor !== Array) {
workflow_list = [workflow_list];
}
if (view_list.constructor !== Array) {
view_list = [view_list];
}
// Prevent has much as possible to modify the DOM panel
// stateChange prefer to compare strings
workflow_list = JSON.stringify(workflow_list);
view_list = JSON.stringify(view_list);
}
return this.changeState({
workflow_list: workflow_list,
view_list: view_list,
global: true,
editable: options.editable
});
})
.onStateChange(function (modification_dict) {
var context = this,
gadget = this,
queue = new RSVP.Queue(),
tmp_element;
return queue;
})
/////////////////////////////////////////////////////////////////
// declared services
/////////////////////////////////////////////////////////////////
.onEvent('click', function (evt) {
if ((evt.target.nodeType === Node.ELEMENT_NODE) &&
(evt.target.tagName === 'BUTTON')) {
return this.toggle();
}
}, false, false)
.declareJob('listenResize', function () {
// resize should be only trigger after the render method
// as displaying the panel rely on external gadget (for translation for example)
var result,
event,
context = this;
function extractSizeAndDispatch() {
if (window.matchMedia("(min-width: 90em)").matches) {
return context.changeState({
desktop: true
});
}
return context.changeState({
desktop: false
});
}
result = loopEventListener(window, 'resize', false,
extractSizeAndDispatch);
event = document.createEvent("Event");
event.initEvent('resize', true, true);
window.dispatchEvent(event);
return result;
})
.allowPublicAcquisition('notifyChange', function () {
// Typing a search query should not modify the header status
return;
})
.onEvent('submit', function () {
var gadget = this;
return gadget.getDeclaredGadget("erp5_searchfield")
.push(function (search_gadget) {
return search_gadget.getContent();
})
.push(function (data) {
var options = {
page: "search"
};
if (data.search) {
options.extended_search = data.search;
}
// Remove focus from the search field
document.activeElement.blur();
return gadget.redirect({command: 'display', options: options});
});
}, false, true)
.onEvent('blur', function (evt) {
// XXX Horrible hack to clear the search when focus is lost
// This does not follow renderJS design, as a gadget should not touch
// another gadget content
if (evt.target.type === 'search') {
evt.target.value = "";
}
}, true, false);
}(window, document, rJS, Handlebars, RSVP, Node, loopEventListener));
...@@ -154,6 +154,26 @@ ...@@ -154,6 +154,26 @@
<value> <string>string</string> </value> <value> <string>string</string> </value>
</item> </item>
</dictionary> </dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>redirect_domain</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>use_moved_temporarily</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>int</string> </value>
</item>
</dictionary>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -166,9 +186,7 @@ ...@@ -166,9 +186,7 @@
<item> <item>
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
<value> <value>
<tuple> <tuple/>
<string>aggregate/web_page_module/rjs_gadget_erp5_launcher_html</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -183,15 +201,21 @@ ...@@ -183,15 +201,21 @@
<key> <string>configuration_x_frame_options</string> </key> <key> <string>configuration_x_frame_options</string> </key>
<value> <string>SAMEORIGIN</string> </value> <value> <string>SAMEORIGIN</string> </value>
</item> </item>
<item>
<key> <string>container_layout</string> </key>
<value> <string>StaticWebSite_getRedirectSourceUrl</string> </value>
</item>
<item>
<key> <string>content_layout</string> </key>
<value> <string>StaticWebSite_getRedirectSourceUrl</string> </value>
</item>
<item> <item>
<key> <string>custom_render_method_id</string> </key> <key> <string>custom_render_method_id</string> </key>
<value> <string>WebSection_renderDefaultPageAsGadget</string> </value> <value> <string>StaticWebSite_getRedirectSourceUrl</string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <value> <string>The trial implementation was removed, keep this section due legacy purpose.</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
...@@ -203,10 +227,18 @@ ...@@ -203,10 +227,18 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>layout_configuration_form_id</string> </key>
<value> <string>StaticWebSite_viewRedirectAssistConfiguration</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Web Section</string> </value> <value> <string>Web Section</string> </value>
</item> </item>
<item>
<key> <string>redirect_domain</string> </key>
<value> <string>https://panel.rapid.space</string> </value>
</item>
<item> <item>
<key> <string>short_title</string> </key> <key> <string>short_title</string> </key>
<value> <value>
...@@ -215,11 +247,15 @@ ...@@ -215,11 +247,15 @@
</item> </item>
<item> <item>
<key> <string>skin_selection_name</string> </key> <key> <string>skin_selection_name</string> </key>
<value> <string>RJS</string> </value> <value> <string>RedirectAssist</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Welcome to our Free Trial Program</string> </value> <value> <string>Redirect to panel.rapid.space</string> </value>
</item>
<item>
<key> <string>use_moved_temporarily</string> </key>
<value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>visible</string> </key> <key> <string>visible</string> </key>
...@@ -390,7 +426,7 @@ ...@@ -390,7 +426,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1000.2322.46712.16657</string> </value> <value> <string>1001.36704.32789.58760</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -408,7 +444,7 @@ ...@@ -408,7 +444,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1652448693.64</float> <float>1657680177.0</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ERP5 Form" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string>Base_edit</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
<string>right</string>
<string>center</string>
<string>bottom</string>
<string>hidden</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>center</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>hidden</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>left</string> </key>
<value>
<list>
<string>my_title</string>
<string>my_aggregate_title</string>
<string>my_short_title</string>
<string>my_description</string>
</list>
</value>
</item>
<item>
<key> <string>right</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>TrialCondition_viewAsHateoas</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>TrialCondition_view</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_view</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Trial Condition</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>update_action_title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>editable</string>
<string>portal_type</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_aggregate_title</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_string_field</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value>
<list>
<tuple>
<string>Web Page</string>
<string>Web Page</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Terms of Service</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -113,8 +113,6 @@ web_page_module/rjs_gadget_erp5_page_slap_project_view_html ...@@ -113,8 +113,6 @@ web_page_module/rjs_gadget_erp5_page_slap_project_view_html
web_page_module/rjs_gadget_erp5_page_slap_project_view_js web_page_module/rjs_gadget_erp5_page_slap_project_view_js
web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_html web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_html
web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_js web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_js
web_page_module/rjs_gadget_erp5_page_slap_request_trial_html
web_page_module/rjs_gadget_erp5_page_slap_request_trial_js
web_page_module/rjs_gadget_erp5_page_slap_rss_critical_ticket_html web_page_module/rjs_gadget_erp5_page_slap_rss_critical_ticket_html
web_page_module/rjs_gadget_erp5_page_slap_rss_critical_ticket_js web_page_module/rjs_gadget_erp5_page_slap_rss_critical_ticket_js
web_page_module/rjs_gadget_erp5_page_slap_rss_ticket_html web_page_module/rjs_gadget_erp5_page_slap_rss_ticket_html
...@@ -150,8 +148,6 @@ web_page_module/rjs_gadget_erp5_page_slap_transfer_computer_network_html ...@@ -150,8 +148,6 @@ web_page_module/rjs_gadget_erp5_page_slap_transfer_computer_network_html
web_page_module/rjs_gadget_erp5_page_slap_transfer_computer_network_js web_page_module/rjs_gadget_erp5_page_slap_transfer_computer_network_js
web_page_module/rjs_gadget_erp5_page_slap_transfer_instance_tree_html web_page_module/rjs_gadget_erp5_page_slap_transfer_instance_tree_html
web_page_module/rjs_gadget_erp5_page_slap_transfer_instance_tree_js web_page_module/rjs_gadget_erp5_page_slap_transfer_instance_tree_js
web_page_module/rjs_gadget_erp5_page_slap_trial_request_message_html
web_page_module/rjs_gadget_erp5_page_slap_trial_request_message_js
web_page_module/rjs_gadget_erp5_page_slap_upgrade_decision_view_html web_page_module/rjs_gadget_erp5_page_slap_upgrade_decision_view_html
web_page_module/rjs_gadget_erp5_page_slap_upgrade_decision_view_js web_page_module/rjs_gadget_erp5_page_slap_upgrade_decision_view_js
web_page_module/rjs_gadget_erp5_page_slapos_css web_page_module/rjs_gadget_erp5_page_slapos_css
...@@ -159,10 +155,6 @@ web_page_module/rjs_gadget_erp5_page_slapos_html ...@@ -159,10 +155,6 @@ web_page_module/rjs_gadget_erp5_page_slapos_html
web_page_module/rjs_gadget_erp5_page_slapos_html web_page_module/rjs_gadget_erp5_page_slapos_html
web_page_module/rjs_gadget_erp5_page_slapos_js web_page_module/rjs_gadget_erp5_page_slapos_js
web_page_module/rjs_gadget_erp5_page_slapos_request_form_html web_page_module/rjs_gadget_erp5_page_slapos_request_form_html
web_page_module/rjs_gadget_erp5_page_trial_css
web_page_module/rjs_gadget_erp5_page_trial_html
web_page_module/rjs_gadget_erp5_page_trial_html
web_page_module/rjs_gadget_erp5_page_trial_js
web_page_module/rjs_gadget_erp5_panel_shortcut_html web_page_module/rjs_gadget_erp5_panel_shortcut_html
web_page_module/rjs_gadget_erp5_panel_shortcut_js web_page_module/rjs_gadget_erp5_panel_shortcut_js
web_page_module/rjs_gadget_erp5_pt_form_slapos_index_html web_page_module/rjs_gadget_erp5_pt_form_slapos_index_html
...@@ -204,8 +196,6 @@ web_page_module/rjs_gadget_slapos_site_status_html ...@@ -204,8 +196,6 @@ web_page_module/rjs_gadget_slapos_site_status_html
web_page_module/rjs_gadget_slapos_site_status_js web_page_module/rjs_gadget_slapos_site_status_js
web_page_module/rjs_gadget_slapos_translation_data_js web_page_module/rjs_gadget_slapos_translation_data_js
web_page_module/rjs_gadget_slapos_translation_html web_page_module/rjs_gadget_slapos_translation_html
web_page_module/rjs_gadget_trial_panel_html
web_page_module/rjs_gadget_trial_panel_js
web_page_module/rjs_gadget_slapos_utils_js web_page_module/rjs_gadget_slapos_utils_js
web_page_module/rjs_leaflet_css web_page_module/rjs_leaflet_css
web_page_module/rjs_leaflet_js web_page_module/rjs_leaflet_js
......
...@@ -114,8 +114,6 @@ web_page_module/rjs_gadget_erp5_page_slap_project_view_html ...@@ -114,8 +114,6 @@ web_page_module/rjs_gadget_erp5_page_slap_project_view_html
web_page_module/rjs_gadget_erp5_page_slap_project_view_js web_page_module/rjs_gadget_erp5_page_slap_project_view_js
web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_html web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_html
web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_js web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_js
web_page_module/rjs_gadget_erp5_page_slap_request_trial_html
web_page_module/rjs_gadget_erp5_page_slap_request_trial_js
web_page_module/rjs_gadget_erp5_page_slap_rss_critical_ticket_html web_page_module/rjs_gadget_erp5_page_slap_rss_critical_ticket_html
web_page_module/rjs_gadget_erp5_page_slap_rss_critical_ticket_js web_page_module/rjs_gadget_erp5_page_slap_rss_critical_ticket_js
web_page_module/rjs_gadget_erp5_page_slap_rss_ticket_html web_page_module/rjs_gadget_erp5_page_slap_rss_ticket_html
...@@ -153,8 +151,6 @@ web_page_module/rjs_gadget_erp5_page_slap_transfer_computer_network_html ...@@ -153,8 +151,6 @@ web_page_module/rjs_gadget_erp5_page_slap_transfer_computer_network_html
web_page_module/rjs_gadget_erp5_page_slap_transfer_computer_network_js web_page_module/rjs_gadget_erp5_page_slap_transfer_computer_network_js
web_page_module/rjs_gadget_erp5_page_slap_transfer_instance_tree_html web_page_module/rjs_gadget_erp5_page_slap_transfer_instance_tree_html
web_page_module/rjs_gadget_erp5_page_slap_transfer_instance_tree_js web_page_module/rjs_gadget_erp5_page_slap_transfer_instance_tree_js
web_page_module/rjs_gadget_erp5_page_slap_trial_request_message_html
web_page_module/rjs_gadget_erp5_page_slap_trial_request_message_js
web_page_module/rjs_gadget_erp5_page_slap_upgrade_decision_view_html web_page_module/rjs_gadget_erp5_page_slap_upgrade_decision_view_html
web_page_module/rjs_gadget_erp5_page_slap_upgrade_decision_view_js web_page_module/rjs_gadget_erp5_page_slap_upgrade_decision_view_js
web_page_module/rjs_gadget_erp5_page_slapos_css web_page_module/rjs_gadget_erp5_page_slapos_css
...@@ -162,10 +158,6 @@ web_page_module/rjs_gadget_erp5_page_slapos_html ...@@ -162,10 +158,6 @@ web_page_module/rjs_gadget_erp5_page_slapos_html
web_page_module/rjs_gadget_erp5_page_slapos_html web_page_module/rjs_gadget_erp5_page_slapos_html
web_page_module/rjs_gadget_erp5_page_slapos_js web_page_module/rjs_gadget_erp5_page_slapos_js
web_page_module/rjs_gadget_erp5_page_slapos_request_form_html web_page_module/rjs_gadget_erp5_page_slapos_request_form_html
web_page_module/rjs_gadget_erp5_page_trial_css
web_page_module/rjs_gadget_erp5_page_trial_html
web_page_module/rjs_gadget_erp5_page_trial_html
web_page_module/rjs_gadget_erp5_page_trial_js
web_page_module/rjs_gadget_erp5_panel_shortcut_html web_page_module/rjs_gadget_erp5_panel_shortcut_html
web_page_module/rjs_gadget_erp5_panel_shortcut_js web_page_module/rjs_gadget_erp5_panel_shortcut_js
web_page_module/rjs_gadget_erp5_pt_form_slapos_index_html web_page_module/rjs_gadget_erp5_pt_form_slapos_index_html
...@@ -212,8 +204,6 @@ web_page_module/rjs_gadget_slapos_site_status_js ...@@ -212,8 +204,6 @@ web_page_module/rjs_gadget_slapos_site_status_js
web_page_module/rjs_gadget_slapos_translation_data_js web_page_module/rjs_gadget_slapos_translation_data_js
web_page_module/rjs_gadget_slapos_translation_html web_page_module/rjs_gadget_slapos_translation_html
web_page_module/rjs_gadget_slapos_utils_js web_page_module/rjs_gadget_slapos_utils_js
web_page_module/rjs_gadget_trial_panel_html
web_page_module/rjs_gadget_trial_panel_js
web_page_module/rjs_leaflet_css web_page_module/rjs_leaflet_css
web_page_module/rjs_leaflet_js web_page_module/rjs_leaflet_js
web_page_module/rjs_slapos_load_meta_schema_json web_page_module/rjs_slapos_load_meta_schema_json
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>action_type/object_list</string>
</tuple>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_list</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>view</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>View</string>
</tuple>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Action Information</string> </value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>1.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>View</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Expression" module="Products.CMFCore.Expression"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/TrialConditionModule_viewTrialConditionList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -8,13 +8,4 @@ ...@@ -8,13 +8,4 @@
<portal_type id="Subscription Request Module"> <portal_type id="Subscription Request Module">
<item>Subscription Request</item> <item>Subscription Request</item>
</portal_type> </portal_type>
<portal_type id="Trial Condition Module">
<item>Trial Condition</item>
</portal_type>
<portal_type id="Trial Request">
<item>Email</item>
</portal_type>
<portal_type id="Trial Request Module">
<item>Trial Request</item>
</portal_type>
</allowed_content_type_list> </allowed_content_type_list>
\ No newline at end of file
...@@ -19,19 +19,4 @@ ...@@ -19,19 +19,4 @@
<portal_type id="Subscription Request Module"> <portal_type id="Subscription Request Module">
<item>business_application</item> <item>business_application</item>
</portal_type> </portal_type>
<portal_type id="Trial Condition">
<item>aggregate</item>
<item>follow_up</item>
</portal_type>
<portal_type id="Trial Condition Module">
<item>business_application</item>
</portal_type>
<portal_type id="Trial Request">
<item>aggregate</item>
<item>causality</item>
<item>specialise</item>
</portal_type>
<portal_type id="Trial Request Module">
<item>business_application</item>
</portal_type>
</base_category_list> </base_category_list>
\ No newline at end of file
...@@ -2,7 +2,4 @@ ...@@ -2,7 +2,4 @@
<portal_type id="Subscription Request"> <portal_type id="Subscription Request">
<item>Email</item> <item>Email</item>
</portal_type> </portal_type>
<portal_type id="Trial Request">
<item>Email</item>
</portal_type>
</hidden_content_type_list> </hidden_content_type_list>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment