- form_url = defined?(@page) ? page_mw_interactive_path(@page, @interactive) : mw_interactive_path(@interactive)
= form_for @interactive, :url => form_url do |f|
  = f.error_messages
  =# f.hidden_field 'investigation_id', :value =>@activity.investigation.id # LightweightActivities currently don't belong_to Investigations
  = field_set_tag 'Name' do
    = f.text_field :name
  = field_set_tag 'URL' do
    = f.text_field :url
  = field_set_tag 'Dimensions' do
    = f.label :native_width, 'Width'
    = f.text_field :native_width
    .clear
    = f.label :native_height, 'Height'
    = f.text_field :native_height
    .clear
    This width and height will be used to maintain a fixed aspect ratio for the interactive.
  = f.button "Cancel", :class => 'close', :type => 'button'
  = f.submit "Save", :class => 'embeddable-save', :default => 'default'

- form_url = defined?(@page) ? page_mw_interactive_path(@page, @interactive) : mw_interactive_path(@interactive)
= form_for @interactive, :url => form_url do |f|
  = f.error_messages
  =# f.hidden_field 'investigation_id', :value =>@activity.investigation.id # LightweightActivities currently don't belong_to Investigations
  = field_set_tag 'Name' do
    = f.text_field :name
  = field_set_tag 'URL' do
    = f.text_field :url
  = field_set_tag 'Dimensions' do
    = f.label :native_width, 'Width'
    = f.text_field :native_width
    .clear
    = f.label :native_height, 'Height'
    = f.text_field :native_height
    .clear
    This width and height will be used to maintain a fixed aspect ratio for the interactive.
  = field_set_tag 'Save Interactive state' do
    = f.label :save_state, 'Save State'
    = f.check_box :save_state
  = f.button "Cancel", :class => 'close', :type => 'button'
  = f.submit "Save", :class => 'embeddable-save', :default => 'default'

Add authoring attribute for saving interactive state.
Add authoring attribute for saving interactive state.
