-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(templates): update to bootstrap 5
Closes: #1529
- Loading branch information
Showing
10 changed files
with
52 additions
and
35 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
apis_core/apis_entities/templates/apis_entities/partials/entity_actions_nav.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apis_core/apis_entities/templates/apis_entities/partials/entity_base_nav.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,8 +50,7 @@ | |
<link rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.4/leaflet.css" /> | ||
<link rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
crossorigin="anonymous"> | ||
<link href="{% static 'css/override_bootstrap.min.css' %}" rel="stylesheet" /> | ||
<link href="{% static 'css/material-symbols.css' %}" rel="stylesheet" /> | ||
|
@@ -83,23 +82,22 @@ | |
|
||
<button class="navbar-toggler" | ||
type="button" | ||
data-toggle="collapse" | ||
data-target="#navbarNavDropdown" | ||
data-bs-toggle="collapse" | ||
data-bs-target="#navbarNavDropdown" | ||
aria-controls="navbarNavDropdown" | ||
aria-expanded="false" | ||
aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon" /> | ||
</button> | ||
<!-- Start main menu --> | ||
<div class="collapse navbar-collapse justify-content-end" | ||
id="navbarNavDropdown"> | ||
<ul id="main-menu" class="navbar-nav mr-auto"> | ||
<div class="collapse navbar-collapse" id="navbarNavDropdown"> | ||
<ul id="main-menu" class="navbar-nav me-auto"> | ||
|
||
{% block main-menu %} | ||
<li class="nav-item dropdown"> | ||
<a href="#" | ||
class="nav-link dropdown-toggle" | ||
data-toggle="dropdown" | ||
data-bs-toggle="dropdown" | ||
role="button" | ||
aria-haspopup="true" | ||
aria-expanded="false"> | ||
|
@@ -120,7 +118,7 @@ | |
<li class="nav-item dropdown"> | ||
<a href="#" | ||
class="nav-link dropdown-toggle" | ||
data-toggle="dropdown" | ||
data-bs-toggle="dropdown" | ||
role="button" | ||
aria-haspopup="true" | ||
aria-expanded="false">Relations | ||
|
@@ -147,7 +145,7 @@ | |
<li class="nav-item dropdown ml-auto"> | ||
<a href="" | ||
class="nav-link dropdown-toggle" | ||
data-toggle="dropdown" | ||
data-bs-toggle="dropdown" | ||
role="button" | ||
aria-haspopup="true" | ||
aria-expanded="false">User: {{ user.get_username }}</a> | ||
|
@@ -242,8 +240,7 @@ | |
{% endblock footer %} | ||
|
||
{% block scripts %} | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
crossorigin="anonymous"></script> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<script> | ||
|
22 changes: 10 additions & 12 deletions
22
apis_core/generic/templates/generic/generic_confirm_delete.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
{% extends basetemplate|default:"base.html" %} | ||
|
||
{% block content %} | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-body"> | ||
<form action="" method="post"> | ||
{% csrf_token %} | ||
<h4>Confirm deletion of:</h4> | ||
<div class="text-center"> | ||
<strong>{{ object }}</strong> | ||
</div> | ||
<input class="btn btn-danger" type="submit" value="Yes, delete" /> | ||
</form> | ||
</div> | ||
<div class="container"> | ||
<div class="text-center"> | ||
<form action="" method="post"> | ||
{% csrf_token %} | ||
<h4>Confirm deletion of:</h4> | ||
<h3> | ||
<strong>{{ object }}</strong> | ||
</h3> | ||
<input class="btn btn-danger" type="submit" value="Yes, delete" /> | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters