Sha256: 20b2f78aaa3d6a119585114f03bdcc6cd4fc3b050d52399f5f6160139288ca31
Contents?: true
Size: 708 Bytes
Versions: 10
Compression:
Stored size: 708 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.titles.first.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
10 entries across 10 versions & 1 rubygems