|
| 1 | +<% content_for :title, "Regions" %> |
| 2 | + |
| 3 | +<section class="section"> |
| 4 | + <div class="row" id="table-striped"> |
| 5 | + <div class="col-12 cold-md-12"> |
| 6 | + <div class="card"> |
| 7 | + <div class="card-header d-flex justify-content-between align-items-center"> |
| 8 | + <h2>Providers</h2> |
| 9 | + <%= link_to new_provider_path, class: "btn btn-primary" do %> |
| 10 | + <i class="bi bi-plus"></i> Add New Provider |
| 11 | + <% end %> |
| 12 | + </div> |
| 13 | + <div class="card-content"> |
| 14 | + <div class="card-body"> |
| 15 | + <p class="card-text"> |
| 16 | + Lorem ipsum dolor sit amet, <code>consectetur adipiscing</code> elit. Sed do eiusmod tempor incididunt ut |
| 17 | + labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut |
| 18 | + aliquip |
| 19 | + ex ea commodo consequat. Duis aute irure dolor in <code>reprehenderit</code> in voluptate velit esse |
| 20 | + cillum dolore eu fugiat nulla |
| 21 | + pariatur. Excepteur sint <code>occaecat cupidatat</code> non proident, sunt in culpa qui officia deserunt |
| 22 | + mollit anim id est |
| 23 | + laborum. |
| 24 | + </p> |
| 25 | + <!-- table striped --> |
| 26 | + <div class="table-responsive"> |
| 27 | + <table class="table table-lg table-striped mb-0"> |
| 28 | + <thead> |
| 29 | + <tr> |
| 30 | + <th>Provider</th> |
| 31 | + <th>Type</th> |
| 32 | + <th class="text-end">Provider Actions</th> |
| 33 | + </tr> |
| 34 | + </thead> |
| 35 | + <tbody> |
| 36 | + <% @providers.each do |provider| %> |
| 37 | + <tr> |
| 38 | + <td class="text-bold-500"><%= provider.name %></td> |
| 39 | + <td><%= provider.provider_type %></td> |
| 40 | + <td class="text-end"> |
| 41 | + <%= link_to provider, class: "btn btn-primary btn-sm" do %> |
| 42 | + <i class="bi bi-search"></i> View |
| 43 | + <% end %> |
| 44 | + <%= link_to edit_provider_path(provider), class: "btn btn-secondary btn-sm" do %> |
| 45 | + <i class="bi bi-pencil"></i> Edit |
| 46 | + <% end %> |
| 47 | + <%= link_to provider, method: :delete, data: { confirm: "Are you sure?" }, class: "btn btn-danger btn-sm" do %> |
| 48 | + <i class="bi bi-trash"></i> Delete |
| 49 | + <% end %> |
| 50 | + </td> |
| 51 | + </tr> |
| 52 | + <% end %> |
| 53 | + </tbody> |
| 54 | + </table> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + </div> |
| 58 | + </div> |
| 59 | + </div> |
| 60 | + </div> |
| 61 | +</section> |
0 commit comments