forked from uncloud/uncloud
Fix login -> move to bootstrap5
This commit is contained in:
parent
485f08e25c
commit
d872357dd1
3 changed files with 21 additions and 13 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -2,4 +2,4 @@ from django.apps import AppConfig
|
|||
|
||||
|
||||
class UngleichServiceConfig(AppConfig):
|
||||
name = 'ungleich_service'
|
||||
name = 'uncloud_service'
|
||||
|
|
Loading…
Reference in a new issue