mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-01 02:39:26 -05:00
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>
27 lines
863 B
Plaintext
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
|