Sha256: 600ceae4d5fe032b435c1fbb405e62a17fa3887c3f7665e896c156f0afbb2328

Contents?: true

Size: 1021 Bytes

Versions: 1

Compression:

Stored size: 1021 Bytes

Contents

<div class="btn-group pull-right" role="group" aria-label="Button group">
  <% if member_action? || new_action? %>
    <%= link_to(Archangel.t(:back), backend_widgets_path, class: "btn btn-link", role: "button") %>
  <% end %>

  <% if collection_action? || show_action? || edit_action? %>
    <%= link_to(Archangel.t(:new), new_backend_widget_path, class: "btn btn-link", role: "button") %>
  <% end %>

  <% if show_action? %>
    <%= link_to(Archangel.t(:edit), edit_backend_widget_path(@widget), class: "btn btn-link", role: "button") %>
  <% end %>

  <% if show_action? || edit_action? %>
    <%= link_to(Archangel.t(:destroy), backend_widget_path(@widget), class: "btn btn-link d-none d-md-inline-block",
                                                                     role: "button",
                                                                     method: :delete,
                                                                     data: { confirm: Archangel.t(:are_you_sure) }) %>
  <% end %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 app/views/archangel/backend/widgets/_buttons.html.erb