Don't know how to get the page to scroll back to the last update
Evidence is now saved More cleaning up to do.
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
|
||||
<p><%= @subprincipleitem.description %><p>
|
||||
|
||||
<%= form_with(model: @subprincipleitem) do |form| %>
|
||||
<%#= form_for( [company, caf] ) do |form| %>
|
||||
<%= form_for( [ @caf, @subprincipleitem] ) do |form| %>
|
||||
<div>
|
||||
<%= form.label :affirmative %> <%= form.check_box :affirmative, {}, true, false %>
|
||||
</div>
|
||||
@@ -12,6 +13,6 @@
|
||||
<%= form.rich_text_area :evidence %>
|
||||
</div>
|
||||
<div>
|
||||
<%= form.submit %>
|
||||
<%= form.submit 'Update' %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user