Default Site customisation and new Settings space (#91)

This commit is contained in:
jc21
2019-03-04 21:19:36 +10:00
committed by GitHub
parent 6f1d38a0e2
commit 133d66c2fe
31 changed files with 893 additions and 15 deletions

View File

@ -0,0 +1,25 @@
'use strict';
const Mn = require('backbone.marionette');
const App = require('../../main');
const template = require('./item.ejs');
module.exports = Mn.View.extend({
template: template,
tagName: 'tr',
ui: {
edit: 'a.edit'
},
events: {
'click @ui.edit': function (e) {
e.preventDefault();
App.Controller.showSettingForm(this.model);
}
},
initialize: function () {
this.listenTo(this.model, 'change', this.render);
}
});