Sha256: 3b6d1abfdc8fdbf2314972098d99f447a7cf5f0d74b3809ee02cf053e155adb1

Contents?: true

Size: 449 Bytes

Versions: 5

Compression:

Stored size: 449 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lookbook-1.0.0.beta.5 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.0.beta.4 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.0.beta.3 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.0.beta.2 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.0.beta.1 app/views/lookbook/previews/panels/_params.html.erb