mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
init ooo18 from 16
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
<t>
|
||||
<t t-call="master_input" />
|
||||
<div class="row mb-3">
|
||||
<label for="dbname" class="col-md-4 col-form-label">Database Name</label>
|
||||
<div class="col-md-8">
|
||||
<input id="dbname" type="text" name="name" class="form-control" required="required" autocomplete="off" t-att-pattern="pattern" title="Only alphanumerical characters, underscore, hyphen and dot are allowed"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="login" class="col-md-4 col-form-label">Email</label>
|
||||
<div class="col-md-8">
|
||||
<input id="login" type="text" name="login" class="form-control" required="required" autocomplete="off"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="password" class="col-md-4 col-form-label">Password</label>
|
||||
<div class="col-md-8">
|
||||
<div class="input-group">
|
||||
<input id="password" type="password" name="password" class="form-control" required="required" autocomplete="off"/>
|
||||
<span class="fa fa-eye o_little_eye input-group-text" aria-hidden="true" style="cursor: pointer;"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="phone" class="col-md-4 col-form-label">Phone number</label>
|
||||
<div class="col-md-8">
|
||||
<input id="phone" type="tel" name="phone" class="form-control" autocomplete="off"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="lang" class="col-md-4 col-form-label">Language</label>
|
||||
<div class="col-md-8">
|
||||
<select id="lang" name="lang" class="form-select" required="required" autocomplete="off">
|
||||
<t t-foreach="langs" t-as="lang">
|
||||
<t t-if="lang[0] == 'zh_CN'">
|
||||
<option t-att-value="lang[0]" t-out="lang[1]" selected="selected"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<option t-att-value="lang[0]" t-out="lang[1]"/>
|
||||
</t>
|
||||
</t>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="country" class="col-md-4 col-form-label ">Country</label>
|
||||
<div class="col-md-8">
|
||||
<select id="country" name="country_code" class="form-select" autocomplete="off">
|
||||
<option value=""></option>
|
||||
<t t-foreach="countries" t-as="country">
|
||||
<t t-if="country[0] == 'cn'">
|
||||
<option t-att-value="country[0]" t-out="country[1]" selected="selected"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<option t-att-value="country[0]" t-out="country[1]"/>
|
||||
</t>
|
||||
</t>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="load_demo_checkbox" class="col-md-4 col-form-label">Demo data</label>
|
||||
<div class="col-md-8">
|
||||
<input type="checkbox" id="load_demo_checkbox" class="form-control-sm" name="demo" value="1" />
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
39
app_base_chinese/static/src/scss/app_style.scss
Normal file
39
app_base_chinese/static/src/scss/app_style.scss
Normal file
@@ -0,0 +1,39 @@
|
||||
//必须有 form ,故要特殊处理样式
|
||||
.o_form_view.o_form_nosheet.o_form_address_chinese, .o_form_view .o_form_nosheet.o_form_address_chinese {
|
||||
padding: 0 0 0 0;
|
||||
}
|
||||
.o_form_view .o_address_format.o_address_chinese {
|
||||
.o_address_country {
|
||||
display: -webkit-inline-flex;
|
||||
display: inline-flex;
|
||||
width: 38%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
}
|
||||
.o_form_view .o_address_format.o_address_chinese {
|
||||
.o_address_country {
|
||||
display: -webkit-inline-flex;
|
||||
display: inline-flex;
|
||||
width: 38%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
}
|
||||
|
||||
.o_form_view .o_form_editable .o_address_format.o_address_chinese {
|
||||
.o_address_zip{
|
||||
width: 38%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
.o_address_state {
|
||||
width: 38%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
.o_address_city{
|
||||
width: 38%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
.o_address_city_id{
|
||||
width: 38%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
}
|
||||
12
app_base_chinese/static/src/xml/views.xml
Normal file
12
app_base_chinese/static/src/xml/views.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<!--改search中英文-->
|
||||
<t t-extend="SearchPanel.Category">
|
||||
<t t-jquery="div.alert" t-operation="replace">
|
||||
<div t-if="category.limitAttained" class="alert alert-warning">
|
||||
<span>性能原因,只支持 200 条记录的显示</span>
|
||||
<span t-if="category.parentField">记录没有树状结构</span>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</templates>
|
||||
Reference in New Issue
Block a user