2014-10-27 20:11:48 -04:00
|
|
|
I18NEditModelView = require './I18NEditModelView'
|
|
|
|
Achievement = require 'models/Achievement'
|
|
|
|
|
|
|
|
module.exports = class I18NEditAchievementView extends I18NEditModelView
|
2015-01-29 12:07:25 -05:00
|
|
|
id: "i18n-edit-achievement-view"
|
2014-10-27 20:11:48 -04:00
|
|
|
modelClass: Achievement
|
|
|
|
|
|
|
|
buildTranslationList: ->
|
|
|
|
lang = @selectedLanguage
|
|
|
|
|
|
|
|
# name, description
|
|
|
|
if i18n = @model.get('i18n')
|
|
|
|
if name = @model.get('name')
|
|
|
|
@wrapRow "Achievement name", ['name'], name, i18n[lang]?.name, []
|
|
|
|
if description = @model.get('description')
|
|
|
|
@wrapRow "Achievement description", ['description'], description, i18n[lang]?.description, []
|