Installation de la version modifié de QBE dans src/
[auf_rh_dae.git] / src / qbe / django_qbe / templates / qbe_index.js
1 {% if user_passes_test %}
2 window.onload = function() {
3 // var divUserTools = document.getElementById("user-tools");
4 // var aQBE = document.createElement("a");
5 // var txtQBE = document.createTextNode('{{ qbe_label }}');
6 // aQBE.setAttribute("href", "{{ qbe_url }}");
7 // aQBE.appendChild(txtQBE);
8 // var txtSeparator = document.createTextNode('/ ');
9 // divUserTools.appendChild(txtSeparator);
10 // divUserTools.appendChild(aQBE);
11
12 var divContentRelated = document.getElementById("content-related");
13 var divQBE = document.createElement("div")
14 var aQBE = document.createElement("a");
15 var txtQBE = document.createTextNode("{{ qbe_label }}");
16 var h2QBE = document.createElement("h2");
17 var h2QBEtxt = document.createTextNode("{{ reports_label }}");
18 var h3QBE = document.createElement("h3");
19 h2QBE.appendChild(h2QBEtxt);
20 divQBE.appendChild(h2QBE);
21 aQBE.setAttribute("href", "{{ qbe_url }}");
22 aQBE.appendChild(txtQBE);
23 h3QBE.appendChild(aQBE);
24 divQBE.appendChild(h3QBE);
25 divQBE.setAttribute("class", "module");
26 divContentRelated.appendChild(divQBE);
27 }
28 {% endif %}