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

Block page : update page lists

parent 2764e150
No related branches found
No related tags found
No related merge requests found
<% pages = collection_tree(@block.about&.website.pages) %>
<h2 class="mt-5">Page principale</h2>
<div class="row mb-1">
<div class="col-md-6">
......@@ -7,8 +9,8 @@
class="form-select select"
v-model="data.page_id">
<option value="">Aucune page sélectionnée</option>
<% @block.about&.website.pages.ordered.each_with_index do |page, index| %>
<option value="<%= page.id %>"><%= page %></option>
<% pages.each_with_index do |page, index| %>
<option value="<%= page[:id] %>"><%= page[:label].html_safe %></option>
<% end %>
</select>
</div>
......@@ -53,10 +55,11 @@
class="form-select select"
v-model="page.id">
<option value="" disabled>Aucune page</option>
<% @block.about&.website.pages.ordered.each_with_index do |page, index| %>
<option value="<%= page.id %>"><%= page.title %></option>
<% pages.each_with_index do |page, index| %>
<option value="<%= page[:id] %>"><%= page[:label].html_safe %></option>
<% end %>
</select>
</div>
<div class="col-6">
<div class="col-md-6">
......
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