mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-08-17 16:54:42 -05:00
[ADD] Added Access Key For Views Tab
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
flectra.define('web_flectra.access_key', function(require){
|
||||
'use strict';
|
||||
|
||||
var CalendarView = require('web.CalendarView');
|
||||
var GraphView = require('web.GraphView');
|
||||
var PivotView = require('web.PivotView');
|
||||
|
||||
// Added Hot Key For Rest Of Views
|
||||
CalendarView.include({
|
||||
accesskey: 'b'
|
||||
});
|
||||
GraphView.include({
|
||||
accesskey: 'm'
|
||||
});
|
||||
PivotView.include({
|
||||
accesskey: 'g'
|
||||
});
|
||||
|
||||
});
|
||||
@@ -72,6 +72,7 @@ $chatter_zone_width: 35%;
|
||||
width: 130px;
|
||||
border: 1px solid #ddd;
|
||||
overflow-x: hidden;
|
||||
overflow-y: hidden;
|
||||
background-color: rgba(255, 255, 255, 0.5);
|
||||
.o_app_name {
|
||||
margin: 10px 5px;
|
||||
|
||||
@@ -30,14 +30,6 @@
|
||||
</div>
|
||||
</t>
|
||||
<t t-extend="FormView.buttons">
|
||||
<!-- Change "Edit" button hotkey to "E" -->
|
||||
<t t-jquery=".o_form_button_edit" t-operation="attributes">
|
||||
<attribute name="accesskey">e</attribute>
|
||||
</t>
|
||||
<!-- Change "Discard" button hotkey to "D" -->
|
||||
<t t-jquery=".o_form_button_cancel" t-operation="attributes">
|
||||
<attribute name="accesskey">d</attribute>
|
||||
</t>
|
||||
<!-- Add responsive icons to buttons -->
|
||||
<t t-jquery=".o_form_button_edit" t-operation="inner">
|
||||
<t t-call="web_responsive.icon_button">
|
||||
@@ -74,10 +66,6 @@
|
||||
</t>
|
||||
</t>
|
||||
<t t-extend="ListView.buttons">
|
||||
<!-- Change "Discard" button hotkey to "D" -->
|
||||
<t t-jquery=".o_list_button_discard" t-operation="attributes">
|
||||
<attribute name="accesskey">d</attribute>
|
||||
</t>
|
||||
<!-- Add responsive icons to buttons -->
|
||||
<t t-jquery=".o_list_button_add" t-operation="inner">
|
||||
<t t-call="web_responsive.icon_button">
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
<script type="text/javascript" src="/web_flectra/static/src/js/web_responsive.js"/>
|
||||
<script type="text/javascript" src="/web_flectra/static/src/js/backend_theme_customizer.js" />
|
||||
<script type="text/javascript" src="/web_flectra/static/src/js/control_panel.js" />
|
||||
<script type="text/javascript" src="/web_flectra/static/src/js/access_key.js"/>
|
||||
|
||||
<link rel="stylesheet" type="text/scss" href='/web_flectra/static/lib/spectrum/css/spectrum.css' />
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ var _lt = core._lt;
|
||||
var searchUtils = require('web.searchUtils');
|
||||
|
||||
var GanttView = AbstractView.extend({
|
||||
accesskey: 'o',
|
||||
display_name: _lt('Gantt'),
|
||||
icon: 'fa-tasks',
|
||||
config: _.extend({}, AbstractView.prototype.config, {
|
||||
|
||||
Reference in New Issue
Block a user