infusionvlc/ConexionFelina

View on GitHub
app/views/treatment_entries/index.html.erb

Summary

Maintainability
Test Coverage
<h1>TreatmentEntry#index</h1>
<% @treatment_entries.each do |treatment_entry| %>
    <div class="card">
      <div class="card-container">
      <div class="advanced_info">
        Treatment date <%= treatment_entry.date %><br/>    
        Treatment: <%= treatment_entry.treatment %><br/>    
        Notes: <%= treatment_entry.notes %><br/>  
        <%= link_to 'Details', treatment_entry_path(treatment_entry.id) %><br/>      
        <%= link_to "Edit", edit_treatment_entry_path(treatment_entry.id) %><br/>
        <%= link_to "Delete", treatment_entry_path(:id => treatment_entry.id), :method => :delete, data: { confirm: 'Are you sure?' } %></br>
      </div>
    </div>
  </div>
<% end %>