Sha256: 0b2640dc90fc2dc214dfd029f8a559d252424ffb49113f9da5662d12a192ed07

Contents?: true

Size: 962 Bytes

Versions: 18

Compression:

Stored size: 962 Bytes

Contents

- content_for :scripts do
  :javascript
    $(function() {
      $('.preview').click(function(e) {
        for ( instance in CKEDITOR.instances )
          CKEDITOR.instances[instance].updateElement();
        var vals = $('form').serialize();
        window.open('/posts/preview?' + vals);
        e.preventDefault();
      })
    })

= error_messages_for :dispatch

= form_for [:forge, @dispatch] do |f|
  #form-header= title_row(:explanation => "Give your dispatch a title.") { f.text_field :subject, :class => 'title' }

  .inner-form
    .column.full.last
      = content_row("Content", :explanation => "This is the content that will appear in the body of the email.") { f.cktext_area :content, :width => '100%', :height => '300px;' }
    .spacer

  #item-list-bottom
    .float-right
      Everything look good?
      = button_link "Preview", "javascript:;", :class => "preview button"
      = button_link "Save", "javascript:;", :class => "submit button"

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
forge-cli-0.1.4 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.1.3 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.1.2 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.1.1 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.1.0 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.0.18 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.0.17 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.0.16 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.0.15 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.0.14 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.0.13 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.0.12 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.0.11 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.0.10 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.0.9 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.0.8 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.0.7 lib/forge/app/views/forge/dispatches/_form.html.haml
forge-cli-0.0.6 lib/forge/app/views/forge/dispatches/_form.html.haml