* fix: multi lines and spaces issues * fix: eslint operator-linebreak issue * fix: eslint quotes issue * fix: remaining quotes issues * fix: eslint object curly newline issue * fix: eslint object curly spacing issue * fix: eslint brace-style issues * fix: react jsx indent and props issues * fix: eslint trailing spaces issues * fix: eslint linbreak style issue * fix: eslint space unary operator issue * fix: eslint line around directives issue * fix: void and typeof space unary ops issue
32 lines
1012 B
JavaScript
32 lines
1012 B
JavaScript
// Backbone Application View: Certificates Page
|
|
|
|
define([
|
|
'jquery',
|
|
'underscore',
|
|
'gettext',
|
|
'js/views/pages/base_page',
|
|
'js/certificates/views/certificates_list'
|
|
],
|
|
function($, _, gettext, BasePage, CertificatesListView) {
|
|
'use strict';
|
|
|
|
var CertificatesPage = BasePage.extend({
|
|
|
|
initialize: function(options) {
|
|
// Set up the initial state of this object instance
|
|
BasePage.prototype.initialize.call(this);
|
|
this.certificatesCollection = options.certificatesCollection;
|
|
this.certificatesListView = new CertificatesListView({
|
|
collection: this.certificatesCollection
|
|
});
|
|
},
|
|
|
|
renderPage: function() {
|
|
// Override the base operation with a class-specific workflow
|
|
this.$('.wrapper-certificates.certificates-list').append(this.certificatesListView.render().el);
|
|
return $.Deferred().resolve().promise();
|
|
}
|
|
});
|
|
return CertificatesPage;
|
|
});
|