| 12 | module.exports = (PollSearchView = (function () { |
| 13 | PollSearchView = class PollSearchView extends SearchView { |
| 14 | static initClass () { |
| 15 | this.prototype.id = 'editor-poll-home-view' |
| 16 | this.prototype.modelLabel = 'Poll' |
| 17 | this.prototype.model = require('models/Poll') |
| 18 | this.prototype.modelURL = '/db/poll' |
| 19 | this.prototype.tableTemplate = require('app/templates/editor/poll/poll-search-table') |
| 20 | this.prototype.projection = ['name', 'description', 'slug', 'priority', 'created'] |
| 21 | } |
| 22 | |
| 23 | getRenderData () { |
| 24 | const context = super.getRenderData() |