Sha256: bc49db4b30c506c741fddffc96c1c3b94d27ba8b41d4862f8bbb57b9798858dc
Contents?: true
Size: 685 Bytes
Versions: 3
Compression:
Stored size: 685 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 %> <% 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.24.1 | lib/ecrire/app/views/admin/posts/new.html.erb |
ecrire-0.24.0 | lib/ecrire/app/views/admin/posts/new.html.erb |
ecrire-0.23.0 | lib/ecrire/app/views/admin/posts/new.html.erb |