caf_text now working
redirects working for company now - although the overall structure is not clear in the app or in my mind
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
<p style="color: green"><%= notice %></p>
|
||||
|
||||
<%= render @caf %>
|
||||
|
||||
<div>
|
||||
<%= link_to "Edit this caf", edit_caf_path(@caf) %> |
|
||||
<%= link_to "Back to cafs", cafs_path %>
|
||||
<%= link_to "Edit this caf", edit_company_caf_path(@caf.company_id,@caf.id) %> |
|
||||
<%= link_to "Back to cafs", company_cafs_path(@caf.company_id) %>
|
||||
|
||||
<%= button_to "Destroy this caf", @caf, method: :delete %>
|
||||
<%= button_to "Destroy this caf", company_caf_path(@caf.id), method: :delete %>
|
||||
</div>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<h1>CAF Compliance Tracking</h1>
|
||||
<h1>Cyber Awareness Framework</h1>
|
||||
<h2>Compliance Tracking</h2>
|
||||
|
||||
<% if !user_signed_in? %>
|
||||
Not Signed in.
|
||||
|
||||
<% else %>
|
||||
<%#= current_user.roletxt %>
|
||||
<% if current_user.admin? %>
|
||||
|
||||
Reference in New Issue
Block a user