官术网_书友最值得收藏!

Using groups to organize forms

The <group> tag allows you to organize the form content. Placing <group> elements inside a <group> element creates a two-column layout inside the outer group. Group elements are advised to have a name attribute so that its easier for other modules to extend them.

We will use this to better organize our content. Let's change the <sheet> content of our form to match this:

<sheet> 
  <group name="group_top"> 
    <group name="group_left"> 
      <field name="name" />
<field name="user_id" /> <field name="is_done" />
</group> <group name="group_right"> <field name="date_deadline" /> <field name="team_ids" widget="many2many_tags" />
<field name="active" readonly="1" /> </group> </group> </sheet>
主站蜘蛛池模板: 盐池县| 安吉县| 佛坪县| 甘泉县| 丹棱县| 永平县| 炎陵县| 定远县| 景洪市| 德兴市| 静海县| 九寨沟县| 邹平县| 凉山| 石首市| 平原县| 屏山县| 阿合奇县| 陆良县| 绥江县| 罗城| 安图县| 望江县| 肃北| 新宾| 沭阳县| 上思县| 乐山市| 阿合奇县| 宣武区| 广元市| 荔波县| 泸水县| 凤翔县| 云龙县| 砚山县| 永昌县| 云浮市| 上高县| 南汇区| 伊宁市|