summaryrefslogtreecommitdiffstats
path: root/app/views/versions
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-05 20:45:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-05 20:45:04 +0000
commit96f83cc8f0f032554f771a59da22303cd473b878 (patch)
tree355a0d2ed653a5426c59ebf6a1fe65eba024b4d0 /app/views/versions
parenteabc04d8368824965d3ac8de3fa84502e9c05d38 (diff)
downloadredmine-96f83cc8f0f032554f771a59da22303cd473b878.tar.gz
redmine-96f83cc8f0f032554f771a59da22303cd473b878.zip
trunk moved from /trunk/redmine to /trunk
git-svn-id: http://redmine.rubyforge.org/svn/trunk@67 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/versions')
-rw-r--r--app/views/versions/_form.rhtml9
-rw-r--r--app/views/versions/edit.rhtml7
2 files changed, 16 insertions, 0 deletions
diff --git a/app/views/versions/_form.rhtml b/app/views/versions/_form.rhtml
new file mode 100644
index 000000000..3d0eb0a2d
--- /dev/null
+++ b/app/views/versions/_form.rhtml
@@ -0,0 +1,9 @@
+<%= error_messages_for 'version' %>
+
+<div class="box">
+<!--[form:version]-->
+<p><%= f.text_field :name, :size => 20, :required => true %></p>
+<p><%= f.text_field :description, :size => 60 %></p>
+<p><%= f.text_field :effective_date, :size => 10, :required => true %><%= calendar_for('version_effective_date') %></p>
+<!--[eoform:version]-->
+</div> \ No newline at end of file
diff --git a/app/views/versions/edit.rhtml b/app/views/versions/edit.rhtml
new file mode 100644
index 000000000..1556ebba1
--- /dev/null
+++ b/app/views/versions/edit.rhtml
@@ -0,0 +1,7 @@
+<h2><%=l(:label_version)%></h2>
+
+<% labelled_tabular_form_for :version, @version, :url => { :action => 'edit' } do |f| %>
+<%= render :partial => 'form', :locals => { :f => f } %>
+<%= submit_tag l(:button_save) %>
+<% end %>
+