This commit is contained in:
Xavier Fiechter 2023-02-02 23:53:22 +01:00
parent 94752c2bf3
commit b52dd7b786
3 changed files with 13 additions and 64 deletions

View file

@ -6,7 +6,7 @@ from django.urls import include, path
from two_factor.urls import urlpatterns as tf_urls
from .views import (
ExampleSecretView, HomeView, RegistrationCompleteView, RegistrationView,
ExampleSecretView, LabelbaseView, HomeView, RegistrationCompleteView, RegistrationView,
)
urlpatterns = [
@ -15,6 +15,13 @@ urlpatterns = [
HomeView.as_view(),
name='home',
),
path(
'',
LabelbaseView.as_view(),
name='labelbase',
),
path(
'account/logout/',
LogoutView.as_view(),

View file

@ -12,6 +12,10 @@ class HomeView(TemplateView):
template_name = 'home.html'
class LabelbaseView(TemplateView):
template_name = 'labelbase.html'
class RegistrationView(FormView):
template_name = 'registration.html'
form_class = UserCreationForm

View file

@ -272,66 +272,6 @@ body {
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
<div class="table-responsive" style="padding-top:1em" >
<table id="bip329labels" class="table table-striped table-sm">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">type</th>
<th scope="col">ref</th>
<th scope="col">label</th>
</tr>
</thead>
<tbody>
<tr>
<td>1,001</td>
<td>tx</td>
<td>f91d0a8a78462bc59398f2c5d7a84fcff491c26ba54c4833478b202796c8aafd</td>
<td>Transaction</td>
</tr>
<tr>
<td>1,001</td>
<td>addr</td>
<td>bc1q34aq5drpuwy3wgl9lhup9892qp6svr8ldzyy7c</td>
<td>Address</td>
</tr>
<tr>
<td>1,001</td>
<td>input</td>
<td>0283409659355b6d1cc3c32decd5d561abaac86c37a353b52895a5e6c196d6f448</td>
<td>placeholder</td>
</tr><tr>
<td>1,001</td>
<td>random</td>
<td>f91d0a8a78462bc59398f2c5d7a84fcff491c26ba54c4833478b202796c8aafd</td>
<td>placeholder</td>
</tr><tr>
<td>1,001</td>
<td>output</td>
<td>f91d0a8a78462bc59398f2c5d7a84fcff491c26ba54c4833478b202796c8aafd</td>
<td>placeholder</td>
</tr><tr>
<td>1,001</td>
<td>xpub</td>
<td>xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8</td>
<td>Extended Public Key</td>
</tr>
</tbody>
</table>
</div>
{% include "_messages.html" %}
{% block content %}{% endblock %}
</main>
@ -363,9 +303,7 @@ body {
})()
$(document).ready(function () {
$('#bip329labels').DataTable();
});
</script>
<!--
https://datatables.net/examples/styling/bootstrap5.html