Commit e21a2cab authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Fix header links on various forms

parent a08a8750
...@@ -153,8 +153,14 @@ ...@@ -153,8 +153,14 @@
} }
}) })
.push(function () { .push(function () {
return RSVP.all([
gadget.getUrlFor({command: 'change', options: {page: "slap_select_software_release"}})
]);
})
.push(function (url_list) {
return gadget.updateHeader({ return gadget.updateHeader({
page_title: "Request Service: " + doc.title, page_title: "Request Service: " + doc.title,
selection_url: url_list[0],
submit_action: true submit_action: true
}); });
}); });
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>965.32456.3463.64409</string> </value> <value> <string>972.39869.45647.37461</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1518633464.67</float> <float>1545997392.99</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -191,10 +191,16 @@ ...@@ -191,10 +191,16 @@
} }
}) })
.push(function () { .push(function () {
return RSVP.all([
gadget.getUrlFor({command: 'history_previous'})
]);
})
.push(function (url_list) {
return gadget.jio_get(gadget.state.jio_key) return gadget.jio_get(gadget.state.jio_key)
.push(function (doc) { .push(function (doc) {
gadget.updateHeader({ gadget.updateHeader({
page_title: "New Ticket related to " + doc.title, page_title: "New Ticket related to " + doc.title,
selection_url: url_list[0],
submit_action: true submit_action: true
}); });
}); });
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>963.7794.19332.17988</string> </value> <value> <string>972.32024.53732.34406</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1509374887.65</float> <float>1545996475.08</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -144,9 +144,15 @@ ...@@ -144,9 +144,15 @@
]] ]]
} }
}) })
.push(function () { .push(function () {
return RSVP.all([
gadget.getUrlFor({command: 'change', options: {"page": "slap_select_software_release"}})
]);
})
.push(function (url_list) {
return gadget.updateHeader({ return gadget.updateHeader({
page_title: "Proceed to Supply Software " + doc.title + " on " + computer.reference, page_title: "Proceed to Supply Software " + doc.title + " on " + computer.reference,
selection_url: url_list[0],
submit_action: true submit_action: true
}); });
}); });
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>963.7958.61571.55040</string> </value> <value> <string>972.32024.53732.34406</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1513008848.37</float> <float>1545952707.91</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -94,8 +94,14 @@ ...@@ -94,8 +94,14 @@
}); });
}) })
.push(function () { .push(function () {
return RSVP.all([
gadget.getUrlFor({command: 'history_previous'})
]);
})
.push(function (url_list) {
return gadget.updateHeader({ return gadget.updateHeader({
page_title: "Destroy Software Installation", page_title: "Destroy Software Installation",
selection_url: url_list[0],
submit_action: true submit_action: true
}); });
}); });
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>963.7949.9002.47513</string> </value> <value> <string>972.32024.53732.34406</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1509383862.45</float> <float>1545996559.57</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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