Add context menu styles and remove inline scripts from finance templates

This commit is contained in:
2024-12-05 23:18:34 +01:00
parent ed407061e7
commit 774a2c8cc7
6 changed files with 221 additions and 41 deletions

View File

@@ -197,20 +197,20 @@
"layout": {
"style.css": {
"type": "-",
"size": 16849,
"lmtime": 1732104825072,
"size": 16957,
"lmtime": 1733421927140,
"modified": false
},
"style.css.map": {
"type": "-",
"size": 30257,
"lmtime": 1732104825072,
"size": 30471,
"lmtime": 1733421927140,
"modified": false
},
"style.scss": {
"type": "-",
"size": 20988,
"lmtime": 1732104824584,
"size": 21129,
"lmtime": 1733421927023,
"modified": false
}
},
@@ -223,14 +223,86 @@
"daterange": {},
"filemanager-9.14.1": {},
"font-awesome-4.7.0": {},
"framework": {},
"framework": {
"skin": {
"default_skin": {
"css": {
"theme.css": {
"type": "-",
"size": 552995,
"lmtime": 1733301471903,
"modified": false
},
"theme.min.css": {
"type": "-",
"size": 409300,
"lmtime": 0,
"modified": false
}
}
}
},
"vendor": {
"plugins": {
"datepicker": {
"js": {
"bootstrap-datetimepicker.js": {
"type": "-",
"size": 57900,
"lmtime": 1733301726145,
"modified": false
}
}
}
}
}
},
"functions.js": {
"type": "-",
"size": 3098,
"lmtime": 0,
"size": 3168,
"lmtime": 1733306461000,
"modified": false
},
"grid": {},
"grid": {
"templates": {
"container.php": {
"type": "-",
"size": 18384,
"lmtime": 1733300303553,
"modified": false
},
"edit.php": {
"type": "-",
"size": 6041,
"lmtime": 0,
"modified": false
},
"edit-simple.php": {
"type": "-",
"size": 10753,
"lmtime": 1733300307397,
"modified": false
},
"print.php": {
"type": "-",
"size": 5140,
"lmtime": 0,
"modified": false
},
"results.php": {
"type": "-",
"size": 20382,
"lmtime": 0,
"modified": false
},
"upload.php": {
"type": "-",
"size": 6498,
"lmtime": 1733300310979,
"modified": false
}
}
},
"icheck-1.0.2": {},
"jquery": {},
"jquery-confirm": {},
@@ -290,14 +362,14 @@
},
"main-view.php": {
"type": "-",
"size": 14327,
"lmtime": 1733147784676,
"size": 13208,
"lmtime": 1733421800974,
"modified": false
},
"operation-edit.php": {
"type": "-",
"size": 3895,
"lmtime": 0,
"size": 3894,
"lmtime": 1733301320852,
"modified": false
},
"operations-list.php": {
@@ -316,8 +388,8 @@
},
"layout-logged.php": {
"type": "-",
"size": 6391,
"lmtime": 1732087458677,
"size": 5586,
"lmtime": 1733421752511,
"modified": false
},
"layout-unlogged.php": {
@@ -328,18 +400,102 @@
}
},
"projects": {
"closed-tasks.php": {
"type": "-",
"size": 5365,
"lmtime": 0,
"modified": false
},
"inprogress-tasks.php": {
"type": "-",
"size": 6860,
"lmtime": 0,
"modified": false
},
"main_view.php": {
"type": "-",
"size": 2500,
"lmtime": 0,
"modified": false
},
"project_edit.php": {
"type": "-",
"size": 2429,
"lmtime": 0,
"modified": false
},
"task-details.php": {
"type": "-",
"size": 5602,
"lmtime": 0,
"modified": false
},
"task-edit.php": {
"type": "-",
"size": 7738,
"lmtime": 1732274648412,
"size": 7746,
"lmtime": 1733306396288,
"modified": false
},
"tasks.php": {
"type": "-",
"size": 27867,
"lmtime": 0,
"modified": false
},
"toreview-tasks.php": {
"type": "-",
"size": 6399,
"lmtime": 0,
"modified": false
},
"unassigned-tasks.php": {
"type": "-",
"size": 6002,
"lmtime": 0,
"modified": false
}
},
"tasks": {
"filtr_save_form.php": {
"type": "-",
"size": 707,
"lmtime": 0,
"modified": false
},
"main_view_by_ajax.php": {
"type": "-",
"size": 284,
"lmtime": 0,
"modified": false
},
"main_view.php": {
"type": "-",
"size": 21924,
"lmtime": 0,
"modified": false
},
"task_edit.php": {
"type": "-",
"size": 7636,
"lmtime": 1732274652144,
"size": 7644,
"lmtime": 1733306421880,
"modified": false
},
"task_popup.php": {
"type": "-",
"size": 5203,
"lmtime": 0,
"modified": false
},
"task_single.php": {
"type": "-",
"size": 2852,
"lmtime": 0,
"modified": false
},
"work-time.php": {
"type": "-",
"size": 6998,
"lmtime": 0,
"modified": false
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1159,4 +1159,47 @@ input[type="checkbox"] {
font-size: 70%;
}
}
}
.manage-menu {
position: relative;
.context-menu {
border-left: 4px dotted #000;
width: 1px;
height: 100%;
}
.context-menu-container {
position: absolute;
display: none;
background: #FFF;
box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
top: 2px;
left: 2px;
ul {
list-style-type: none;
margin: 0;
padding: 0;
li {
a {
display: block;
padding: 7px 15px;
white-space: nowrap;
&:hover {
background: #f8f8f8;
}
}
}
}
}
&:hover {
.context-menu-container {
display: block;
}
}
}

