Sha256: 2da56b4faa4619ae654a416b18794b85077a94c13aedbe7805718b2d88c45560

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

= form_for [:admin, @article] do |f|
  - if @article.errors.any?
    #error_explanation
      h2
        = pluralize(@article.errors.count, "error")
        |  prohibited this article from being saved:
      ul
        - @article.errors.full_messages.each do |message|
          li
            = message
  .form-group
    = f.label :title
    = f.text_field :title, class: "form-control"
  .form-group
    = f.label :text
    = f.text_area :text, class: ["tinymce", "form-control"], rows: 40, cols: 120
    = tinymce
  .actions
    = f.submit "Submit", class: ["btn", "btn-default"]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bigmouth-0.0.2 app/views/bigmouth/admin/articles/_form.html.slim