Browse Source

publish muk_web_theme - 12.0

pull/115/head
MuK IT GmbH 5 years ago
parent
commit
04f8565baf
  1. 2
      muk_web_theme/__manifest__.py
  2. BIN
      muk_web_theme/static/description/branding_mail_banner.png
  3. BIN
      muk_web_theme/static/description/branding_saas_banner.png
  4. BIN
      muk_web_theme/static/description/branding_website_banner.png
  5. 86
      muk_web_theme/static/description/index.html
  6. BIN
      muk_web_theme/static/description/screenshot_more.png
  7. BIN
      muk_web_theme/static/description/screenshot_search.png
  8. BIN
      muk_web_theme/static/description/theme_branding_banner.png
  9. BIN
      muk_web_theme/static/description/theme_mail_banner.png
  10. BIN
      muk_web_theme/static/description/theme_website_banner.png
  11. 104
      muk_web_theme/static/src/js/views/list_renderer.js
  12. 1
      muk_web_theme/template/assets.xml

2
muk_web_theme/__manifest__.py

@ -19,7 +19,7 @@
{
"name": "MuK Backend Theme",
"summary": "Odoo Community Backend Theme",
"version": "12.0.1.5.7",
"version": "12.0.1.5.9",
"category": "Themes/Backend",
"license": "AGPL-3",
"author": "MuK IT",

BIN
muk_web_theme/static/description/branding_mail_banner.png

After

Width: 880  |  Height: 440  |  Size: 43 KiB

BIN
muk_web_theme/static/description/branding_saas_banner.png

After

Width: 880  |  Height: 440  |  Size: 43 KiB

BIN
muk_web_theme/static/description/branding_website_banner.png

After

Width: 880  |  Height: 440  |  Size: 43 KiB

86
muk_web_theme/static/description/index.html

@ -97,19 +97,87 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="text-justify" style="max-width: 84%; margin: 16px 8%;">
<h3 class="oe_slogan">Menu Search &amp; More</h3>
<div class="row">
<div class="mb16 col-lg-6">
<div class="oe_demo oe_screenshot">
<img src="screenshot_search.png">
<h3 class="oe_slogan">Theme Extensions</h3>
<div id="apps" class="row carousel slide mb16" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active" style="min-height: 0px;">
<div class="col-xs-12 col-sm-4 col-md-4" style="float: left;">
<a href="https://apps.odoo.com/apps/modules/12.0/muk_web_theme_mail/" target="_blank">
<div class="oe_screenshot">
<img class="img img-fluid img-responsive center-block"
src="theme_mail_banner.png">
</div>
<h4 style=" padding: 6% 4%; text-align: center; white-space: nowrap; width: 100%; overflow: hidden; text-overflow: ellipsis;">
Mail Extension
</h4>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4" style="float: left;">
<a href="https://apps.odoo.com/apps/modules/12.0/muk_web_theme_branding/" target="_blank">
<div class="oe_screenshot">
<img class="img img-fluid img-responsive center-block"
src="theme_branding_banner.png">
</div>
<h4 style=" padding: 6% 4%; text-align: center; white-space: nowrap; width: 100%; overflow: hidden; text-overflow: ellipsis;">
Branding Extension
</h4>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4" style="float: left;">
<a href="https://apps.odoo.com/apps/modules/12.0/muk_web_theme_website/" target="_blank">
<div class="oe_screenshot">
<img class="img img-fluid img-responsive center-block"
src="theme_website_banner.png">
</div>
<h4 style=" padding: 6% 4%; text-align: center; white-space: nowrap; width: 100%; overflow: hidden; text-overflow: ellipsis;">
Website Extension
</h4>
</a>
</div>
</div>
</div>
<div class="mb16 col-lg-6">
<div class="oe_demo oe_screenshot">
<img src="screenshot_more.png">
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-4 col-md-4" style="float: left;">
<a href="https://apps.odoo.com/apps/modules/12.0/muk_mail_branding/" target="_blank">
<div class="oe_screenshot">
<img class="img img-fluid img-responsive center-block"
src="branding_mail_banner.png">
</div>
<h4 style=" padding: 6% 4%; text-align: center; white-space: nowrap; width: 100%; overflow: hidden; text-overflow: ellipsis;">
Mail Branding
</h4>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4" style="float: left;">
<a href="https://apps.odoo.com/apps/modules/12.0/muk_website_branding/" target="_blank">
<div class="oe_screenshot">
<img class="img img-fluid img-responsive center-block"
src="branding_website_banner.png">
</div>
<h4 style=" padding: 6% 4%; text-align: center; white-space: nowrap; width: 100%; overflow: hidden; text-overflow: ellipsis;">
Website Branding
</h4>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4" style="float: left;">
<a href="https://apps.odoo.com/apps/modules/12.0/muk_saas_branding/" target="_blank">
<div class="oe_screenshot">
<img class="img img-fluid img-responsive center-block"
src="branding_saas_banner.png">
</div>
<h4 style=" padding: 6% 4%; text-align: center; white-space: nowrap; width: 100%; overflow: hidden; text-overflow: ellipsis;">
SaaS Branding
</h4>
</a>
</div>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#apps" data-slide="prev" style="margin: 30px 0 0 40px; color: #000;">
<span class="carousel-control-prev-icon"><i class="fa fa-chevron-left" style="font-size: 24px"></i></span>
</a>
<a class="carousel-control-next" href="#apps" data-slide="next" style="margin: 30px 40px 0 0; color: #000;">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right" style="font-size: 24px"></i></span>
</a>
</div>
</div>
</section>

BIN
muk_web_theme/static/description/screenshot_more.png

Before

Width: 1600  |  Height: 900  |  Size: 54 KiB

BIN
muk_web_theme/static/description/screenshot_search.png

Before

Width: 1600  |  Height: 900  |  Size: 211 KiB

BIN
muk_web_theme/static/description/theme_branding_banner.png

After

Width: 880  |  Height: 440  |  Size: 49 KiB

BIN
muk_web_theme/static/description/theme_mail_banner.png

After

Width: 880  |  Height: 440  |  Size: 47 KiB

BIN
muk_web_theme/static/description/theme_website_banner.png

After

Width: 880  |  Height: 440  |  Size: 49 KiB

104
muk_web_theme/static/src/js/views/list_renderer.js

@ -0,0 +1,104 @@
/**********************************************************************************
*
* Copyright (C) 2017 MuK IT GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
**********************************************************************************/
odoo.define('muk_web_theme.ListRenderer', function (require) {
"use strict";
var dom = require('web.dom');
var core = require('web.core');
var config = require("web.config");
var ListRenderer = require('web.ListRenderer');
var _t = core._t;
var QWeb = core.qweb;
ListRenderer.include({
_range_history: [],
_render: function() {
var res = this._super.apply(this, arguments);
this.$table = this.$el.find('.o_list_view');
return res;
},
_getRangeSelection: function() {
var self = this;
var start = null, end = null;
this.$el.find('td.o_list_record_selector input').each(function (i, el) {
var id = $(el).closest('tr').data('id');
var checked = self._range_history.indexOf(id) !== -1;
if (checked && $(el).is(':checked')) {
if (start == null) {
start = i;
} else {
end = i;
}
}
});
var new_range = this._getSelectionByRange(start, end);
var current_selection = this.selection;
current_selection = _.uniq(current_selection.concat(new_range));
return current_selection;
},
_getSelectionByRange: function(start, end) {
var result = [];
this.$el.find('td.o_list_record_selector input').closest('tr').each(function (i, el) {
var record_id = $(el).data('id');
if (start != null && end != null && i >= start && i <= end) {
result.push(record_id);
} else if(start != null && end == null && start == i) {
result.push(record_id);
}
});
return result;
},
_pushRangeHistory: function(id) {
if (this._range_history.length === 2) {
this._range_history = [];
}
this._range_history.push(id);
},
_deselectTable: function() {
window.getSelection().removeAllRanges();
},
_onSelectRecord: function(event) {
var res = this._super.apply(this, arguments);
var element = $(event.currentTarget);
if (/firefox/i.test(navigator.userAgent) && event.shiftKey) {
element.find('input').prop('checked', !element.find('input').prop('checked'));
}
if (element.find('input').prop('checked')) {
this._pushRangeHistory(element.closest('tr').data('id'));
}
if (event.shiftKey) {
var selection = this._getRangeSelection();
var $rows = this.$el.find('td.o_list_record_selector input').closest('tr');
$rows.each(function () {
var record_id = $(this).data('id');
if (selection.indexOf(record_id) !== -1) {
$(this).find('td.o_list_record_selector input').prop('checked', true);
}
});
this._updateSelection();
this._deselectTable();
}
return res;
}
});
});

1
muk_web_theme/template/assets.xml

@ -65,6 +65,7 @@
<script type="text/javascript" src="/muk_web_theme/static/src/js/fields/status.js" />
<script type="text/javascript" src="/muk_web_theme/static/src/js/views/search_view.js" />
<script type="text/javascript" src="/muk_web_theme/static/src/js/views/form_renderer.js" />
<script type="text/javascript" src="/muk_web_theme/static/src/js/views/list_renderer.js" />
</xpath>
</template>

Loading…
Cancel
Save