Sha256: 050ab5fa43599a1b4dc51ff48242673271583355dc4662893ba2d1f5ff9b7cfa

Contents?: true

Size: 562 Bytes

Versions: 8

Compression:

Stored size: 562 Bytes

Contents

<% if authorized?(:update_site_on, entry) %>
  <%= form.input(:site,
                 as: :searchable_select,
                 ajax: {
                   resource: Pageflow::Entry,
                   collection_name: :eligible_sites,
                   params: {
                     account_id: entry.account_id
                   }
                 },
                 include_blank: false,
                 wrapper_html: {
                   style: ('display: none' if site_policy_scope.sites_allowed_for(entry.account).one?)
                 }) %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/views/admin/entries/_site_input.html.erb
pageflow-17.0.3 app/views/admin/entries/_site_input.html.erb
pageflow-17.0.2 app/views/admin/entries/_site_input.html.erb
pageflow-17.0.1 app/views/admin/entries/_site_input.html.erb
pageflow-17.0.0 app/views/admin/entries/_site_input.html.erb
pageflow-16.2.0 app/views/admin/entries/_site_input.html.erb
pageflow-16.1.0 app/views/admin/entries/_site_input.html.erb
pageflow-16.0.0 app/views/admin/entries/_site_input.html.erb