[minor] fix: translatable title, h1, button on product_search page. Address row in web view has translatable address type

This commit is contained in:
Robert Kirschner 2017-03-23 13:43:26 +01:00
parent db068ac6c4
commit b8f5148a44
2 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
<div class="col-xs-3">
<span class="indicator {{ "red" if doc.address_type=="Office" else "green" if doc.address_type=="Billing" else "blue" if doc.address_type=="Shipping" else "darkgrey" }}">{{ doc.address_title }}</span>
</div>
<div class="col-xs-2"> {{ doc.address_type }} </div>
<div class="col-xs-2"> {{ _(doc.address_type) }} </div>
<div class="col-xs-2"> {{ doc.city }} </div>
<div class="col-xs-5 text-right small text-muted">
{{ frappe.get_doc(doc).get_display() }}

View File

@ -1,8 +1,8 @@
{% extends "templates/web.html" %}
{% block title %} {{ "Product Search" }} {% endblock %}
{% block title %} {{ _("Product Search") }} {% endblock %}
{% block header %}<h2>Product Search</h2>{% endblock %}
{% block header %}<h2>{{ _("Product Search") }}</h2>{% endblock %}
{% block page_content %}
<script>{% include "templates/includes/product_list.js" %}</script>
@ -10,7 +10,7 @@
<script>
frappe.ready(function() {
var txt = get_url_arg("search");
$(".search-results").html("Search results for: " + txt);
$(".search-results").html("{{ _('Search results for') }}: " + txt);
window.search = txt;
window.start = 0;
window.get_product_list();
@ -18,14 +18,14 @@ frappe.ready(function() {
</script>
<div class="product-search-content">
<h3 class="search-results">Search Results</h3>
<h3 class="search-results">{{ _("Search Results") }}</h3>
<div id="search-list" class="row">
</div>
<div style="text-align: center;">
<div class="more-btn"
style="display: none; text-align: center;">
<button class="btn btn-default">More...</button>
<button class="btn btn-default">{{ _("More...") }}</button>
</div>
</div>
</div>