Sha256: fe214bfee81e8d219cd9cf2f1304725e3fe61c286229f739281d8fbe47727f3a
Contents?: true
Size: 695 Bytes
Versions: 3
Compression:
Stored size: 695 Bytes
Contents
<%= form_for @post, as: :post, url: admin_posts_path, html: { class: %w(post new title), as: 'Posts.New' } do |f| %> <%= content_tag :fieldset, class: %w(transparent) do |fieldset| %> <% if @post.errors.any? %> <% fieldset.css << 'errors' %> <% end %> <%= f.text_field :title, placeholder: t('admin.posts.new.title') %> <% end %> <% if @post.errors.any? %> <ul class='errors'> <% @post.errors.each do |key, message| %> <%= content_tag :li, message, key: key %> <% end %> </ul> <% else %> <%= content_tag :p, t('admin.posts.new.editable'), class: %w(transparent) %> <% end %> <%= f.button :submit, class: %w(hidden) %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ecrire-0.25.2 | lib/ecrire/app/views/admin/posts/new.html.erb |
ecrire-0.25.1 | lib/ecrire/app/views/admin/posts/new.html.erb |
ecrire-0.25.0 | lib/ecrire/app/views/admin/posts/new.html.erb |