adds = to form blocks

pull/6827/head
Jens Ulferts 12 years ago
parent 2b718f51b1
commit 33afeecaa3
  1. 11
      app/views/cost_objects/_edit.html.erb
  2. 2
      app/views/cost_objects/_list.html.erb
  3. 6
      app/views/cost_objects/new.html.erb
  4. 4
      app/views/cost_types/_list.html.erb
  5. 2
      app/views/cost_types/_list_deleted.html.erb
  6. 2
      app/views/cost_types/edit.html.erb
  7. 2
      app/views/cost_types/index.html.erb
  8. 2
      app/views/costlog/index.html.erb
  9. 2
      app/views/hooks/_view_projects_settings_members_table_row.html.erb
  10. 2
      app/views/hourly_rates/edit.html.erb
  11. 2
      app/views/issues/destroy.html.erb

@ -1,8 +1,9 @@
<% labelled_tabular_form_for :cost_object, @cost_object,
:url => {:action => 'edit', :id => @cost_object},
:html => {:multipart => true,
:id => 'cost_object_form',
:class => nil} do |f| %>
<%= labelled_tabular_form_for @cost_object,
:as => :cost_object,
:url => cost_object_path(@cost_object),
:html => {:multipart => true,
:id => 'cost_object_form',
:class => nil} do |f| %>
<%= error_messages_for 'cost_object' %>
<div class="box">
<div class="tabular">

@ -1,4 +1,4 @@
<% form_tag({}) do -%>
<%= form_tag({}) do -%>
<table class="list cost_objects">
<thead><tr>

@ -1,7 +1,9 @@
<h2><%=l(:label_cost_object_new)%></h2>
<% labelled_tabular_form_for :cost_object, @cost_object,
:html => {:multipart => true, :id => 'cost_object_form'} do |f| %>
<%= labelled_tabular_form_for @cost_object,
:url => projects_cost_objects_path(@project),
:as => :cost_object,
:html => {:multipart => true, :id => 'cost_object_form'} do |f| %>
<%= error_messages_for 'cost_object' %>
<div class="box">
<%= render :partial => 'form', :locals => {:f => f} %>

@ -23,7 +23,7 @@
<% rate = cost_type.rate_at(@fixed_date) %>
<%= content_tag :td, number_to_currency( rate ? rate.rate : 0.0), :class => "currency", :id => "cost_type_#{cost_type.id}_rate"%>
<td>
<% form_for :cost_type, cost_type, :url => { :controller => 'cost_types', :action => 'set_rate', :id => cost_type } do |f| %>
<%= form_for cost_type, :url => { :controller => 'cost_types', :action => 'set_rate', :id => cost_type } do |f| %>
<label class="hidden-for-sighted" for="<%= "rate_field_#{cost_type.id}" %>"><%= l(:caption_set_rate) %></label>
<%= f.text_field :rate, :value => "", :name => :rate, :size => 7, :id => "rate_field_#{cost_type.id}" %> <%= Setting.plugin_redmine_costs['costs_currency'] %>
<%= image_submit_tag "save.png", :alt => l(:caption_save_rate), :title => l(:caption_save_rate) %>
@ -31,7 +31,7 @@
</td>
<%= content_tag :td, cost_type.is_default? ? image_tag('check.png', :alt => l(:general_text_Yes)) : "" %>
<td>
<% form_for :cost_type, cost_type, :url => { :controller => 'cost_types', :action => 'toggle_delete', :id => cost_type } do |f| %>
<%= form_for cost_type, :url => { :controller => 'cost_types', :action => 'toggle_delete', :id => cost_type } do |f| %>
<%= image_submit_tag "locked.png", :alt => l(:button_lock), :title => l(:button_lock), :onclick => "return #{confirm_javascript_function(l(:text_are_you_sure))}" %>
<% end %>
</td>

@ -22,7 +22,7 @@
<%= content_tag :td, number_to_currency(cost_type.rate_at(@fixed_date).rate), :class => "currency" %>
<%= content_tag :td, cost_type.deleted_at.to_date %>
<td>
<% form_for :cost_type, cost_type, :url => { :controller => 'cost_types', :action => 'toggle_delete', :id => cost_type } do |f| %>
<%= form_for :cost_type, cost_type, :url => { :controller => 'cost_types', :action => 'toggle_delete', :id => cost_type } do |f| %>
<%= image_submit_tag "unlock.png" , :alt => l(:button_unlock), :title => l(:button_unlock) %>
<% end %>
</td>

@ -1,6 +1,6 @@
<h2><%= l(:caption_cost_type) %></h2>
<% labelled_tabular_form_for :cost_type, @cost_type, :url => {:action => 'edit'} do |f| %>
<%= labelled_tabular_form_for @cost_type, :url => {:action => 'update'}, :method => :put do |f| %>
<%= error_messages_for 'cost_type' %>
<%= back_url_hidden_field_tag %>

@ -4,7 +4,7 @@
<h2><%= l(:caption_cost_type_plural) %></h2>
<% form_tag({ :controller => 'cost_types', :action => 'index' }, :id => 'query_form') do %>
<%= form_tag({ :controller => 'cost_types', :action => 'index' }, :id => 'query_form') do %>
<fieldset id="filters"><legend><%= l(:label_filter_plural) %></legend>
<p>
<label for="fixed_date"><%= l(:label_fixed_date) %></label>

@ -6,7 +6,7 @@
<h2><%= l(:label_spent_costs) %></h2>
<% form_remote_tag( :url => {}, :method => :get, :update => 'content' ) do %>
<%= form_remote_tag( :url => {}, :method => :get, :update => 'content' ) do %>
<%= hidden_field_tag('project_id', params[:project_id]) if @project %>
<%= hidden_field_tag 'issue_id', params[:issue_id] if @issue %>
<%= hidden_field_tag 'cost_type_id', params[:cost_type_id] if @cost_type %>

@ -19,7 +19,7 @@
<% if allow_edit %>
<td align="center" style="white-space: nowrap;">
<% remote_form_for :rate, :url => { :controller => 'hourly_rates', :action => 'set_rate', :id => member.user, :project_id => project}, :method => :posts do |f| %>
<%= remote_form_for :rate, :url => { :controller => 'hourly_rates', :action => 'set_rate', :id => member.user, :project_id => project}, :method => :posts do |f| %>
<label class="hidden-for-sighted", for="rate_text_field_for_<%= member.user.id %>"><%= l(:caption_set_rate) %></label>
<%= f.text_field :rate, :value => "", :name => :rate, :size => 7, :id => "rate_text_field_for_#{member.user.id}"%> <%= Setting.plugin_redmine_costs['costs_currency'] %>
<%= image_submit_tag "save.png", :alt => l(:button_save) %>

@ -9,7 +9,7 @@
RatesForm = new Subform('<%= escape_javascript(render(:partial => "rate", :object => HourlyRate.new )) %>',<%= @rates.length %>,'rates_body');
<% end -%>
<% labelled_tabular_form_for :user, @user, :url => {:action => 'edit', :project_id => @project} do |f| %>
<%= labelled_tabular_form_for @user, :url => {:action => 'update', :project_id => @project}, :method => :put do |f| %>
<%= back_url_hidden_field_tag %>
<%= error_messages_for 'user' %>
<table class="list" style="width:auto">

@ -1,6 +1,6 @@
<h2><%= l(:label_confirmation) %></h2>
<% form_tag do %>
<%= form_tag do %>
<%= @issues.collect {|i| hidden_field_tag 'ids[]', i.id } %>
<div class="box">
<p><strong><%=

Loading…
Cancel
Save