Browse Source

2.0

pull/64/head
Mathias Markl 6 years ago
parent
commit
502b929b34
  1. 7
      muk_web_glyphicons/README.md
  2. 2
      muk_web_glyphicons/__init__.py
  3. 17
      muk_web_glyphicons/__manifest__.py
  4. 5
      muk_web_glyphicons/doc/changelog.rst
  5. 49
      muk_web_glyphicons/doc/index.rst
  6. 44
      muk_web_glyphicons/static/description/index.html
  7. 27
      muk_web_glyphicons/static/src/js/glyphicons.js
  8. 20
      muk_web_glyphicons/static/src/less/glyphicons.less
  9. 30
      muk_web_glyphicons/template/assets.xml

7
muk_web_glyphicons/README.md

@ -1,7 +0,0 @@
# Bootstrap Glyphicons Support
Odoo does not natively support the Glyphicons from Bootstrap although
it uses the framework. This module enables the Bootstrap Glyphicons.
The Glyphicons from Font Awesome which are used by Odoo will still
be available.

2
muk_web_glyphicons/__init__.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Copyright (C) 2017 MuK IT GmbH

17
muk_web_glyphicons/__manifest__.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Copyright (C) 2017 MuK IT GmbH
@ -19,34 +17,25 @@
#
###################################################################################
{
"name": "MuK Bootstrap Glyphicons",
'summary': """Bootstrap Glyphicons Support""",
'description':"""
Odoo does not natively support the Glyphicons from Bootstrap although
it uses the framework. This module enables the Bootstrap Glyphicons.
The Glyphicons from Font Awesome which are used by Odoo will still
be available.
""",
"version": "11.0.1.0.0",
"version": "11.0.2.0.0",
"category": "Extra Tools",
"license": "AGPL-3",
"website": "http://www.mukit.at",
"live_test_url": "https://demo.mukit.at/web/login",
"author": "MuK IT",
"contributors": [
"Mathias Markl <mathias.markl@mukit.at>",
"Kerrim Abdelhamed <kerrim.adbelhamed@mukit.at>",
],
"depends": [
"base",
"web_editor",
],
"data": [
"template/assets.xml",
],
"demo": [
],
"qweb": [
"static/src/xml/*.xml",
],

5
muk_web_glyphicons/doc/changelog.rst

@ -1,3 +1,8 @@
`2.0.0`
-------
- Migrated to Python 3
`1.0.0`
-------

49
muk_web_glyphicons/doc/index.rst

@ -0,0 +1,49 @@
============================
Bootstrap Glyphicons Support
============================
Odoo does not natively support the Glyphicons from Bootstrap although
it uses the framework. This module enables the Bootstrap Glyphicons.
The Glyphicons from Font Awesome which are used by Odoo will still
be available.
Installation
============
To install this module, you need to:
Download the module and add it to your Odoo addons folder. Afterward, log on to
your Odoo server and go to the Apps menu. Trigger the debug modus and update the
list by clicking on the "Update Apps List" link. Now install the module by
clicking on the install button.
Configuration
=============
No additional configuration is needed to use this module.
Usage
=============
Bootstrap Glyphicons are appended to the MediaDialog.
Credits
=======
Contributors
------------
* Mathias Markl <mathias.markl@mukit.at>
Author & Maintainer
-------------------
This module is maintained by the `MuK IT GmbH <https://www.mukit.at/>`_.
MuK IT is an Austrian company specialized in customizing and extending Odoo.
We develop custom solutions for your individual needs to help you focus on
your strength and expertise to grow your business.
If you want to get in touch please contact us via mail
(sale@mukit.at) or visit our website (https://mukit.at).

44
muk_web_glyphicons/static/description/index.html

@ -4,7 +4,7 @@
<h3 class="oe_slogan">Bootstrap Glyphicons Support</h3>
<h4 class="oe_slogan" style="font-size: 23px;">MuK IT GmbH -
www.mukit.at</h4>
<div class="oe_demo oe_screenshot">
<div class="oe_demo oe_screenshot" style="max-width: 84%; margin: 16px 8%;">
<img src="screenshot.png">
</div>
</div>
@ -12,7 +12,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_picture">
<div style="max-width: 84%; margin: 16px 8%;">
<h3 class="oe_slogan">Overview</h3>
<p class="oe_mt32">Odoo does not natively support the Glyphicons
from Bootstrap although it uses the framework. This module enables
@ -22,14 +22,46 @@
</div>
</section>
<section class="oe_container oe_dark"
style="margin-bottom: 20px; border-top: 5px solid #797979; border-bottom: 5px solid #797979;">
<h3 class="oe_slogan" style="margin-bottom: 10px;">Demo</h3>
<div class="row" style="margin: auto; max-width: 200px;">
<div class="col-xs-6">
<h5 class="oe_slogan" style="font-size: 20px; margin: 2px;">User:</h5>
</div>
<div class="col-xs-6">
<h5 class="oe_slogan" style="font-size: 20px; margin: 2px;">apps</h5>
</div>
<div class="col-xs-6">
<h5 class="oe_slogan" style="font-size: 20px; margin: 2px;">Password:</h5>
</div>
<div class="col-xs-6">
<h5 class="oe_slogan" style="font-size: 20px; margin: 2px;">demo</h5>
</div>
</div>
<div class="oe_slogan" style="margin-top: 5px;">
<a class="btn btn-primary btn-lg mt8"
href="https://demo.mukit.at/web/login"
style="position: relative; overflow: hidden;"><span
class="o_ripple"
style="height: 138px; width: 138px; top: -35.2969px; left: -8.17188px;"></span>
<i class="fa fa-video-camera"></i> Live Preview </a>
</div>
</section>
<section class="oe_container oe_dark">
<h3 class="oe_slogan">Help and Support</h3>
<h5 class="oe_slogan" style="font-size: 20px;">Feel free to
contact us, if you need any help with your Odoo integration or
addiontal features.</h5>
<div class="oe_slogan">
<a class="btn btn-primary btn-lg mt8" href="mailto:sale@mukit.at">
<i class="fa fa-envelope"></i> Email
</a>
<a class="btn btn-primary btn-lg mt8" href="https://mukit.at/page/contactus">
<i class="fa fa-phone"></i> Contact
<i class="fa fa-envelope"></i> Email
</a> <a class="btn btn-primary btn-lg mt8"
href="https://mukit.at/page/contactus"> <i class="fa fa-phone"></i>
Contact
</a> <a class="btn btn-primary btn-lg mt8" href="mailto:support@mukit.at">
<i class="fa fa-life-ring"></i> Support
</a>
</div>
<img src="logo.png" style="width: 200px; margin-bottom: 20px;"

27
muk_web_glyphicons/static/src/js/glyphicons.js

@ -0,0 +1,27 @@
/**********************************************************************************
*
* 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_glyphicons.fonts', function (require) {
'use strict';
var editor_widgets = require('web_editor.widget');
editor_widgets.fontIcons.push({'base': 'glyphicon', 'parser': /(?=^|\s)(\.glyphicon-[0-9a-z_-]+::?before)/i});
});

20
muk_web_glyphicons/static/src/less/glyphicons.less

@ -1,6 +1,24 @@
/**********************************************************************************
*
* 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/>.
*
**********************************************************************************/
@font-face {
font-family: 'Glyphicons Halflings';
src: url('/muk_web_glyphicons/static/lib/bootstrap/fonts/glyphicons-halflings-regular.eot');
src: url('/muk_web_glyphicons/static/lib/bootstrap/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
url('/muk_web_glyphicons/static/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2') format('woff2'),

30
muk_web_glyphicons/template/assets.xml

@ -1,8 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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>
<template id="assets_backend" name="muk_web_glyphicons_assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<template id="assets_common" name="muk_web_fontawesomepro_assets" inherit_id="web.assets_common">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" href="/muk_web_glyphicons/static/src/less/glyphicons.less" />
</xpath>
</template>
<template id="assets_editor" name="Editor Assets" inherit_id="web_editor.assets_editor">
<xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/muk_web_glyphicons/static/src/js/glyphicons.js"/>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save