Commit 74ce8553 authored by Rafael Monnerat's avatar Rafael Monnerat

Improve and fixup fast input for shared instances

See merge request !526
parents 7e60eec9 7bb57abd
Pipeline #28036 failed with stage
in 0 seconds
......@@ -496,7 +496,7 @@
page: "slap_intent",
intent: "request",
shared: 1,
sofware_type: gadget.state.doc.source_reference,
software_type: gadget.state.doc.source_reference,
software_release: gadget.state.doc.url_string,
sla_xml: gadget.state.doc.fast_input_dict.sla_xml,
strict: "True"
......@@ -531,7 +531,7 @@
header_dict.start_url = url_list[2];
}
if (gadget.state.doc.fast_input_dict.enabled !== undefined) {
header_dict.fast_input_url = url_list[8];
header_dict.add_shared_url = url_list[8];
}
if (!gadget.state.editable) {
header_dict.edit_content = url_list[0];
......
......@@ -238,7 +238,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1007.21760.63093.46916</string> </value>
<value> <string>1008.19588.59182.15291</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>1679945002.44</float>
<float>1683727059.58</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -57,7 +57,8 @@
['accept_url', 'Accept', 'check-circle'],
['reject_url', 'Reject', 'ban'],
['contract_url', 'Contract', 'usd'],
['list_all_url', 'Show all', 'eye']
['list_all_url', 'Show all', 'eye'],
['add_shared_url', 'Add Shared', 'magic']
],
header_button_template = function (data) {
// <form><button name='{{name}}' data-i18n="{{title}}" type='submit' class='ui-icon-{{icon}} ui-btn-icon-left {{class}}'>{{title}}</button></form>
......
......@@ -238,7 +238,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>984.49089.34672.33348</string> </value>
<value> <string>1006.58340.40727.23620</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>1599255121.36</float>
<float>1683730643.56</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -226,7 +226,7 @@
<td>www.erp5.com</td>
</tr>
<tal:block define="menu_action python: 'Fast Input'">
<tal:block define="menu_action python: 'Add Shared'">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action" />
</tal:block>
......
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