manuelbernhardt / tm

Oxiras Test Management Suite
http://www.oxiras.com
1 stars 0 forks source link

Integrate tags and ox.forms #79

Closed manuelbernhardt closed 13 years ago

manuelbernhardt commented 13 years ago

(@dziga mentioned here so you see this)

Currently we declare tokens separately for each ox.form. Also due to the change listener mechanism for ox.submit, these tokens need to be declared before the ox.form is declared, or changes in tokens aren't picked up. We actually should check if this is the case everyhwere, e.g. in the admin interface (if there are token inputs in there).

These tokenInputs should instead be generated by ox.form and the options passed via ox.field parameters.

manuelbernhardt commented 13 years ago

So to clarify: now we initialize the tokenInput plugin in each view that has tags. We should instead generate that stuff in the tagsField.html template (just as there is JS code in other *Field.html templates). There are a couple of parameters that need to be passed to the tokenInput plugin, so these should be passed along in the #{ox.field} tag defining the tag field.

manuelbernhardt commented 13 years ago

One more precision: once that part in ox.forms is done you of course need to remove the tokenInputs from all the places where it is used (full text search)