mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
19 lines
350 B
JavaScript
19 lines
350 B
JavaScript
var _ = require('underscore')
|
|
var Marionette = require('marionette')
|
|
|
|
var tpl = require('tpl/settings.html')
|
|
|
|
module.exports = Marionette.ItemView.extend({
|
|
template: _.template(tpl),
|
|
|
|
modelEvents: {
|
|
change: 'render'
|
|
},
|
|
|
|
templateHelpers: {
|
|
isTypeChecked: function (type) {
|
|
return this.type === type ? 'checked' : ''
|
|
}
|
|
}
|
|
})
|