X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fvalidate_pending.html;h=9ddf01c946ffff74751f83c6b9899f58803b2ae9;hb=3167207804460a2c42e1e5a8346c597f9832d295;hp=74176ea329d4785e6142e3dc0c7daef8173fd1ec;hpb=1aea42c3668602aacfe22bc762ee939672129f53;p=myslice.git
diff --git a/portal/templates/validate_pending.html b/portal/templates/validate_pending.html
index 74176ea3..9ddf01c9 100644
--- a/portal/templates/validate_pending.html
+++ b/portal/templates/validate_pending.html
@@ -6,7 +6,7 @@
function on_click_event() {
var ids = [];
$('.portal__validate__checkbox').each(function(i, el) {
- if ($(el).attr('checked')) {
+ if ($(el).prop('checked')) {
// portal__validate__checkbox__slice__2
var id_array = $(el).attr('id').split('__');
// push(slice__2)
@@ -28,10 +28,10 @@
status_str += ' -- ';
if (result.status) {
- status_str += '' + name + '';
+ status_str += 'OK';
$('#portal__validate__checkbox__' + request_type__id).hide();
} else {
- status_str += '' + name + ' (' + result.description + ')';
+ status_str += 'ERROR: ' + result.description + '';
}
});
$('#portal__status__' + request_type__id).html(status_str)
@@ -46,32 +46,29 @@
{% endblock %}
{% block unfold1_main %}
-
+
Pending requests
-
+
+
My authorities
{% if my_authorities %}
{% for authority, requests in my_authorities.items %}
{{authority}}
+
+
{% endfor %}
{% else %}
There is no pending request waiting for validation.
{% endif %}
+
{% if delegation_authorities %}
+
Authorities with delegation
{% for authority, requests in delegation_authorities.items %}
{{authority}}
+
{% endfor %}
+
{% endif %}
-
+
+
{% endblock %}