Create documentable concern and add it to budget investment model. Create documents controller, documents helper, routes, translations and specs
This commit is contained in:
17
app/views/documents/_documents.html.erb
Normal file
17
app/views/documents/_documents.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<% if documents.any? %>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<% documents.each do |document| %>
|
||||
<%= render "documents/document", document: document %>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<% else %>
|
||||
|
||||
<div class="callout primary text-center">
|
||||
<%= t('documents.no_documents') %>
|
||||
</div>
|
||||
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user