mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
27 lines
697 B
Plaintext
27 lines
697 B
Plaintext
<div>
|
|
<%# render 'content/form/errors', content: @content %>
|
|
|
|
<%# Content panels %>
|
|
<%
|
|
categories = if content.is_a?(ContentSerializer)
|
|
content.data[:categories]
|
|
else
|
|
raise [@content.class.name, @content.id, @content.errors.messages] if !@content.valid? && @serialized_categories_and_fields == nil
|
|
|
|
@serialized_categories_and_fields.data
|
|
end
|
|
%>
|
|
<% categories.each do |category| %>
|
|
<%=
|
|
render partial: 'content/form/panel', locals: {
|
|
category: category,
|
|
content: content
|
|
}
|
|
%>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="center grey-text">
|
|
<%# todo rotating tips here? %>
|
|
Tip: Notebook.ai automatically saves your answers.
|
|
</div> |