Commit 039e9e69 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt

use new search style for group filter

parent f500d2cb
Pipeline #1203 failed with stage
in 4 seconds
......@@ -78,6 +78,9 @@ class LayoutMixin:
if hasattr(self, 'inline') and self.inline:
h.field_template = 'bootstrap3/layout/inline_field.html'
h.form_class = 'form-inline'
if hasattr(self, 'search') and
h.field_template = 'bootstrap3/layout/inline_field.html'
h.form_class = 'form-search'
return h
def get_layout(self):
from crispy_forms import layout
from django import forms
from django.contrib.contenttypes import models as contenttypes
......@@ -8,8 +9,11 @@ from . import models
class GroupFilter(core.forms.FormMixin, forms.Form):
name = forms.CharField()
inline = True
layout = ('name', core.forms.Submit('Gruppen filtern', field_classes='btn btn-default'))
search = True
layout = (
layout.Field('name', placeholder='z.B. Foodcoop'),
core.forms.Submit('Gruppen suchen', field_classes='btn btn-default')
method = 'GET'
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