Cosmetics
This commit is contained in:
parent
ab335decd3
commit
cde992a194
12 changed files with 53 additions and 49 deletions
|
|
@ -1 +1 @@
|
|||
<%= link_to "#{tag.i(class: "bi bi-plus-lg")} Neues Element".html_safe, new_page_element_path(page_id: page.id), class: "btn btn-primary" %>
|
||||
<%= link_to "#{tag.i(class: "bi bi-plus-lg")} Neues Element".html_safe, new_page_element_path(page_id: page.id), class: "btn btn-secondary" %>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
<div id="<%= dom_id page %>" class="mb-3"data-bs-scrollspy-target="#<%= dom_id(page.report, :page_nav_spy) %>" data-controller="bs-scrollspy">
|
||||
<h2>
|
||||
<i class="bi bi-file-earmark-check"></i>
|
||||
<%= page.position %> <%= page.path %></h2>
|
||||
<p>url: <%= page.url %></p>
|
||||
<div id="element_list">
|
||||
<% page.elements.each do |element| %>
|
||||
<%= render element %>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,15 @@
|
|||
h1
|
||||
= t("scaffold.pagetitle_show", model: @page.class.model_name.human)
|
||||
|
||||
h2
|
||||
i.bi.bi-file-earmark-check
|
||||
= @page.position
|
||||
= @page.path
|
||||
|
||||
= render @page
|
||||
|
||||
= turbo_frame_tag(dom_id(@page, :notes)) do
|
||||
= render partial: "pages/notes", locals: { page: @page }
|
||||
= render partial: "pages/notes", locals: { page: @page }
|
||||
|
||||
.action-row
|
||||
= link_to t("scaffold.link_edit", model: @page.model_name.human), edit_page_path(@page)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue