Correctly format all templates

This commit is contained in:
Mark Veidemanis 2022-08-09 07:20:30 +01:00
parent 220a4e2451
commit 56f2c96b45
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 10 additions and 19 deletions

View File

@ -1,6 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load static %} {% load static %}
{% load hy %}
{% block content %} {% block content %}
<script src="{% static 'js/chart.js' %}"></script> <script src="{% static 'js/chart.js' %}"></script>
<script> <script>
@ -105,7 +104,7 @@
<div class="column is-3"> <div class="column is-3">
<div class="nowrap-parent"> <div class="nowrap-parent">
<div <div
{{ hy }} = "on click toggle .is-hidden on #options" data-script="on click toggle .is-hidden on #options"
class="button is-light has-text-link is-right nowrap-child"> class="button is-light has-text-link is-right nowrap-child">
Options Options
</div> </div>
@ -203,7 +202,7 @@
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" name="check-sentiment" <input type="checkbox" name="check-sentiment"
_="on click toggle @disabled on #sliderWithValue then toggle @disabled on #sentiment"> data-script="on click toggle @disabled on #sliderWithValue then toggle @disabled on #sentiment">
Check sentiment Check sentiment
</label> </label>
</div> </div>

View File

@ -1,8 +0,0 @@
from django import template
register = template.Library()
# Dirty hack to workaround curlylint not allowing _
@register.filter
def hy(user, plan_name):
return "_"