Skip to content
Snippets Groups Projects
Commit e9eabe83 authored by alexisben's avatar alexisben
Browse files

Block posts: better view of category select

parent 1e18fa29
No related branches found
No related tags found
No related merge requests found
<% categories = collection_tree(@block.about&.website.categories.ordered) %>
<div class="row mb-1">
<div class="col-md-6">
......@@ -31,7 +33,7 @@
<select id="category_id"
class="form-select select"
v-model="data.category_id">
<% @block.about&.website.categories.ordered.each_with_index do |category, index| %>
<% categories.each_with_index do |category, index| %>
<option value="<%= category.id %>"><%= category %></option>
<% end %>
</select>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment