-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae8d03a
commit aa65305
Showing
9 changed files
with
162 additions
and
5 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 4.2 on 2023-05-18 11:51 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("versions", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="law", | ||
name="name", | ||
field=models.CharField(max_length=250), | ||
), | ||
] |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 4.2 on 2023-05-18 11:51 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("versions", "0002_alter_law_name"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="revision", | ||
name="name", | ||
field=models.CharField(max_length=251), | ||
), | ||
] |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% if not widget.disabled %} | ||
<br> {# to match the slider and the datalist #} | ||
<input name="{{ widget.name }}" {% include "django/forms/widgets/attrs.html" %} type="range" min="{{widget.min}}" max="{{widget.max}}" {% if widget.value %} value="{{widget.value}}" {%endif%} class="slider" list="{{widget.name}}_steplist"> | ||
<datalist id="{{widget.name}}_steplist"> | ||
{% for step in widget.steps %} | ||
<option value="{{ step.value }}" label="{{step.label}}"></option> | ||
{% endfor %} | ||
</datalist> | ||
{% endif %} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% extends 'versions/base.html' %} | ||
{% block content %} | ||
<style> | ||
datalist { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
writing-mode: vertical-lr; | ||
width: 200px; | ||
} | ||
</style> | ||
|
||
<div class="container"> | ||
<h1>Law comparison</h1> | ||
<h4>{{ law.name }}</h4> | ||
<div class="card mb-4 rounded-3 shadow-sm"> | ||
<div class="card-header py-3"> | ||
<form method="get"> | ||
{{ form.as_p }} | ||
<input type="submit" value="compare" /> | ||
</form> | ||
</div> | ||
<div class="card-body"> | ||
<div class="row" dir="rtl">{{ output | safe | linebreaks }}</div> | ||
</div> | ||
</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
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