ES-DOC / esdoc-questionnaire

ES-DOC Questionnaire (webform generator for creating CIM Documents). POC: @allynt
Other
2 stars 1 forks source link

Should cardinality (of subforms) be customizable #415

Open allynt opened 8 years ago

allynt commented 8 years ago

As of v0.15.0.0, the cardinality customization stopped working. I commented that bit of code out in the template so it is never seen by a user. Should it be re-instated?

allynt commented 8 years ago

The reason that customizing cardinality stopped working is that cardinality is defined as a custom Django field; it uses a custom MultiWidget for rendering.

This worked pre-v0.15 b/c I used standard Django Forms w/ some JQuery on top of that. But post-v0.15 I use "Djangular" Forms that rely on AngularJS. Those forms do not have built-in MultiWidget support.

Getting rid of this feature would certainly save me from writing lots of low-level form code just to support this single field. (I don't expose MultiWidgets anyplace else in the Q.)