View File

@@ -134,15 +134,6 @@
</ul>
</div>
</div>
<script type="text/javascript">
$( function()
{
$(document).ready(function(){
console.log('test');
var tableContextMenu = new ContextMenu("category-<?= $category['id'];?>-menu", menuItemClickListener);
});
});
</script>
<?= $category['name']; ?>
</th>
</tr>
@@ -176,14 +167,6 @@
</ul>
</div>
</div>
<script type="text/javascript">
$( function()
{
$(document).ready(function(){
var tableContextMenu = new ContextMenu("category-<?= $subcategory['id'];?>-menu", menuItemClickListener);
});
});
</script>
<?= $subcategory['name']; ?>
</td>
<td class="text-right">

View File

@@ -20,7 +20,6 @@
<script type="text/javascript" src="/libraries/framework/vendor/plugins/daterange/daterangepicker.js"></script>
<script type="text/javascript" src="/libraries/jquery-confirm/jquery-confirm.min.js"></script>
<script type="text/javascript" src="/libraries/select2/js/select2.full.min.js"></script>
<script type="text/javascript" src="/libraries/jquery.contextMenu/context-menu.js"></script>
<script type="text/javascript" src="/libraries/functions.js"></script>
<link rel="Stylesheet" type="text/css" href="/libraries/framework/skin/default_skin/css/theme.css">
<link rel="stylesheet" type="text/css" href="/libraries/framework/vendor/plugins/datepicker/css/bootstrap-datetimepicker.css">
@@ -28,7 +27,6 @@
<link rel="stylesheet" type="text/css" href="/libraries/jquery-confirm/jquery-confirm.min.css">
<link rel="stylesheet" type="text/css" href="/libraries/select2/css/select2.min.css">
<link rel="stylesheet" type="text/css" href="/libraries/select2/css/select2-bootstrap-5-theme.min.css">
<link rel="stylesheet" type="text/css" href="/libraries/jquery.contextMenu/context-menu.css">
<link rel="stylesheet" type="text/css" href="/layout/style.css">
</head>
<body class="logged">