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="Ey-mdNBNOJEuOdCAEVV_TC6XBcBUVMm9DDBVp5rr2_3lQM4RU9_AqD117yj3NmkN5Z9hh66LwLiRfCoO8wwpfA" 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="Ie-j7hiWqY5JdGCI2ppOF4OeXQiQThrNplyNyc2xis3XgMuLmwRRt1o4XyA8-VhWSJY5T2qRE8g7EPJgpFZ4TA" 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="qbLXzhN71yUnfi9x8tqO_qMpzfKbXdfo8UU690gkLexf3b-rkOkvHDQyENkUuZi_aCGptWGC3u1sCUVeIcPfbQ" 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="40V7oy2d07h19F3Jr_VorHO-Qmh5kMbZsGHdhHKYwoIVKhPGrg8rgWa4YmFJln7tuLYmL4NPz9wtLaItG38wAw" 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="Y8D5rcJupmu2F1aUTEWQt2sl7btcObtTx5zeQrmKwFaVr5HIQfxeUqVbaTyqJob2oC2J_KbmslZa0KHr0G0y1w" 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 %>