github.com/segakazzz/buffalo@v0.16.22-0.20210119082501-1f52048d3feb/genny/resource/_fixtures/nested/templates/admin/widgets/index.plush.html (about)

     1  <div class="py-4 mb-2">
     2    <h3 class="d-inline-block">Widgets</h3>
     3    <div class="float-right">
     4      <%= linkTo(newAdminWidgetsPath(), {class: "btn btn-primary"}) { %>
     5        Create New Widget
     6      <% } %>
     7    </div>
     8  </div>
     9  
    10  <table class="table table-hover table-bordered">
    11    <thead class="thead-light">
    12      <th>Name</th>
    13      <th>&nbsp;</th>
    14    </thead>
    15    <tbody>
    16      <%= for (widget) in widgets { %>
    17        <tr>
    18          <td class="align-middle"><%= widget.Name %></td>
    19          <td>
    20            <div class="float-right">
    21              <%= linkTo(adminWidgetPath({ admin_widget_id: widget.ID }), {class: "btn btn-info", body: "View"}) %>
    22              <%= linkTo(editAdminWidgetPath({ admin_widget_id: widget.ID }), {class: "btn btn-warning", body: "Edit"}) %>
    23              <%= linkTo(adminWidgetPath({ admin_widget_id: widget.ID }), {class: "btn btn-danger", "data-method": "DELETE", "data-confirm": "Are you sure?", body: "Destroy"}) %>
    24            </div>
    25          </td>
    26        </tr>
    27      <% } %>
    28    </tbody>
    29  </table>
    30  
    31  <div class="text-center">
    32    <%= paginator(pagination) %>
    33  </div>