ASP Classic blog framework - BrainOrdure
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

49 linhas
1.7KB

  1. <div class="d-flex align-items-center justify-content-between mb-4">
  2. <div>
  3. <h1 class="h3 mb-1">Manage Categories</h1>
  4. <p class="text-muted mb-0">All categories &mdash; edit or delete.</p>
  5. </div>
  6. <a class="btn btn-primary" href="<%= CategoryNewUrl() %>">New Category</a>
  7. </div>
  8. <% If categories.Count = 0 Then %>
  9. <div class="alert alert-secondary">No categories yet. <a href="<%= CategoryNewUrl() %>">Create the first one.</a></div>
  10. <% Else %>
  11. <div class="table-responsive">
  12. <table class="table table-hover align-middle">
  13. <thead class="table-light">
  14. <tr>
  15. <th>Name</th>
  16. <th>Description</th>
  17. <th class="text-end">Actions</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <%
  22. Dim adminCatIter, adminCatItem
  23. Set adminCatIter = categories.Iterator()
  24. Do While adminCatIter.HasNext
  25. Set adminCatItem = adminCatIter.GetNext()
  26. %>
  27. <tr>
  28. <td>
  29. <a href="<%= CategoryUrl(adminCatItem.CategoryID) %>" class="text-decoration-none fw-semibold">
  30. <%= H(adminCatItem.Name) %>
  31. </a>
  32. </td>
  33. <td class="text-muted small"><%= H(adminCatItem.Description) %></td>
  34. <td class="text-end text-nowrap">
  35. <a class="btn btn-sm btn-outline-secondary" href="<%= CategoryEditUrl(adminCatItem.CategoryID) %>">Edit</a>
  36. <form class="d-inline" method="post" action="<%= CategoryDeleteUrl(adminCatItem.CategoryID) %>">
  37. <button class="btn btn-sm btn-outline-danger" type="submit" onclick="return confirm('Delete this category?')">Delete</button>
  38. </form>
  39. </td>
  40. </tr>
  41. <%
  42. Loop
  43. %>
  44. </tbody>
  45. </table>
  46. </div>
  47. <% End If %>

Powered by TurnKey Linux.