Fix login -> move to bootstrap5

This commit is contained in:
Nico Schottelius 2021-05-25 20:22:18 +02:00
parent 485f08e25c
commit d872357dd1
3 changed files with 21 additions and 13 deletions

View file

@ -1,14 +1,19 @@
{% extends 'uncloud/base.html' %}
{% load bootstrap4 %}
{% load bootstrap5 %}
{% block body %}
<h1>Login to uncloud</h1>
<form method="post" class="form">
{% csrf_token %}
{% bootstrap_form form %}
{% buttons %}
<button type="submit" class="btn btn-primary">Submit</button>
{% endbuttons %}
</form>
{% block bootstrap5_content %}
<div class="container">
<div id="content">
<h1>Login to uncloud</h1>
<form method="post" class="form">
{% csrf_token %}
{% bootstrap_form form %}
{% buttons %}
<button type="submit" class="btn btn-primary">Submit</button>
{% endbuttons %}
</form>
</div>
</div>
{% endblock %}

View file

@ -13,12 +13,15 @@
By submitting I authorise to send instructions to
the financial institution that issued my card to take
payments from my card account in accordance with the
terms of my agreement with you.
terms of my agreement with you.
</p>
<span id="message"></span>
<div id="card-element"></div>
<div id="card-errors" role="alert"></div>
<button type='button' id="card-button">Save</button>
<div id="ungleichmessage">The card will be registered with stripe.</div>
<div id="goback" style="display: none;">
@ -30,8 +33,8 @@
<!-- Enable Stripe from UI elements - standard code -->
<script>
var stripe = Stripe('{{ stripe_pk }}');
var elements = stripe.elements();
var cardElement = elements.create('card');
cardElement.mount('#card-element');

View file

@ -2,4 +2,4 @@ from django.apps import AppConfig
class UngleichServiceConfig(AppConfig):
name = 'ungleich_service'
name = 'uncloud_service'