Django Bootstrap form field won't resize -
i using bootstrap display django forms having trouble getting them resize. 1 of forms text input area , want span of panel width. i've tried multiple things haven't been able resize it/make input area bigger.
the html:
<div class="container-fluid"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="text-center"> raw sql query </h4> </div> <form action="/interfaceapp/table_search/" method="post" class="form"> {% csrf_token %} <div class="panel-body text-center"> {% bootstrap_form rawsql %} </br> <div class="container-fluid"> <button type="submit" class="btn btn-primary center-block" value="submit" name="rawsql"> {% bootstrap_icon "fire" %} submit </button> </div> </div> </form> </div>
the form:
class textfieldform(forms.form): def __init__(self,*args,**kwargs): section_label = kwargs.pop('section_label') initial_value = kwargs.pop('initial_value') required_val = kwargs.pop('required') super(textfieldform,self).__init__(*args,**kwargs) self.fields['text'].label=mark_safe(section_label) self.fields['text'].initial=initial_value self.fields['text'].required=required_val text = forms.charfield()
right looks this:
can me making input area wider??
have @ grid system , form control sizing.
Comments
Post a Comment