Project

General

Profile

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

haketilo / html / item_list.html @ 4c6a2323

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
<style>
44
  .item_list, .preview_scroll_box {
45
      overflow-y: auto;
46
      padding-top: 0.4em;
47
      height: calc(var(--content-height) - 0.4em);
48
  }
49
  .item_list {
50
      overflow-y: scroll;
51
      min-width: 7em;
52
  }
53

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