aboutsummaryrefslogtreecommitdiffstats
path: root/jm2l/templates/edit_tiers_categ.mako
diff options
context:
space:
mode:
Diffstat (limited to 'jm2l/templates/edit_tiers_categ.mako')
-rw-r--r--jm2l/templates/edit_tiers_categ.mako27
1 files changed, 14 insertions, 13 deletions
diff --git a/jm2l/templates/edit_tiers_categ.mako b/jm2l/templates/edit_tiers_categ.mako
index ba2df09..34795a0 100644
--- a/jm2l/templates/edit_tiers_categ.mako
+++ b/jm2l/templates/edit_tiers_categ.mako
@@ -1,7 +1,20 @@
<%inherit file="jm2l:templates/layout.mako"/>
<%namespace name="helpers" file="jm2l:templates/helpers.mako"/>
<%def name="jsAddOn()">
- <script src="/vendor/repeatable-fields/js/repeatable-fields.js"></script>
+ <script src="/vendor/repeatable-fields/js/repeatable-fields.js"></script>
+<script type="text/javascript">
+jQuery(function() {
+ jQuery('.repeat').each(function() {
+ jQuery(this).repeatable_fields({
+ wrapper: 'table',
+ container: 'tbody',
+ row: 'tr',
+ cell: 'td',
+ });
+ });
+});
+</script>
+
</%def>
<h2>Gestion des catégories pour les entités</h2>
@@ -101,15 +114,3 @@
<input type="submit" class="btn btn-primary" value="Enregistrer les modifications" />
</form>
-<script type="text/javascript">
-jQuery(function() {
- jQuery('.repeat').each(function() {
- jQuery(this).repeatable_fields({
- wrapper: 'table',
- container: 'tbody',
- row: 'tr',
- cell: 'td',
- });
- });
-});
-</script>