Sha256: 1793b83a3b38edc0239ee4c213515c36be84562a64f071d11ed289709c11ebf2

Contents?: true

Size: 988 Bytes

Versions: 38

Compression:

Stored size: 988 Bytes

Contents

- id = "new-dorsale-comment"  if comment.new_record?
- id = "edit-dorsale-comment" if comment.persisted?

= simple_form_for [dorsale, comment], remote: true, html: {id: id} 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 default_avatar_url, class: "avatar"

    .comment-fields
      .comment-infos-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

38 entries across 38 versions & 1 rubygems

Version Path
dorsale-4.0.0 app/views/dorsale/comments/_form.html.slim
dorsale-3.20.0 app/views/dorsale/comments/_form.html.slim
dorsale-3.19.1 app/views/dorsale/comments/_form.html.slim
dorsale-3.19.0 app/views/dorsale/comments/_form.html.slim
dorsale-3.18.0 app/views/dorsale/comments/_form.html.slim
dorsale-3.17.0 app/views/dorsale/comments/_form.html.slim
dorsale-3.16.0 app/views/dorsale/comments/_form.html.slim
dorsale-3.15.0 app/views/dorsale/comments/_form.html.slim
dorsale-3.14.11 app/views/dorsale/comments/_form.html.slim
dorsale-3.14.10 app/views/dorsale/comments/_form.html.slim
dorsale-3.14.9 app/views/dorsale/comments/_form.html.slim
dorsale-3.14.8 app/views/dorsale/comments/_form.html.slim
dorsale-3.14.7 app/views/dorsale/comments/_form.html.slim
dorsale-3.14.6 app/views/dorsale/comments/_form.html.slim
dorsale-3.14.5 app/views/dorsale/comments/_form.html.slim
dorsale-3.14.4 app/views/dorsale/comments/_form.html.slim
dorsale-3.14.3 app/views/dorsale/comments/_form.html.slim
dorsale-3.14.2 app/views/dorsale/comments/_form.html.slim
dorsale-3.14.1 app/views/dorsale/comments/_form.html.slim
dorsale-3.14.0 app/views/dorsale/comments/_form.html.slim