= content_for :title do
  Create Snapshot

= simple_form_for :snapshot, url: plugin('compute').create_image_instance_path(id:params[:id]), method: :put, remote: request.xhr?, html: {data: {modal: true}, class: 'form-horizontal' }, wrapper: :horizontal_form do |f|

  %div{class: modal? ? 'modal-body' : ''}
    .alert.alert-info
      %strong Please note:
      Snapshots of Windows VMs are not working yet. Linux VMs with more data in root filesystem may also not work.

    = f.input :name, icon_hint: 'A snapshot is an image which preserves the disk state of a running instance.'

  %div.buttons{class: modal? ? 'modal-footer' : ''}
    - if modal?
      %button.btn.btn-default{type:"button", data: {dismiss:"modal"}, aria: {label: "Cancel"}} Cancel
    - else
      = link_to "Cancel", instances_url(), class: 'btn btn-default'
    = button_tag "Create Snapshot", { class: 'btn btn-primary pull-right', data: { disable_with: "Please wait..." } }

= content_for :title do
  Create Snapshot

= simple_form_for :snapshot, url: plugin('compute').create_image_instance_path(id:params[:id]), method: :put, remote: request.xhr?, html: {data: {modal: true}, class: 'form-horizontal' }, wrapper: :horizontal_form do |f|

  %div{class: modal? ? 'modal-body' : ''}
    = f.input :name, icon_hint: 'A snapshot is an image which preserves the disk state of a running instance.'

  %div.buttons{class: modal? ? 'modal-footer' : ''}
    - if modal?
      %button.btn.btn-default{type:"button", data: {dismiss:"modal"}, aria: {label: "Cancel"}} Cancel
    - else
      = link_to "Cancel", instances_url(), class: 'btn btn-default'
    = button_tag "Create Snapshot", { class: 'btn btn-primary pull-right', data: { disable_with: "Please wait..." } }

Remove warning that windows snapshots don't work
Remove warning that windows snapshots don't work
