latest changes introduced with cursor
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
<% [:client, :owner, :builder].each do |role| %>
|
||||
<div>
|
||||
<%= sp_form.label "#{role}_id", "Select Existing #{role.capitalize}" %>
|
||||
<%= sp_form.collection_select "#{role}_id", Client.all, :id, -> (client) { "#{client.company_name} (#{client.lastname}, #{client.firstname})" }, prompt: "Select #{role.capitalize}" %>
|
||||
<%= sp_form.collection_select "#{role}_id", clients, :id, :display_name, prompt: "Select #{role.capitalize}" %>
|
||||
|
||||
<fieldset>
|
||||
<legend>Or Create New <%= role.capitalize %></legend>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<h1>Editing project</h1>
|
||||
|
||||
<%= render "form", project: @project %>
|
||||
<%= render "form", project: @project, clients: @clients %>
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<h1>New project</h1>
|
||||
|
||||
<div id="projects">
|
||||
<%= render "form", project: @project %>
|
||||
<%= render "form", project: @project, clients: @clients %>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user