Skip to content
Snippets Groups Projects
Commit 23ae0821 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Fix template location and expand length of field

parent c822ebcc
No related branches found
No related tags found
No related merge requests found
Pipeline #33533 passed
# Generated by Django 3.1.4 on 2022-07-21 13:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lofardata', '0002_defines_dataproduct'),
]
operations = [
migrations.AlterField(
model_name='dataproductfilter',
name='field',
field=models.CharField(max_length=100),
),
]
......@@ -63,6 +63,6 @@ class DataProduct(models.Model):
class DataProductFilter(models.Model):
field = models.CharField(max_length=20)
field = models.CharField(max_length=100)
name = models.CharField(max_length=20)
lookup_type = models.CharField(max_length=100)
{% extends 'lofardata/base.html' %}
{% extends 'lofardata/../base.html' %}
{% load static %}
{% block myBlock %}
......
{% extends 'lofardata/../base.html' %}
{% load static %}
{% block myBlock %}
{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}
{% if next %}
{% if user.is_authenticated %}
<p>Your account doesn't have access to this page. To proceed,
please login with an account that has access.</p>
{% else %}
<p>Please login to see this page.</p>
{% endif %}
{% endif %}
<form class="form-signin" action="{% url 'login' %}" method="post" id="login-form">
{% csrf_token %}
<h2 class="form-signin-heading">{{ message }}</h2>
<label for="id_username" class="sr-only">Email address</label>
<input type="text" name="username" id="id_username" class="form-control" placeholder="User Name" required autofocus>
<label for="id_password" class="sr-only">Password</label>
<input type="password" name="password" id="id_password" class="form-control" placeholder="Password" required>
<div class="checkbox">
<label>
<input type="checkbox" value="remember-me"> Remember me
</label>
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
</form>
{% endblock %}
\ No newline at end of file
......@@ -23,7 +23,5 @@ urlpatterns = [
version="0.0.1"
), name='openapi-schema'),
# GUI
#path('', views.IndexView.as_view(), name='index'),
path('', views.index, name='index'),
]
\ No newline at end of file
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment