Sha256: 37a8204f963c31a28238671809cb70208d77fe3b2651695eed9dbc067340388f

Contents?: true

Size: 1.9 KB

Versions: 6

Compression:

Stored size: 1.9 KB

Contents

pageflow.vr.ConfigurationEditorView = pageflow.ConfigurationEditorView.extend({
  configure: function() {
    this.tab('general', function() {
      this.group('general');

      this.input('additional_title', pageflow.TextInputView);
      this.input('additional_description', pageflow.TextAreaInputView, {size: 'short'});

      this.input('control_bar_text', pageflow.TextInputView, {
        placeholder: I18n.t('pageflow.public.vr.start', {
          locale: pageflow.entry.configuration.get('locale')
        })
      });
    });

    this.tab('files', function() {
      this.input('video_id', pageflow.FileInputView, {
        collection: 'video_files',
        filter: 'with_projection',
        positioning: false
      });
      this.input('autoplay', pageflow.CheckBoxInputView);
      this.input('start_yaw', pageflow.SliderInputView, {
        unit: '°',
        maxValue: 360
      });
      this.input('poster_id', pageflow.FileInputView, {
        collection: 'image_files',
        filter: 'with_projection',
        positioning: false
      });
      this.input('thumbnail_image_id', pageflow.FileInputView, {
        collection: 'image_files',
        positioning: false
      });
    });

    this.tab('vr_fallback', function() {
      this.input('preview_vr_fallback', pageflow.CheckBoxInputView);

      this.group('background', {
        propertyNamePrefix: 'fallback'
      });

      this.input('fallback_text', pageflow.TextAreaInputView, {
        size: 'short'
      });
      this.input('fallback_you_tube_url', pageflow.UrlInputView, {
        permitHttps: true,
        displayPropertyName: 'display_fallback_you_tube_url',
        supportedHosts: [
          'http://youtube.com',
          'https://youtube.com'
        ]
      });
      this.view(pageflow.vr.FallbackPreviewModeView, {
        model: this.model
      });
    });

    this.tab('options', function() {
      this.group('options');
    });
  }
});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pageflow-vr-1.5.0 app/assets/javascripts/pageflow/vr/editor/views/configuration_editor_view.js
pageflow-vr-1.4.0 app/assets/javascripts/pageflow/vr/editor/views/configuration_editor_view.js
pageflow-vr-1.3.0 app/assets/javascripts/pageflow/vr/editor/views/configuration_editor_view.js
pageflow-vr-1.2.0 app/assets/javascripts/pageflow/vr/editor/views/configuration_editor_view.js
pageflow-vr-1.1.0 app/assets/javascripts/pageflow/vr/editor/views/configuration_editor_view.js
pageflow-vr-1.0.0 app/assets/javascripts/pageflow/vr/editor/views/configuration_editor_view.js