如何在行中呈现Django表单集

时间:2020-01-21 15:24:43

标签: django django-templates django-views django-template-filters

我想将Django表单集中的每个表单渲染成每行x个表单。例如,如果表单集有5个表单要显示,我希望第一行有两个表单,第二行有两个表单,第三行有最后一个表单。请记住,我要指定每行表格的最大数量。到目前为止,这就是我所拥有的:

<com.google.android.material.bottomnavigation.BottomNavigationView
        android:id="@+id/bottom_navigation"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:elevation="0dp"
        app:menu="@menu/navigation"/>

0 个答案:

没有答案
相关问题