Skip to content

Commit

Permalink
[IMP] website_apps_store: improved download button (OCA#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarolar authored and Ernesto Tejeda committed Aug 16, 2021
1 parent 6af74f5 commit d9efe70
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
3 changes: 2 additions & 1 deletion website_apps_store/i18n/website_apps_store.pot
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ msgstr ""

#. module: website_apps_store
#: model:ir.ui.view,arch_db:website_apps_store.product
msgid "Download"
msgid "Download \n"
" <span class=\"fa fa-download\"/>"
msgstr ""

#. module: website_apps_store
Expand Down
11 changes: 0 additions & 11 deletions website_apps_store/static/src/css/style.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
.padd_0{
padding: 0;
}
.zip_button{
margin-top: 8px;
margin-bottom: 8px;
border: 1px solid #2976b6;
padding: 10px;
border-radius: 7px;
text-align: center;
font-weight: 600;
color: black;
background-color: #337ab4;
}
.font_12{
font-size: 12px;
}
9 changes: 7 additions & 2 deletions website_apps_store/views/templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,13 @@
</xpath>
<xpath expr='//form[hasclass("js_add_cart_variants")]' position="after">
<div class="col-xs-12 padd_0" t-if="product.odoo_module_id">
<div class="col-xs-4 zip_button">
<button name="download_zip" id="download_zip" t-att-data-tmpl-id="product.id">Download</button>
<div class="col-xs-4 mt16 mb16">
<button class="btn btn-primary btn-lg"
name="download_zip"
id="download_zip"
t-att-data-tmpl-id="product.id">Download
<span class="fa fa-download"/>
</button>
</div>
</div>
<div class="col-xs-12 padd_0" t-if="product.odoo_module_id">
Expand Down

0 comments on commit d9efe70

Please sign in to comment.