[IMP] Adding placeholders to all oe_title (thanks xgrep), usability guidelines

This commit is contained in:
Fabien Pinckaers
2015-09-11 08:51:57 +02:00
parent 8b57d712a3
commit b568affe66
21 changed files with 28 additions and 31 deletions
+1 -5
View File
@@ -13,11 +13,7 @@
<sheet>
<group>
<group>
<div class="oe_title oe_inline" colspan="2">
<h1>
<field name="name" placeholder="name"/>
</h1>
</div>
<field name="name"/>
<field name="code" placeholder="code"/>
<field name="user_type_id" widget="selection"/>
<field name="tax_ids" widget="many2many_tags"/>
@@ -13,7 +13,7 @@
<div class="oe_title oe_inline">
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name"/>
<field name="name" placeholder="e.g. Computers"/>
</h1>
</div>
<group>
@@ -106,7 +106,7 @@
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name"/>
<field name="name" placeholder="e.g. Laptop iBook"/>
</h1>
</div>
<group>
@@ -76,7 +76,7 @@
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="name" attrs="{'readonly':[('state','!=','draft')]}" placeholder="Budget Name"/>
</h1>
</div>
<group>
+1 -1
View File
@@ -82,7 +82,7 @@
<div class="oe_title">
<label for="name"/>
<h1>
<field name="name" class="oe_inline"/>
<field name="name" class="oe_inline" placeholder="e.g. Project XYZ"/>
</h1>
</div>
<div name="project"/>
+2 -1
View File
@@ -79,11 +79,12 @@
<label for="name"/>
</div>
<h1>
<field name="name"/>
<field name="name" placeholder="e.g. Business Lunch"/>
</h1>
<label for="partner_ids" string="Attendees" class="oe_edit_only"/>
<h2>
<field name="partner_ids" widget="many2manyattendee"
placeholder="Select attendees..."
context="{'force_email':True}"
on_change="onchange_partner_ids(partner_ids)"
class="oe_inline"/>
@@ -58,7 +58,7 @@
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name"/>
<field name="name" placeholder="e.g. Gold Partner"/>
</h1>
</div>
<group>
+1 -1
View File
@@ -29,7 +29,7 @@
<div class="oe_title" name="title">
<label for="name" string="Name" class="oe_edit_only"/>
<h1>
<field name="name"/>
<field name="name" placeholder="e.g. USPS Express"/>
</h1>
<group name="company">
<field name="partner_id" class="oe_inline"/>
+4 -4
View File
@@ -10,11 +10,11 @@
<div class="oe_title">
<label for="modelname" class="oe_edit_only"/>
<h1>
<field name="name"/>
<field name="name" placeholder="e.g. Model S"/>
</h1>
<label for="brand_id" class="oe_edit_only"/>
<h2>
<field name="brand_id" on_change="on_change_brand(brand_id)"/>
<field name="brand_id" on_change="on_change_brand(brand_id)" placeholder="e.g. Tesla"/>
</h2>
</div>
<notebook>
@@ -236,11 +236,11 @@
<div class="oe_title">
<label for="model_id" class="oe_edit_only"/>
<h1>
<field name="model_id" on_change="on_change_model(model_id)"/>
<field name="model_id" on_change="on_change_model(model_id)" placeholder="e.g. Model S"/>
</h1>
<label for="license_plate" class="oe_edit_only"/>
<h2>
<field name="license_plate" class="oe_inline"/>
<field name="license_plate" class="oe_inline" placeholder="e.g. PAE 326"/>
</h2>
<label for="tag_ids" class="oe_edit_only"/>
<field name="tag_ids" widget="many2many_tags" />
+1 -1
View File
@@ -231,7 +231,7 @@
</div>
<div class="oe_title">
<label for="employee_id" class="oe_edit_only"/>
<h1><field name="employee_id" on_change="onchange_employee_id(date_from, date_to, employee_id, contract_id)"/></h1>
<h1><field name="employee_id" placeholder="Employee" on_change="onchange_employee_id(date_from, date_to, employee_id, contract_id)"/></h1>
</div>
<group col="4">
<label for="date_from" string="Period"/>
@@ -86,7 +86,7 @@
</div>
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>
<h1><field name="name" placeholder="Marketing Campaign"/></h1>
</div>
<group>
<group>
+1 -1
View File
@@ -272,7 +272,7 @@
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name" placeholder="Mailing List Name"/>
<field name="name" placeholder="e.g. Consumer Newsletter"/>
</h1>
<group>
<field name="popup_redirect_url"/>
+1 -1
View File
@@ -585,7 +585,7 @@
<sheet>
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>
<h1><field name="name" placeholder="Manufacturing Reference"/></h1>
</div>
<group>
<group>
+1 -1
View File
@@ -271,7 +271,7 @@
<form string="Procurement Rule">
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>
<h1><field name="name" placeholder="e.g. Buy"/></h1>
</div>
<group name="general">
<group>
+1 -1
View File
@@ -112,7 +112,7 @@
<sheet>
<div class="oe_title">
<h1>
<field name="name"/>
<field name="name" placeholder="e.g. USD Retailers"/>
</h1>
</div>
<group col="4">
+2 -2
View File
@@ -231,7 +231,7 @@
<field name="image_medium" widget="image" class="oe_avatar"/>
<div class="oe_title">
<label class="oe_edit_only" for="name" string="Product Name"/>
<h1><field name="name"/></h1>
<h1><field name="name" placeholder="e.g. Odoo Enterprise Susbcription"/></h1>
</div>
<group>
<p>All general settings about this product are managed on <button name="open_product_template" type="object" string="the product template" class="oe_link"/></p>
@@ -618,7 +618,7 @@
<div class="oe_title">
<label for="name" string="Category Name" class="oe_edit_only"/>
<h1>
<field name="name"/>
<field name="name" placeholder="e.g. Lamps"/>
</h1>
</div>
<group name="parent">
+1 -1
View File
@@ -195,7 +195,7 @@
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name"/>
<field name="name" placeholder="e.g. LOT/0001/20121/>
</h1>
</div>
<group name="main_group">
@@ -17,7 +17,7 @@
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name"/>
<field name="name" placeholder="Landed Cost Name"/>
</h1>
</div>
<group>
@@ -104,7 +104,7 @@
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name"/>
<field name="name" placeholder="e.g. Inspiring Business Talk"/>
</h1>
<label for="event_id" class="oe_edit_only"/>
<h3>
@@ -60,7 +60,7 @@
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name"/>
<field name="name" placeholder="Quotation Template"/>
</h1>
</div>
<group>
+1 -1
View File
@@ -270,7 +270,7 @@
</div>
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>
<h1><field name="name" placeholder="e.g. Update order quantity""/></h1>
</div>
<group>
<group>
+2 -2
View File
@@ -75,9 +75,9 @@
<sheet>
<field name="icon_image" widget="image" class="oe_avatar"/>
<div class="oe_title">
<h1><field name="shortdesc"/></h1>
<h1><field name="shortdesc" placeholder="Module Name"/></h1>
<h3 class="oe_fade">
By <field name="author" class="oe_inline"/>
By <field name="author" class="oe_inline" placeholder="Author Name"/>
</h3>
<div>
<button name="button_immediate_install" states="uninstalled" string="Install" type="object" class="btn btn-primary"/>