Project

General

Profile

Download (2.93 KB) Statistics
| Branch: | Tag: | Revision:

haketilo / html / item_list.html @ 652e4476

1
#IF !ITEM_LIST_LOADED
2
#DEFINE ITEM_LIST_LOADED
3
<!--
4
    SPDX-License-Identifier: GPL-3.0-or-later OR CC-BY-SA-4.0
5

    
6
    Show a list of resources/mappings.
7

    
8
    This file is part of Haketilo.
9

    
10
    Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>
11

    
12
    File is dual-licensed. You can choose either GPLv3+, CC BY-SA or both.
13

    
14
    This program is free software: you can redistribute it and/or modify
15
    it under the terms of the GNU General Public License as published by
16
    the Free Software Foundation, either version 3 of the License, or
17
    (at your option) any later version.
18

    
19
    This program is distributed in the hope that it will be useful,
20
    but WITHOUT ANY WARRANTY; without even the implied warranty of
21
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
    GNU General Public License for more details.
23

    
24
    You should have received a copy of the GNU General Public License
25
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
26

    
27
    I, Wojtek Kosior, thereby promise not to sue for violation of this file's
28
    licenses. Although I request that you do not make use of this code in a
29
    proprietary program, I am not going to enforce this in court.
30
  -->
31

    
32
<!--
33
    This is not a standalone page. This file is meant to be imported into other
34
    HTML code.
35
  -->
36

    
37
#INCLUDE html/item_preview.html
38
#INCLUDE html/dialog.html
39

    
40
#LOADCSS html/reset.css
41
#LOADCSS html/base.css
42
#LOADCSS html/grid.css
43
#LOADCSS html/scrollbars.css
44
<style>
45
  .item_list, .preview_scroll_box {
46
      overflow-y: auto;
47
      padding-top: 0.4em;
48
      height: calc(var(--content-height) - 0.4em);
49
  }
50
  .item_list {
51
      overflow-y: scroll;
52
      min-width: 7em;
53
  }
54

    
55
  .item_list>li {
56
      cursor: pointer;
57
      padding: 0.15em 0.3em;
58
  }
59
  .list_main_view {
60
      grid-template-columns: auto 1fr;
61
  }
62
  .item_li_highlight {
63
      background-color: #c0c0c0;
64
  }
65
  .item_list>li.item_li_highlight {
66
      cursor: default;
67
  }
68
  .item_list.list_disabled,
69
  .item_list.list_disabled *,
70
  .item_list.list_disabled .item_li_highlight {
71
      -moz-user-select: none;
72
      user-select: none;
73
      opacity: 0.75;
74
      cursor: not-allowed;
75
  }
76
  .item_preview_container .item_preview_main_div {
77
      margin: auto;
78
  }
79
  .list_buttons {
80
      margin: 1em auto;
81
      text-align: center;
82
  }
83
</style>
84
<template>
85
  <div id="item_list" data-template="main_div" class="grid_2 list_main_view">
86
    <ul data-template="ul" class="item_list scrollbar_visible"></ul>
87
    <div class="preview_scroll_box scrollbar_visible">
88
      <div data-template="preview_container"
89
	   class="hide item_preview_container">
90
	<!-- preview div will be dynamically inserted here -->
91
	<div class="list_buttons">
92
	  <button data-template="remove_but">Remove</button>
93
	  <!--<button data-template="export_but">Export</button>-->
94
	</div>
95
      </div>
96
      <div data-template="dialog_container" class="hide">
97
	<!-- dialog div will be dynamically inserted here -->
98
      </div>
99
    </div>
100
  </div>
101
</template>
102
#ENDIF
(12-12/27)