2015-01-29 12:07:25 -05:00
|
|
|
I18NEditModelView = require './I18NEditModelView'
|
|
|
|
Campaign = require 'models/Campaign'
|
|
|
|
|
|
|
|
module.exports = class I18NEditCampaignView extends I18NEditModelView
|
|
|
|
id: "i18n-edit-campaign-view"
|
|
|
|
modelClass: Campaign
|
|
|
|
|
|
|
|
buildTranslationList: ->
|
|
|
|
lang = @selectedLanguage
|
|
|
|
|
|
|
|
# name, description
|
|
|
|
if i18n = @model.get('i18n')
|
|
|
|
if name = @model.get('name')
|
|
|
|
@wrapRow 'Campaign short name', ['name'], name, i18n[lang]?.name, []
|
2015-02-16 12:21:59 -05:00
|
|
|
if fullName = @model.get('fullName')
|
|
|
|
@wrapRow 'Campaign full name', ['fullName'], fullName, i18n[lang]?.fullName, []
|
2015-03-18 19:20:30 -04:00
|
|
|
if description = @model.get('description')
|
|
|
|
@wrapRow 'Campaign description', ['description'], description, i18n[lang]?.description, []
|