Sha256: 5d58596e2f04cb4e65bf05de6420a6fae50126293599c852894c0e76e4c8f447

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

<% @page_title = "Edit comment of #{h(@comment.picture.title)}" %>

<% content_for 'tasks' do %>
  <li>
    <%= link_to 'List of Comments', admin_comments_url %>
  </li>
<% end %>

<h2>Comments for <%=link_to(h(@comment.picture.title), admin_picture_url(@comment.picture)) %></h2>

<%= error_messages_for 'comment' %>

<% form_for @comment, :url => {:action => 'update', :controller => 'admin/comments'}, :method => 'update' do |f|%>
  <div class="admin set">
    <ul class="set admin" id="comment">
      <li>
        <label for="comment_author" class="block content">Author</label>
        <%= f.text_field :author %>
      </li>
      <li>
      <li>
        <label for="comment_email" class="block content">Email</label>
        <%= f.text_field :email %>
      </li>
      <li>
        <label for="comment_body" class="block content">Content</label>
        <%= f.text_area :body, { :height => '300', :cols => '100'} %>
      </li>
    </ul>
  </div>
  <p class="paginate r">
    <%= link_to 'Cancel', :action => :index %> or 
    <%= submit_tag 'Save &raquo;', :class => 'submit' %>
  </p>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pictrails-0.5.0 app/views/admin/comments/edit.html.erb