Skip to content

Commit

Permalink
Customisation du stype du 2e formulaire
Browse files Browse the repository at this point in the history
  • Loading branch information
davy39 committed Jan 23, 2022
1 parent ae4d3d7 commit 22c5160
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions inscription/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ class Meta:

class Media:
js = ('js/hide_resp2.js',)
css = {
'screen': ('css/custom-dark.css',),
}


class InscriptionForm3(forms.ModelForm):
Expand Down
3 changes: 2 additions & 1 deletion static/js/hide_resp2.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ function Hide() {
document.getElementById('div_id_1-sociopro_resp2').style.display = '';
}
}
// Vérifie id_1-resp2 est à aucun (fonction Hide après le cargement du document
// Vérifie id_1-resp2 est à aucun (fonction Hide) après le chargement du document.
// Utile lors du retour en arrière dans le formulaire
document.addEventListener("DOMContentLoaded", function() {
Hide();
});
Expand Down

0 comments on commit 22c5160

Please sign in to comment.