1
+ < div class ="card ">
2
+ < table class ="table table-striped ">
3
+ < thead >
4
+ < tr >
5
+ < th > Name</ th >
6
+ < th > Email</ th >
7
+ < th > Admin</ th >
8
+ </ tr >
9
+ </ thead >
10
+ < tbody >
11
+ <% User . order ( :name ) . each do |user | %>
12
+ < tr >
13
+ < td > <%= user . name %> </ td >
14
+ < td > <%= user . email %> </ td >
15
+ < td > <%= user . admin? ? "✅" : "❌" %> </ td >
16
+ </ tr >
17
+ <% end %>
18
+ </ tbody >
19
+ </ table >
20
+ < table class ="table table-striped ">
21
+ < thead >
22
+ < tr >
23
+ < th > Name</ th >
24
+ < th > Kew RGB 25cm</ th >
25
+ < th > Kew Samples</ th >
26
+ < th > DEFRA Hedgerows</ th >
27
+ < th > NATMAP</ th >
28
+ </ tr >
29
+ </ thead >
30
+ < tbody >
31
+ <% @teams . each do |team | %>
32
+ < tr >
33
+ < td > <%= team . name %> </ td >
34
+ < td >
35
+ <%= button_to team . permission ( 'kew_rgb25cm' ) ? "✅" : "❌" ,
36
+ toggle_permission_team_path ( team , permission_key : 'kew_rgb25cm' ) ,
37
+ method : :patch ,
38
+ class : "btn btn-sm btn-light" %>
39
+ </ td >
40
+ < td >
41
+ <%= button_to team . permission ( 'kew_samples' ) ? "✅" : "❌" ,
42
+ toggle_permission_team_path ( team , permission_key : 'kew_samples' ) ,
43
+ method : :patch ,
44
+ class : "btn btn-sm btn-light" %>
45
+ </ td >
46
+ < td >
47
+ <%= button_to team . permission ( 'defra_hedgerows' ) ? "✅" : "❌" ,
48
+ toggle_permission_team_path ( team , permission_key : 'defra_hedgerows' ) ,
49
+ method : :patch ,
50
+ class : "btn btn-sm btn-light" %>
51
+ </ td >
52
+ < td >
53
+ <%= button_to team . permission ( 'natmap_soil' ) ? "✅" : "❌" ,
54
+ toggle_permission_team_path ( team , permission_key : 'natmap_soil' ) ,
55
+ method : :patch ,
56
+ class : "btn btn-sm btn-light" %>
57
+ </ td >
58
+ </ tr >
59
+ <% end %>
60
+ </ tbody >
61
+ </ table >
62
+ </ div >
0 commit comments