Files
growstuff/app/views/scientific_names/index.html.haml
T
Brenda WallaceandClaude Sonnet 5 742599fea6 Rename Bootstrap 3/4 grid, button and form-group classes
col-xs-N -> col-N, col-md-offset-N -> offset-md-N, row-fluid -> row,
btn-block -> w-100, btn-xs -> btn-sm, form-group -> mb-3 (Bootstrap 5 dropped
form-group), and btn-default (Bootstrap 3) -> btn-outline-secondary. The three
helpers that combined btn-default with btn-secondary keep just btn-secondary.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 18:01:45 +12:00

27 lines
863 B
Plaintext

- content_for :title, "Listing scientific names"
- if can? :create, ScientificName
%p= link_to 'New Scientific name', new_scientific_name_path, class: 'btn btn-primary'
%table
%tr
%th Scientific name
%th Crop
%th
%th
- @scientific_names.each do |scientific_name|
%tr
%td= link_to scientific_name.name, scientific_name
%td= scientific_name.crop_id
%td= link_to 'Show', scientific_name
%td
- if can? :edit, scientific_name
= link_to t('buttons.edit'), edit_scientific_name_path(scientific_name), class: 'btn btn-outline-secondary btn-sm'
%td
- if can? :destroy, scientific_name
= link_to t('buttons.delete'), scientific_name, method: :delete, data: { confirm: t(:are_you_sure?) },
class: 'btn btn-outline-secondary btn-sm'
= will_paginate @scientific_names