Create documentable concern and add it to budget investment model. Create documents controller, documents helper, routes, translations and specs

This commit is contained in:
Senén Rodero Rodríguez
2017-07-21 13:46:13 +02:00
parent c92827e89e
commit a2130689ed
22 changed files with 505 additions and 1 deletions

View 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 %>