CreateEditCategoryTermLayoutView.js 1.2 KB

123456789101112131415161718192021222324252627282930
  1. define([ "require", "backbone", "hbs!tmpl/glossary/CreateEditCategoryTermLayoutView_tmpl", "utils/Utils", "utils/UrlLinks" ], function(require, Backbone, CreateEditCategoryTermLayoutViewTmpl, Utils, UrlLinks) {
  2. var CreateEditCategoryTermLayoutView = Backbone.Marionette.LayoutView.extend({
  3. _viewName: "CreateEditCategoryTermLayoutView",
  4. template: CreateEditCategoryTermLayoutViewTmpl,
  5. templateHelpers: function() {
  6. return {
  7. create: this.create,
  8. modelJSON: this.modelJSON
  9. };
  10. },
  11. regions: {},
  12. ui: {
  13. qualifiedName: "[data-id='qualifiedName']",
  14. name: "[data-id='name']",
  15. shortDescription: "[data-id='shortDescription']",
  16. longDescription: "[data-id='longDescription']",
  17. categoryTermForm: "[data-id='categoryTermForm']"
  18. },
  19. events: function() {
  20. var events = {};
  21. return events;
  22. },
  23. initialize: function(options) {
  24. _.extend(this, _.pick(options, "glossaryCollection", "modelJSON")), this.modelJSON || (this.create = !0);
  25. },
  26. bindEvents: function() {},
  27. onRender: function() {}
  28. });
  29. return CreateEditCategoryTermLayoutView;
  30. });