All callers provide the arguments. Remove the selected override in this view, since the select view has the same override. Also remove the unnecessary wrapping div.
14 lines
317 B
Plaintext
14 lines
317 B
Plaintext
<%# locals: (name:, selected:, id: name) %>
|
|
|
|
<%== render(
|
|
"components/form/select",
|
|
locals: {
|
|
name:,
|
|
id:,
|
|
options: [["", "No access", nil, {}]].concat(
|
|
@allowed_view_tag_names.map { [_1, _1, nil, @allowed_add_tag_names_map.include?(_1) ? {} : { disabled: true }] }
|
|
),
|
|
selected:
|
|
}
|
|
) %>
|