以下是form
看起来的样子:
尽管form
和Go
按钮距离太远,但我希望它位于dropdown menu
旁边。这是我使用django-bootstrap3
{% extends "base.html" %}
{% load bootstrap3 %}
{% bootstrap_css %}
{% bootstrap_javascript %}
{% block content %}
<div class="col-sm-offset-5 col-sm-10">
<form action="" method="post" role="form" class='form-inline col-sm-8'>
{% csrf_token %}
<div class="form-group">
</label class="sr-only" for="choices">Select to Edit</label>
</div>
{% bootstrap_field form.choices show_label=False %}
<button type="submit" class="btn btn-primary">
{% bootstrap_icon "star" %} Go
</button>
</div>
</form>
{% endblock %}