Sha256: 810ff30f7ddbd770c839df8859ab6b7f5846132ea28fa6361f57ea8d5ab8ac09

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

<% if preview.params.none? %>
  <div class="p-4 w-full h-full bg-lookbook-prose-bg">
    <%= lookbook_render :prose do %>
      <em class='opacity-50'>No params configured.</em>
    <% end %>
  </div>
<% else %>
  <div class="h-full overflow-x-hidden">
    <%= lookbook_render "params/editor", inputs: Lookbook::Engine.inputs do |editor| %>
      <% preview.params.each do |param| %>
        <% editor.field **param, value: params[param[:name]] %>
      <% end %>
    <% end %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lookbook-1.2.1 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.2.0 app/views/lookbook/previews/panels/_params.html.erb