From 8fe67ef8ae7d502cb2c9dcc062dec1b6931fbdb7 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Mon, 19 Jan 2009 11:14:39 -0800 Subject: [PATCH] Updated the form to use the form_for now that there is a Rate object. #1914 --- app/views/rates/_form.html.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/rates/_form.html.erb b/app/views/rates/_form.html.erb index db0849b..75770f1 100644 --- a/app/views/rates/_form.html.erb +++ b/app/views/rates/_form.html.erb @@ -9,18 +9,20 @@ - <%= text_field_tag "date_from", nil, :size => 10 %><%= calendar_for('date_from') %> + <%= f.text_field "date_in_effect", :size => 10 %><%= calendar_for('rate_date_in_effect') %> <%= # TODO: move to controller once a hook is in place for the Admin panel projects = Project.find(:all, :conditions => { :status => Project::STATUS_ACTIVE}, :include => :parent) - select_tag("project",projects_options_for_select(projects)) + + select_tag("rate_project_id", projects_options_for_select(projects)) %> - <%= l(:rate_label_currency) %> <%= text_field_tag "rate", nil, :size => 10 %> + <%= l(:rate_label_currency) %> <%= f.text_field "amount", :size => 10 %> + <%= f.hidden_field "user_id" %> <%= submit_tag l(:button_add),:class => 'button-small' -%>