mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-04 12:12:48 -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>
28 lines
891 B
Plaintext
28 lines
891 B
Plaintext
- content_for :title, "Listing alternate names"
|
|
|
|
- if can? :create, AlternateName
|
|
%p= link_to 'New alternate name', new_alternate_name_path, class: 'btn btn-primary'
|
|
|
|
%table
|
|
%tr
|
|
%th Alternate name
|
|
%th Crop
|
|
%th
|
|
%th
|
|
|
|
- @alternate_names.each do |alternate_name|
|
|
%tr
|
|
%td= link_to alternate_name.name, alternate_name
|
|
%td= alternate_name.crop
|
|
%td= link_to 'Show', alternate_name
|
|
%td
|
|
- if can? :edit, alternate_name
|
|
= link_to t('buttons.edit'), edit_alternate_name_path(alternate_name), class: 'btn btn-outline-secondary btn-sm'
|
|
%td
|
|
- if can? :destroy, alternate_name
|
|
= link_to t('buttons.delete'), alternate_name,
|
|
method: :delete,
|
|
data: { confirm: t(:are_you_sure?) },
|
|
class: 'btn btn-outline-secondary btn-sm'
|
|
= will_paginate(@alternate_names)
|