Skip to content

Instantly share code, notes, and snippets.

@craigderington
Created July 14, 2016 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigderington/992edb4837dd0d7ff98aadc4eaea7b87 to your computer and use it in GitHub Desktop.
Save craigderington/992edb4837dd0d7ff98aadc4eaea7b87 to your computer and use it in GitHub Desktop.
Customer List Filtered Table View Form Helper
class CustomerListFormHelper(FormHelper):
form_id = 'customer-search-form'
form_class = 'form-inline'
field_template = 'bootstrap3/layout/inline_field.html'
field_class = 'col-xs-3'
label_class = 'col-xs-3'
form_show_errors = True
help_text_inline = False
html5_required = True
layout = Layout(
Fieldset(
'<i class="fa fa-search"></i> Search Customer Records',
InlineField('dealer_account_number'),
InlineField('customer_last_name'),
InlineField('customer_first_name'),
InlineField('primary_phone'),
),
FormActions(
StrictButton(
'<i class="fa fa-search"></i> Search',
type='submit',
css_class='btn-primary',
style='margin-top:10px;')
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment