mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Better missions listing
This commit is contained in:
parent
92e2c02b8d
commit
d06cd5f064
@ -6,10 +6,14 @@ define(function (require) {
|
||||
_ = require('underscore'),
|
||||
Backbone = require('backbone'),
|
||||
Marionette = require('marionette'),
|
||||
ListItemView = require('app/views/missions/list_item');
|
||||
ListItemView = require('app/views/missions/list_item'),
|
||||
tpl = require('text!tpl/missions/list.html'),
|
||||
|
||||
template = _.template(tpl);
|
||||
|
||||
return Marionette.CollectionView.extend({
|
||||
tagName: 'ul',
|
||||
return Marionette.CompositeView.extend({
|
||||
itemView: ListItemView,
|
||||
itemViewContainer: "tbody",
|
||||
template: template,
|
||||
});
|
||||
});
|
||||
|
@ -11,7 +11,7 @@ define(function (require) {
|
||||
template = _.template(tpl);
|
||||
|
||||
return Marionette.ItemView.extend({
|
||||
tagName: "li",
|
||||
tagName: "td",
|
||||
template: template
|
||||
});
|
||||
});
|
||||
|
10
public/js/tpl/missions/list.html
Normal file
10
public/js/tpl/missions/list.html
Normal file
@ -0,0 +1,10 @@
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Mission</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<!-- want to insert collection items, here -->
|
||||
<tbody></tbody>
|
||||
</table>
|
Loading…
Reference in New Issue
Block a user