Commit d4a956f4 authored by John Kirkwood's avatar John Kirkwood

Add params to docs.

parent e6d0503b
Pipeline #4257 failed with stage
in 43 seconds
......@@ -9,9 +9,9 @@ def Csrf(props=[], children=[]):
Need to store the request in threading.local() as we don't have a access
to template context processor variables.
django-threadlocals is only updated to Django <1.10 on PyPI.
django-tools has many features that are not needed.
Adapted django-tools CSRF middleware feature in chp.django.threadlocals.
`django-threadlocals` is only updated to Django <1.10 on PyPI.
`django-tools` has many features that are not needed.
Adapted `django-tools` CSRF middleware feature in `chp.django.threadlocals`.
:param list props: Key/value properties for the element.
:param list children: An AST of child elements to include.
......
{% load static %}
<html>
<head>
<link rel="shortcut icon" type="image/png"
href="{% static "favicon.ico" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "output.css" %}" />
</head>
<body>
......@@ -66,11 +68,15 @@
<label for="select-input" class="mdc-floating-label">Pick a Food Group</label>
<div class="mdc-line-ripple"></div>
</div>
</div>
</div>
</div> <!-- class="mdc_layout_grid__cell" -->
<div class="mdc-button">
<button form="form-mdc" type="submit">Submit</button>
</div>
</div> <!-- div style="display: flex;" -->
</form>
<form class="mui-form" id="form-mui" method="POST">
......@@ -117,7 +123,7 @@
</div>
<div>
<button class="mui-btn mui-btn--primary" form="form-mdc" type="submit">Submit</button>
<button class="mui-btn mui-btn--primary" form="form-mui" type="submit">Submit</button>
</div>
</div> <!-- class="mui-row" -->
......
......@@ -125,7 +125,7 @@ class Factory:
@staticmethod
def help_text(field):
"""Return an AST of the help_text for the field 1using MDC components.
"""Return an AST of the help_text for the field using MDC components.
:param ~django.forms.BoundField field: The field being rendered.
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment