Sha256: 55f794e23077a081f8d94175ddba1ddb3695bf1698a4d2a6feef101df1ae622d

Contents?: true

Size: 452 Bytes

Versions: 15

Compression:

Stored size: 452 Bytes

Contents

<% if preview.params.none? %>
  <div class="p-4 w-full h-full bg-lookbook-prose-bg">
    <%= 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

15 entries across 15 versions & 1 rubygems

Version Path
lookbook-1.0.8 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.7 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.6 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.5 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.4 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.3 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.2 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.1 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.0 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.0.rc.3 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.0.rc.2 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.0.rc.1 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.0.beta.8 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.0.beta.7 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.0.0.beta.6 app/views/lookbook/previews/panels/_params.html.erb