Permalink
Commits on Aug 9, 2012
Commits on Aug 6, 2012
  1. Fixing helper attributes access from a Django template

    maraujop committed Aug 6, 2012
    This was breaking attrs feature from #GH-48
  2. Adding form attributes to the template context

    maraujop committed Aug 6, 2012
    Adding `form_action`, `form_id` and `form_class` for backwards
    compatibility. Also you can now access your form attributes from {{
    form_attrs.attribute }} or {{ formset_attrs.attribute }}.
Commits on Aug 5, 2012
  1. Adding an `html5_required` helper attribute

    maraujop committed Aug 5, 2012
    It's a boolean that controls whether to add an HTML5 `required`
    attribute to the required inputs.
    
    This controls functionality provided in #GH-72
    
    Refactored test case a little bit
  2. Simplifying Meta fields usage

    maraujop committed Aug 5, 2012
    When we have an instance of a form that has a Meta class, by the time we
    manage it, Django has done the job of selecting which fields the user
    wants, so `form.fields` is actually what the user wants to render.
    
    Refactoring test for this case a little bit.
  3. Removing extra blank lines

    maraujop committed Aug 5, 2012
  4. Adding an `attrs` attribute to FormHelper

    maraujop committed Aug 5, 2012
    We can use this for setting any form attribute we need. This solves #GH-48.
    
        form.helper.attrs = {'id': 'special-form', 'autocomplete': 'off'}
    
    FormHelper has been refactored to encapsulate `form_id`, `form_class`
    and `form_action` in an `attrs` dictionary, which is flattened and
    passed to `BasicNode.get_response_dict` as `flat_attrs`. This is
    rendered in the templates using |safe.
    
    * `get_response_dict` has been refactored a little bit
    * When no helper is provided, an empty one is created for handling
    defaults in a easier way. Before they were hardcoded in the templates.
    * `form_id`, `form_class` and `form_action` are no longer provided in
    the template's context.
    * Updating tests to work with uni_form TEMPLATE PACK. Adding a test for
    `FormHelper.attrs`.
  5. Redoing testing structure for testing all TEMPLATE PACKS

    maraujop committed Aug 5, 2012
    There are now runners for bootstrap and uni_form TEMPLATE PACKS. Each
    one with its settings. runtests script continues to run all tests in the
    system, which have now doubled.
  6. Adding @lmoppert to CONTRIBUTORS

    maraujop committed Aug 5, 2012
Commits on Aug 4, 2012
  1. Respecting form_show_errors in some bootstrap templates

    maraujop committed Aug 4, 2012
    AppendedText, PrependedText and AppendedPrependedText were rendering
    errors when form_show_errors attribute was set to False.
    
    This fixes #GH-77, thanks to @lmoppert for notifiying it and proposing a
    patch.
  2. Fixing a bug in render_crispy_form when helper is None

    maraujop committed Aug 4, 2012
    Avoid giving CrispyNone a helper variable that cannot extract from
    the context provided.
    
    Otherwise if form has a helper attached as `helper` attribute
    and helper argument is not passed, helper wouldn't be used.
Commits on Aug 2, 2012
  1. Added a __version__ string to root's __init__

    maraujop committed Aug 2, 2012
    This should fix issue #GH-76
  2. Working on the docs for version 1.2.0

    maraujop committed Aug 2, 2012
    * Adding a section about dynamic layouts
    * Reorganizing docs structure a little bit
Commits on Jul 29, 2012
  1. Adding a render_crispy_form function to utils

    maraujop committed Jul 29, 2012
    Useful for rendering a form the crispy way in a Django view or in Python
    code. See #GH-64
  2. Adding a space after buttons

    maraujop committed Jul 29, 2012
    This should fix cosmetic issue #GH-62 using HTML, as bootstrap doesn't
    now have CSS spacing by default.
  3. Merge branch 'dev' of git://github.com/phoolish/django-crispy-forms i…

    maraujop committed Jul 29, 2012
    …nto dev
    
    Conflicts:
    	crispy_forms/layout.py
Commits on Jul 25, 2012
  1. Fix typo.

    pjdelport committed Jul 25, 2012
Commits on Jul 18, 2012
  1. updated doc example

    Lloyd Philbrook
    Lloyd Philbrook committed Jul 18, 2012
  2. Merge branch 'add_attr_to_multifield_fieldset' into dev

    Lloyd Philbrook
    Lloyd Philbrook committed Jul 18, 2012