summaryrefslogtreecommitdiffstats
path: root/redmine/app/views/versions
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2006-09-02 13:33:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2006-09-02 13:33:23 +0000
commit552d99d664b6c67d021e0b04fb5c6bde3a23c8ce (patch)
treec765cbb35f725f86590aabd29cb042579cca4b46 /redmine/app/views/versions
parent54aeec7b5fcf61e9fe27aafe4e72cf5bbd085ee2 (diff)
downloadredmine-552d99d664b6c67d021e0b04fb5c6bde3a23c8ce.tar.gz
redmine-552d99d664b6c67d021e0b04fb5c6bde3a23c8ce.zip
tables and forms redesign,
added form builder for several views git-svn-id: http://redmine.rubyforge.org/svn/trunk@21 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'redmine/app/views/versions')
-rw-r--r--redmine/app/views/versions/_form.rhtml15
-rw-r--r--redmine/app/views/versions/edit.rhtml9
2 files changed, 9 insertions, 15 deletions
diff --git a/redmine/app/views/versions/_form.rhtml b/redmine/app/views/versions/_form.rhtml
index 18de3c5c3..577e1c37f 100644
--- a/redmine/app/views/versions/_form.rhtml
+++ b/redmine/app/views/versions/_form.rhtml
@@ -1,13 +1,8 @@
<%= error_messages_for 'version' %>
-
+<div class="box">
<!--[form:version]-->
-<p><label for="version_name"><%=l(:field_name)%></label> <span class="required">*</span><br/>
-<%= text_field 'version', 'name', :size => 20 %></p>
-
-<p><label for="version_description"><%=l(:field_description)%></label><br/>
-<%= text_field 'version', 'description', :size => 60 %></p>
-
-<p><label for="version_effective_date"><%=l(:field_effective_date)%></label><br/>
-<%= date_select 'version', 'effective_date' %></p>
+<p><%= f.text_field :name, :size => 20, :required => true %></p>
+<p><%= f.text_field :description, :size => 60 %></p>
+<p><%= f.date_select :effective_date, :required => true %></p>
<!--[eoform:version]-->
-
+</div> \ No newline at end of file
diff --git a/redmine/app/views/versions/edit.rhtml b/redmine/app/views/versions/edit.rhtml
index 6851d79b8..1556ebba1 100644
--- a/redmine/app/views/versions/edit.rhtml
+++ b/redmine/app/views/versions/edit.rhtml
@@ -1,8 +1,7 @@
<h2><%=l(:label_version)%></h2>
-<%= start_form_tag :action => 'edit', :id => @version %>
- <%= render :partial => 'form' %>
- <%= submit_tag l(:button_save) %>
-<%= end_form_tag %>
-
+<% labelled_tabular_form_for :version, @version, :url => { :action => 'edit' } do |f| %>
+<%= render :partial => 'form', :locals => { :f => f } %>
+<%= submit_tag l(:button_save) %>
+<% end %>