Merge branch 'master' of ssh://git.entrouvert.org/imio-publik-themes
This commit is contained in:
commit
d16336cfaf
|
@ -1,4 +1,4 @@
|
|||
[submodule "publik-base-theme"]
|
||||
path = publik-base-theme
|
||||
url = http://git.entrouvert.org/publik-base-theme.git
|
||||
url = https://git.entrouvert.org/publik-base-theme.git
|
||||
branch = master
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 9c3dfa7634d62ab3df2342c02bf49cd3c71da1af
|
||||
Subproject commit 20f1175f875a4dc06afca0a4fddb54bd086ef904
|
|
@ -0,0 +1,52 @@
|
|||
<h2>Mes démarches</h2>
|
||||
<div class="cell wcsformsofcategorycell">
|
||||
<div class="wcs-forms-of-caterogy-imio links-list">
|
||||
{% if json == False%}
|
||||
<p class="no_registration">
|
||||
{{ pp_no_registration_msg }}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if not aes_children.data %}
|
||||
<p>
|
||||
Vous n'avez pas encore d'enfant enregistré dans notre base de données.
|
||||
</p>
|
||||
{% endif %}
|
||||
<ul id="pp_forms">
|
||||
{% for form in aes_forms.data %}
|
||||
{% if json == False %}
|
||||
{% if form.slug == 'aes-mon-inscription-dans-le-portail-parent' %}
|
||||
<li class="active" id="registration_form">
|
||||
<a href='{{ form.url }}'>{{ form.title }}</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<!-- <a style="pointer-events: none" ... but disable js events-->
|
||||
<li class="inactive" style="cursor:not-allowed;"><a msg="Veuillez vous enregistrer d'abord." href='#'>{{ form.title }}</a></li>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if not aes_children.data and form.slug != 'aes-enregistrer-un-nouvel-enfant' and form.slug != 'aes-mon-inscription-dans-le-portail-parent' %}
|
||||
<li class="inactive" style="cursor:not-allowed;"><a msg="Veuillez enregistrer un enfant d'abord." href='#'>{{ form.title }}</a></li>
|
||||
{% else %}
|
||||
|
||||
<li class="active"><a href='{{ form.url }}'>{{ form.title }}</a></li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function() {
|
||||
$("#registration_form").prependTo("#pp_forms");
|
||||
|
||||
function out() {
|
||||
$(this).text($(this).attr("old_text"));
|
||||
}
|
||||
|
||||
function over() {
|
||||
var $msg = $(this).attr("msg");
|
||||
$(this).attr("old_text", $(this).text());
|
||||
$(this).text($msg);
|
||||
}
|
||||
$("li.inactive a").hover(over, out);
|
||||
});
|
||||
</script>
|
Loading…
Reference in New Issue