Commit e1883623 authored by Cédric Krier's avatar Cédric Krier
Browse files

Set border to avatar images

We use circle for individuals and rounded for group like companies.
parent d8dab7c10331
Pipeline #61476 passed with stages
in 19 minutes and 46 seconds
......@@ -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>
......@@ -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>
......@@ -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>
......@@ -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>
......@@ -12,7 +12,7 @@
<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"/>
......
......@@ -2,4 +2,8 @@
<!-- 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="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"/>
......@@ -5,6 +9,4 @@
<field name="party" expand="2"/>
<field name="email" expand="1"/>
<field name="email_valid"/>
<button name="validate_email" string="Validate E-mail"/>
<button name="reset_password" string="Reset Password"/>
</tree>
......@@ -17,7 +17,7 @@
<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 @@
<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"/>
......
......@@ -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"/>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment