python - django-crispy Submit css_class -
i'm using django-crispy render forms project , i'm using bootstrap css framework. have next coding
self.helper.layout = layout( fieldset( '', 'username', 'password', ), buttonholder( submit('signin', 'sign in', css_class='btn btn-default') ) )
but in html rendered as
<div class="buttonholder"><input type="submit" name="signin" value="sign in" class="btn btn-primary btn btn-default" id="submit-id-signin"/></div>
note class "btn btn-primary btn btn-default" when want "btn btn-default"
any ideas why happening? thanks
try this:
buttonholder( submit('signin', 'sign in'), css_class='btn btn-link' )
python django twitter-bootstrap
No comments:
Post a Comment