Sha256: 21a0938bd34d910fd7bdd67d8a4b36695eab57024e18345acc5b98044e471b7c

Contents?: true

Size: 946 Bytes

Versions: 8

Compression:

Stored size: 946 Bytes

Contents

/*global editor*/

pageflow.EditMetaDataView = Backbone.Marionette.ItemView.extend({
  template: 'templates/edit_meta_data',
  className: 'edit_meta_data',

  mixins: [pageflow.failureIndicatingView],

  ui: {
    form: '.form_fields'
  },

  events: {
    'click a.back': 'goBack'
  },

  onRender: function() {
    this.ui.form.append(this.subview(new pageflow.TextInputView({
      model: this.model,
      propertyName: 'title'
    })).el);

    this.ui.form.append(this.subview(new pageflow.TextAreaInputView({
      model: this.model,
      propertyName: 'summary'
    })).el);

    this.ui.form.append(this.subview(new pageflow.TextAreaInputView({
      model: this.model,
      propertyName: 'credits'
    })).el);

    this.ui.form.append(this.subview(new pageflow.CheckBoxInputView({
      model: this.model,
      propertyName: 'manual_start'
    })).el);
  },

  goBack: function() {
    editor.navigate('/', {trigger: true});
  }
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pageflow-0.2.1 app/assets/javascripts/pageflow/editor/views/edit_meta_data_view.js
pageflow-0.2.0 app/assets/javascripts/pageflow/editor/views/edit_meta_data_view.js
pageflow-0.1.0 app/assets/javascripts/pageflow/editor/views/edit_meta_data_view.js
pageflow-0.0.5 app/assets/javascripts/pageflow/editor/views/edit_meta_data_view.js
pageflow-0.0.4 app/assets/javascripts/pageflow/editor/views/edit_meta_data_view.js
pageflow-0.0.3 app/assets/javascripts/pageflow/editor/views/edit_meta_data_view.js
pageflow-0.0.2 app/assets/javascripts/pageflow/editor/views/edit_meta_data_view.js
pageflow-0.0.1 app/assets/javascripts/pageflow/editor/views/edit_meta_data_view.js