Sha256: c4d6e2ed48bcf6c2eeb9f489a318fcde1374c0fd361beca1bc192759435082fe

Contents?: true

Size: 1.1 KB

Versions: 4

Compression:

Stored size: 1.1 KB

Contents

h2 <%= (if @isNew then 'New' else 'Edit') %> Post

= form_tag '/' do
  fieldset
    .fields.span5
      .control-group.title
        = label_tag 'post_title', 'Title', class: 'control-label'
        .controls
          = text_field_tag 'post_title', "<%= @post.title %>".html_safe, class: 'input-xlarge span5'
          span.help-inline.title

      .control-group.body
        = label_tag 'post_body', 'Body', class: 'control-label'
        .controls
          = text_area_tag 'post_body', "<%= @post.body %>".html_safe, class: 'span5', rows: 30
          span.help-inline= link_to 'Markdown syntax', 'http://daringfireball.net/projects/markdown/syntax', target: '_BLANK'

    #post_preview.span6

    | <% unless @isNew: %>
    #attachments.row-fluid.clear
      h2 Attachments
      .span8.attachment-list
        | <% for asset in @post.assets: %>
        .attachment <%= asset.attachment.url %>
        | <% end %>
      .span4
        #uploader

    | <% end %>
    .form-actions.clear
      .row
        .span1
          button.btn.btn-primary.update Save
        .span1
          button.btn.btn-danger.cancel Cancel

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
crowdblog-0.0.16 app/assets/javascripts/crowdblog/templates/posts/edit.jst.eco.slim
crowdblog-0.0.15 app/assets/javascripts/crowdblog/templates/posts/edit.jst.eco.slim
crowdblog-0.0.14 app/assets/javascripts/crowdblog/templates/posts/edit.jst.eco.slim
crowdblog-0.0.13 app/assets/javascripts/crowdblog/templates/posts/edit.jst.eco.slim