Skip to content
Snippets Groups Projects
Unverified Commit f610dfd5 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

wip #371

parent 7be33cc6
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
input_html: {
data: { 'summernote-config' => 'mini' }
} %>
<%= f.input :text, as: :summernote %>
<%= f.input :text, as: :summernote if page.text&.to_plain_text.present? %>
<%= f.association :related_category,
collection: collection_tree(@website.categories),
label_method: ->(p) { sanitize p[:label] },
......
......@@ -20,7 +20,7 @@
</div>
<div class="card-body">
<%= render 'admin/application/property/text', object: @page, property: :description_short %>
<%= render 'admin/application/property/text', object: @page, property: :text %>
<%= render 'admin/application/property/text', object: @page, property: :text if @page.text&.to_plain_text.present? %>
</div>
</div>
<%= render 'admin/communication/blocks/list', about: @page %>
......
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