同じ行にボタンがあるブートストラップ PrependedText フィールドが必要です。同じ行で取得できますが、テキストボックスの前にボタンが表示され、後で必要です。何が間違っているのか、ボックスの後ろ (テキスト フィールドの右側) に表示するにはどうすればよいですか?
serial = forms.CharField(forms.TextInput(attrs={'autocomplete':'off',}))
serial.label = ''
helper = FormHelper()
helper.form_class = 'form-horizontal'
helper.form_action = 'checkout'
helper.form_method = 'post'
helper.layout = Layout(
HTML("<p class='alert-info'>Please scan the items barcode or enter the serial # in the field below.</p>"),
Div(
Div(PrependedText('serial', 'Serial #',css_class='input-xlarge'), css_class='span1'),
Div(Submit('submit','Submit', css_class='btn-primary'), css_class='span1'),
css_class='row-fluid'
)
)