mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
28 lines
780 B
JavaScript
28 lines
780 B
JavaScript
define(function (require) {
|
|
|
|
"use strict";
|
|
|
|
var $ = require('jquery'),
|
|
_ = require('underscore'),
|
|
Backbone = require('backbone'),
|
|
Marionette = require('marionette'),
|
|
FormView = require('app/views/missions/form'),
|
|
ListView = require('app/views/missions/list'),
|
|
tpl = require('text!tpl/missions/index.html');
|
|
|
|
return Marionette.Layout.extend({
|
|
template: _.template(tpl),
|
|
|
|
regions: {
|
|
formView: "#form",
|
|
listView: "#list",
|
|
},
|
|
|
|
onRender: function() {
|
|
this.formView.show(new FormView({missions: this.options.missions}));
|
|
this.listView.show(new ListView({collection: this.options.missions}));
|
|
},
|
|
});
|
|
|
|
});
|