Set border to avatar images

We use circle for individuals and rounded for group like companies.
This commit is contained in:
Cédric Krier
2023-01-15 15:16:14 +01:00
parent 8afe6df925
commit 6f8a705fbb
9 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -3,6 +3,6 @@
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//field[@name='party']" position="inside">
<prefix id="avatar" icon="avatar_url" icon_type="url" url_size="s"/>
<prefix id="avatar" icon="avatar_url" icon_type="url" url_size="s" border="rounded"/>
</xpath>
</data>
+1 -1
View File
@@ -3,6 +3,6 @@
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//field[@name='party']" position="inside">
<prefix id="avatar" icon="avatar_url" icon_type="url" url_size="s"/>
<prefix id="avatar" icon="avatar_url" icon_type="url" url_size="s" border="circle"/>
</xpath>
</data>
+1 -1
View File
@@ -3,6 +3,6 @@
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//group[@id='header']" position="after">
<field name="avatar" widget="image" height="100" width="100" xexpand="0"/>
<field name="avatar" widget="image" height="100" width="100" xexpand="0" border="circle"/>
</xpath>
</data>
+1 -1
View File
@@ -3,6 +3,6 @@
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//field[@name='name']" position="inside">
<prefix id="avatar" icon="avatar_url" icon_type="url" url_size="s"/>
<prefix id="avatar" icon="avatar_url" icon_type="url" url_size="s" border="circle"/>
</xpath>
</data>
+1 -1
View File
@@ -12,7 +12,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="email" widget="email"/>
<newline/>
</group>
<field name="avatar" widget="image" height="100" width="100" xexpand="0"/>
<field name="avatar" widget="image" height="100" width="100" xexpand="0" border="circle"/>
<label name="password"/>
<field name="password" widget="password"/>
+4 -2
View File
@@ -2,9 +2,11 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="party" expand="2"/>
<field name="email" expand="1"/>
<field name="email" expand="1">
<prefix id="avatar" icon="avatar_url" icon_type="url" url_size="s" border="circle"/>
</field>
<field name="email_valid"/>
<field name="party" expand="2"/>
<button name="validate_email" string="Validate E-mail"/>
<button name="reset_password" string="Reset Password"/>
</tree>
+1 -1
View File
@@ -17,7 +17,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="password" widget="password"/>
<button name="reset_password" colspan="2" />
</group>
<field name="avatar" widget="image" height="100" width="100" xexpand="0"/>
<field name="avatar" widget="image" height="100" width="100" xexpand="0" border="circle"/>
<notebook colspan="4">
<page string="User" id="user">
<separator name="signature" colspan="4"/>
@@ -12,7 +12,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="password"/>
<field name="password" widget="password"/>
</group>
<field name="avatar" widget="image" height="100" width="100" xexpand="0"/>
<field name="avatar" widget="image" height="100" width="100" xexpand="0" border="circle"/>
<notebook colspan="4">
<page string="User" id="user">
<separator name="signature" colspan="4"/>
+1 -1
View File
@@ -3,7 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="name" expand="2">
<prefix id="avatar" icon="avatar_url" icon_type="url" url_size="s"/>
<prefix id="avatar" icon="avatar_url" icon_type="url" url_size="s" border="circle"/>
</field>
<field name="login" expand="1"/>
<field name="sessions"/>