Sha256: 92e29098d2926f73b7aa9278564687bf4b5cbbf3296e933c4be1b287b46ff9da

Contents?: true

Size: 466 Bytes

Versions: 11

Compression:

Stored size: 466 Bytes

Contents

<%# Buttons for blocks need to be aware of whether the underlying block is publishable or not. %>
<%= button_menu location do %>
    <% if @block.class.publishable? %>
    <%= f.button :publish, location: location %>
    <% else %>
    <%= f.button :save, location: location %>
    <% end %>

    <div class="btn-group right">
      <%= cancel_button location %>
      <%= f.button :save_draft, location: location if @block.class.publishable? %>
    </div>
<% end %>

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.4 app/views/cms/content_block/_buttons.html.erb
browsercms-artirix-4.0.3.3 app/views/cms/content_block/_buttons.html.erb
browsercms-artirix-4.0.3.2 app/views/cms/content_block/_buttons.html.erb
browsercms-artirix-4.0.3.1 app/views/cms/content_block/_buttons.html.erb
browsercms-artirix-4.0.3 app/views/cms/content_block/_buttons.html.erb
browsercms-artirix-4.0.2 app/views/cms/content_block/_buttons.html.erb
browsercms-artirix-4.0.1.1 app/views/cms/content_block/_buttons.html.erb
browsercms-artirix-4.0.0.rc1.art4 app/views/cms/content_block/_buttons.html.erb
browsercms-4.0.0.rc1 app/views/cms/content_block/_buttons.html.erb
browsercms-4.0.0.beta app/views/cms/content_block/_buttons.html.erb
browsercms-4.0.0.alpha app/views/cms/content_block/_buttons.html.erb