Sha256: e30260b3b2d74320cb43209ed21c3d9e12c06c4ce08d36529898444e2e017dfc

Contents?: true

Size: 832 Bytes

Versions: 2

Compression:

Stored size: 832 Bytes

Contents

= simple_form_for [dorsale, comment], remote: true do |f|
  = f.hidden_field :commentable_id
  = f.hidden_field :commentable_type

  .comment
    - if comment.author.try(:avatar_url).present?
      = image_tag comment.author.avatar_url, class: "avatar"
    - else
      = image_tag "dorsale/avatar.png", class: "avatar"

    .comment-fields
      .comment-title-field
        = f.text_field :title, class: "form-control input-sm", placeholder: f.object.t(:title)

      .comment-date-field
        = f.text_field :date, class: "form-control input-sm", placeholder: f.object.t(:date)

      .comment-text-field
        = f.text_area :text, rows: 3, class: "form-control input-sm", placeholder: f.object.t(:text)

      .comment-submit
        input type="submit" value=t("actions.send") class="btn btn-success btn-xs"

    .clearfix

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dorsale-3.5.2 app/views/dorsale/comments/_form.html.slim
dorsale-3.5.1 app/views/dorsale/comments/_form.html.slim