Pages

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<div class="overflow-auto">
<table class="text-left text-base w-full">
<thead>
<tr class="border-b border-subdued">
<th class="font-semibold px-2 py-3 w-10" scope="col">
<form class="" action="#" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="FlhSvCkdIX-PdmgvutxNW75QP1UghJ--s1jhRw9GivTZGKQyveTIMtmwM_mqkNPgK5H7bWFkuT7-nJS4uUtlyA" autocomplete="off" /><input name="facility" type="hidden" value="value" autocomplete="off" /><input class="form-checkbox rounded border-2 checked:bg-accent shrink-0 m-[3px] !size-4.5 hover:border-gray-600 checked:hover:border-accent-hover checked:hover:bg-accent-hover disabled:border-subdued disabled:checked:bg-subdued disabled:checked:hover:border-subdued" data-testid="checkbox-facility" type="checkbox" value="value" name="facility" id="facility" />
</form>
</th>
<th class="font-semibold px-2 py-3" scope="col">
Column 1
</th>
<th class="font-semibold px-2 py-3" scope="col">
Column 2
</th>
</tr>
</thead>
<tbody>
<tr class="border-b border-subdued" data-testid="tr-1">
<td class="relative px-2 py-3 w-10" style="" data-testid="tr-1-td-0">
<form class="" action="#" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="QtmyNo8c2pyMIexM1AFl0KhqhwPa642-a81w2HQzyyuNmUS4G-Uz0drnt5rETftrPatDO5sLqz4mCQUnwj4kFw" autocomplete="off" /><input name="facility" type="hidden" value="value" autocomplete="off" /><input class="form-checkbox rounded border-2 checked:bg-accent shrink-0 m-[3px] !size-4.5 hover:border-gray-600 checked:hover:border-accent-hover checked:hover:bg-accent-hover disabled:border-subdued disabled:checked:bg-subdued disabled:checked:hover:border-subdued" data-testid="checkbox-facility" type="checkbox" value="value" name="facility" id="facility" />
</form>
</td>
<td class="relative px-2 py-3" style="" data-testid="tr-1-td-1">Name 1</td>
<td class="relative px-2 py-3" style="" data-testid="tr-1-td-2">Name 1</td>
</tr>
<tr class="border-b border-subdued" data-testid="tr-2">
<td class="relative px-2 py-3 w-10" style="" data-testid="tr-2-td-0">
<form class="" action="#" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="PVLjyfzdQH1xM4kE464DJ0du6a3g3ZzcKDM2OZNm_BLyEhVHaCSpMCf10tLz4p2c0q8tlaE9ulxl90PGJWsTLg" autocomplete="off" /><input name="facility" type="hidden" value="value" autocomplete="off" /><input class="form-checkbox rounded border-2 checked:bg-accent shrink-0 m-[3px] !size-4.5 hover:border-gray-600 checked:hover:border-accent-hover checked:hover:bg-accent-hover disabled:border-subdued disabled:checked:bg-subdued disabled:checked:hover:border-subdued" data-testid="checkbox-facility" type="checkbox" value="value" name="facility" id="facility" />
</form>
</td>
<td class="relative px-2 py-3" style="" data-testid="tr-2-td-1">Name 2</td>
<td class="relative px-2 py-3" style="" data-testid="tr-2-td-2">Name 2</td>
</tr>
<tr class="border-b border-subdued" data-testid="tr-3">
<td class="relative px-2 py-3 w-10" style="" data-testid="tr-3-td-0">
<form class="" action="#" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="g71Ju-egngWip1Wh5cNlGb1L0g73XHAMO4hqJ-zggm9M_b81c1l3SPRhDnf1j_uiKIoWNra8Vox2TB_YWu1tUw" autocomplete="off" /><input name="facility" type="hidden" value="value" autocomplete="off" /><input class="form-checkbox rounded border-2 checked:bg-accent shrink-0 m-[3px] !size-4.5 hover:border-gray-600 checked:hover:border-accent-hover checked:hover:bg-accent-hover disabled:border-subdued disabled:checked:bg-subdued disabled:checked:hover:border-subdued" data-testid="checkbox-facility" type="checkbox" value="value" name="facility" id="facility" />
</form>
</td>
<td class="relative px-2 py-3" style="" data-testid="tr-3-td-1">Name 3</td>
<td class="relative px-2 py-3" style="" data-testid="tr-3-td-2">Name 3</td>
</tr>
<tr class="border-b border-subdued" data-testid="tr-4">
<td class="relative px-2 py-3 w-10" style="" data-testid="tr-4-td-0">
<form class="" action="#" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="jgOBD7C8Ztusjvhr0dET4EJjws1N8N1b7j1ttRq9HXpBQ3eBJEWPlvpIo73BnY1b16IG9QwQ-9uj-RhKrLDyRg" autocomplete="off" /><input name="facility" type="hidden" value="value" autocomplete="off" /><input class="form-checkbox rounded border-2 checked:bg-accent shrink-0 m-[3px] !size-4.5 hover:border-gray-600 checked:hover:border-accent-hover checked:hover:bg-accent-hover disabled:border-subdued disabled:checked:bg-subdued disabled:checked:hover:border-subdued" data-testid="checkbox-facility" type="checkbox" value="value" name="facility" id="facility" />
</form>
</td>
<td class="relative px-2 py-3" style="" data-testid="tr-4-td-1">Name 4</td>
<td class="relative px-2 py-3" style="" data-testid="tr-4-td-2">Name 4</td>
</tr>
</tbody>
</table>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<%= anchor_table(data:) do |table|
table.with_column(
width: :checkbox,
header: ->(table) do
anchor_form_with(spacing: false, url: "#") do |form|
form.check_box(
:facility,
{},
"value",
"value"
)
end
end,
value: ->(_model) do
anchor_form_with(spacing: false, url: "#") do |form|
form.check_box(
:facility,
{},
"value",
"value"
)
end
end
)
table.with_column(header: "Column 1", value: -> { _1.name.capitalize })
table.with_column(header: "Column 2", value: -> { _1.name.capitalize })
end %>