git-svn-id: https://192.168.0.254/svn/Rodax.redmine_rodax_crm/trunk@4 ff88604e-da85-c949-a72f-fc3aa3ba3724
39 lines
2.2 KiB
Plaintext
39 lines
2.2 KiB
Plaintext
<%= error_messages_for 'contract' %>
|
|
<div class = "box tabular">
|
|
<p><%= f.text_field :name, :label=>l(:field_contract_name), :size => 80, :required => true %></p>
|
|
|
|
<p class = "notes"><%= f.text_area :background , :cols => 80, :rows => 8, :class => 'wiki-edit', :label=>l(:field_contract_background) %></p> <%= wikitoolbar_for 'contract_background' %>
|
|
|
|
<% if @project.contract_statuses.any? %>
|
|
<p><%= f.select :status_id, collection_for_status_select, :include_blank => false, :selected => @contract.status_id.to_s, :label=>l(:field_contact_status) %></p>
|
|
<% end %>
|
|
<% unless @project.contract_categories.empty? %>
|
|
<p><%= f.select :category_id, (@project.contract_categories.collect {|c| [c.name, c.id]}), :include_blank => true %>
|
|
<%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'),
|
|
l(:label_contract_category_new),
|
|
'category[name]',
|
|
{:controller => 'contract_categories', :action => 'new', :project_id => @project},
|
|
:title => l(:label_contract_category_new),
|
|
:tabindex => 199) if authorize_for('contract_categories', 'new') %></p>
|
|
<% end %>
|
|
<p>
|
|
<%= f.select :contact_id, (@project.contacts.visible.collect {|p| [ p.name, p.id ] }), :include_blank => true, :label=>l(:field_contract_contact) %>
|
|
<%= link_to image_tag('add.png', :style => 'vertical-align: middle;'),
|
|
{:controller => 'contacts', :action => 'new', :project_id => @project},
|
|
:confirm => l(:text_are_you_sure), :title => l(:label_contact_new) if authorize_for('contacts', 'new') %>
|
|
</p>
|
|
<p>
|
|
<%= f.text_field :price, :label => l(:field_contract_price), :size => 10 %>
|
|
<%= select_tag "contract[currency]", options_for_select(collection_for_currencies_select.insert(0, ['', '']), @contract.currency), :include_blank => true %>
|
|
|
|
</p>
|
|
|
|
<% @contract.custom_field_values.each do |value| %>
|
|
<p>
|
|
<%= custom_field_tag_with_label :contract, value %>
|
|
</p>
|
|
<% end -%>
|
|
|
|
<p><%= f.select :assigned_to_id, (@project.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true, :label => l(:label_assigned_to) %></p>
|
|
</div>
|