Sha256: d1d74631ec4ccbc401d9698883b57d29d02dcedd640fa9ea701d8a59753a2ff8

Contents?: true

Size: 425 Bytes

Versions: 135

Compression:

Stored size: 425 Bytes

Contents

<% model ||= form.object %>
<% count ||= 1 %>
<% color ||= "red" %>
<% cancel_path ||= nil %>

<% if model.persisted? || current_limits.can?(:create, model.class, count: count) %>
  <%= yield %>
<% else %>
  <%= render "shared/limits/error", action: :create, model: model.class, count: count, color: color, cancel_path: cancel_path %>

  <fieldset class="form-wrapper pt-2" disabled>
    <%= yield %>
  </fieldset>
<% end %>

Version data entries

135 entries across 135 versions & 1 rubygems

Version Path
bullet_train-themes-tailwind_css-1.6.35 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.34 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.33 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.32 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.31 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.30 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.29 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.28 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.27 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.26 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.25 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.24 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.23 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.22 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.21 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.20 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.19 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.18 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.17 app/views/themes/tailwind_css/limits/_form.html.erb
bullet_train-themes-tailwind_css-1.6.16 app/views/themes/tailwind_css/limits/_form.html.erb