Sha256: 8cf5ce6474fcc7927ccdd5395328d5b93168e8b0a9f307c132a5fa0a97903737

Contents?: true

Size: 985 Bytes

Versions: 1

Compression:

Stored size: 985 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 subject.", :title => "Subject") { 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

1 entries across 1 versions & 1 rubygems

Version Path
forge-cli-0.1.5 lib/forge/app/views/forge/dispatches/_form.html.haml