File: edit.html.erb

package info (click to toggle)
libgettext-rails-ruby 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,384 kB
  • ctags: 383
  • sloc: ruby: 1,042; makefile: 10
file content (22 lines) | stat: -rw-r--r-- 696 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<h1><%= _("Editing article") %></h1>

<%= error_messages_for :article %>

<% form_for(@article) do |f| %>
  <p>
   <p><%= f.label :lastupdate %></p>
   <p><%= f.date_select :lastupdate, :order => [:year, :month, :day], :use_month_numbers => true %></p>
   <p><%= f.label :title, _("Title: Required.") %></p>
   <p><%= f.text_field :title %></p>
   <p><%= f.label :title, _("Description: More than 10 characters.") %></p>
   <p><%= f.text_area :description %></p>
   <p><%= f.submit _("Edit") %></p>
  </p>
<% end %>

<p>
<%= link_to _('Show'), @article %> |
<%= link_to _('Destroy'), @article, :confirm => _('Are you sure?'), :method => :delete %> |
<%= link_to _('Back'), articles_path %>
</p>