Implement SubprojectAddresses in Subprojects
This commit is contained in:
@@ -19,4 +19,9 @@
|
||||
<%= subproject_address.country %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Subproject_ID:</strong>
|
||||
<%= subproject_address.subproject_id %>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
<p style="color: green"><%= notice %></p>
|
||||
|
||||
<% content_for :title, "Adresse" %>
|
||||
|
||||
<h1>Adresse</h1>
|
||||
|
||||
<%= render @subproject_address %>
|
||||
|
||||
<div>
|
||||
|
||||
@@ -7,6 +7,10 @@
|
||||
<%= link_to value.name, project_path(value) %>
|
||||
<% elsif attrib == :client || attrib == :owner || attrib == :builder %>
|
||||
<%= link_to "#{value&.company_name} (#{value&.lastname}, #{value&.firstname})", client_path(value&.id) %>
|
||||
<% elsif attrib == :subproject_address %>
|
||||
<% if value.present? %>
|
||||
<%= link_to "#{value.streetname}, #{value.zipcode} #{value.city}, #{value.country}", subproject_address_path(value) %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<%= value.is_a?(Date) ? l(value) : value %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user