Sha256: c8f17fb26977cf09b9e622c6bb3b21e9a4a36eeb39ee05c0776e8d09a0e87a75
Contents?: true
Size: 718 Bytes
Versions: 21
Compression:
Stored size: 718 Bytes
Contents
pageflow.EditWidgetView = Backbone.Marionette.Layout.extend({ template: 'templates/edit_widget', tagName: 'li', className: 'edit_widget', regions: { widgetTypeContainer: '.widget_type' }, ui: { role: 'h2' }, onRender: function() { var widgetTypes = this.options.widgetTypes[this.model.role()] || []; this.widgetTypeContainer.show(new pageflow.SelectInputView({ model: this.model, propertyName: 'type_name', label: I18n.t('pageflow.widgets.roles.' + this.model.role()), collection: widgetTypes, valueProperty: 'name', translationKeyProperty: 'translationKey', includeBlank: true })); this.$el.toggle(widgetTypes.length > 1); } });
Version data entries
21 entries across 21 versions & 1 rubygems