From 70c5bc06f368ee929e9945d1b97078dd6c16f254 Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Thu, 15 Aug 2019 21:50:53 +0200 Subject: [PATCH] place custom config of js in template --- static/js/dynamic-formset.js | 4 ++-- templates/member/add_members.html | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/static/js/dynamic-formset.js b/static/js/dynamic-formset.js index 95406a8c..87edfaae 100644 --- a/static/js/dynamic-formset.js +++ b/static/js/dynamic-formset.js @@ -220,8 +220,8 @@ formTemplate: null, // The jQuery selection cloned to generate new form instances addText: 'add another', // Text for the add link deleteText: 'remove', // Text for the delete link - addCssClass: 'btn btn-primary', // CSS class applied to the add link - deleteCssClass: 'btn btn-danger h-50 my-auto', // CSS class applied to the delete link + addCssClass: '', // CSS class applied to the add link + deleteCssClass: '', // CSS class applied to the delete link formCssClass: 'dynamic-form', // CSS class applied to each form in a formset extraClasses: [], // Additional CSS classes, which will be applied to each form in turn keepFieldValues: '', // jQuery selector for fields whose values should be kept when the form is cloned diff --git a/templates/member/add_members.html b/templates/member/add_members.html index 9c50ac30..8032af30 100644 --- a/templates/member/add_members.html +++ b/templates/member/add_members.html @@ -7,7 +7,7 @@ {% csrf_token %} {% crispy formset helper %}
- +
@@ -16,8 +16,10 @@ {% endblock %}