Sha256: f241566eb57cdc318d23abfff0f6b053b4e114922c1f1e10f25bc745c18e4f80
Contents?: true
Size: 712 Bytes
Versions: 7
Compression:
Stored size: 712 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
7 entries across 7 versions & 1 rubygems