Display labels according to ['locales.I18n.available']

This commit is contained in:
Nicolas Le Goff
2013-05-31 17:48:45 +02:00
parent 16d79abd43
commit a59ff1a3ac
4 changed files with 5 additions and 27 deletions

View File

@@ -37,7 +37,8 @@ define([
var template = _.template($("#edit_template").html(), {
field: this.model.toJSON(),
vocabularyTypes: AdminFieldApp.vocabularyCollection.toJSON(),
modelErrors: AdminFieldApp.errorManager.getModelError(this.model)
modelErrors: AdminFieldApp.errorManager.getModelError(this.model),
languages: AdminFieldApp.languages
});
this.$el.empty().html(template);