Project

General

Profile

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

haketilo / html / item_preview.html @ 72553a2d

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

    
6
    Show preview of a resource/mapping.
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
#LOADCSS html/reset.css
38
#LOADCSS html/base.css
39
#LOADCSS html/grid.css
40
<style>
41
  .item_preview_main_div {
42
      margin: 1.3em 0.8em 1em 0.8em;
43
  }
44
</style>
45
<template>
46
  <div id="resource_preview" data-template="main_div"
47
       class="grid_2 grid_form item_preview_main_div">
48
    <h3 class="grid_col_both">resource preview</h3>
49
    <label class="grid_col_1">conforms to:</label>
50
    <span data-template="conforms_to" class="grid_col_2">...</span>
51
    <label class="grid_col_1">identifier:</label>
52
    <span data-template="identifier" class="grid_col_2">...</span>
53
    <label class="grid_col_1">long name:</label>
54
    <span data-template="long_name" class="grid_col_2">...</span>
55
    <label class="grid_col_1">UUID:</label>
56
    <span data-template="uuid" class="grid_col_2">...</span>
57
    <label class="grid_col_1">version:</label>
58
    <span data-template="version" class="grid_col_2">...</span>
59
    <label class="grid_col_1">description:</label>
60
    <span data-template="description" class="grid_col_2">...</span>
61
    <label class="grid_col_1">dependencies:</label>
62
    <span class="grid_col_2"><ul data-template="dependencies"></ul></span>
63
    <label class="grid_col_1">scripts:</label>
64
    <span class="grid_col_2"><ul data-template="scripts"></ul></span>
65
    <label class="grid_col_1">source name:</label>
66
    <span data-template="source_name" class="grid_col_2">...</span>
67
    <label class="grid_col_1">copyright:</label>
68
    <span class="grid_col_2"><ul data-template="copyright"></ul></span>
69
  </div>
70
  <div id="mapping_preview" data-template="main_div"
71
       class="grid_2 grid_form">
72
    <h3 class="grid_col_both">mapping preview</h3>
73
    <label class="grid_col_1">conforms to:</label>
74
    <span data-template="conforms_to" class="grid_col_2">...</span>
75
    <label class="grid_col_1">identifier:</label>
76
    <span data-template="identifier" class="grid_col_2">...</span>
77
    <label class="grid_col_1">long name:</label>
78
    <span data-template="long_name" class="grid_col_2">...</span>
79
    <label class="grid_col_1">UUID:</label>
80
    <span data-template="uuid" class="grid_col_2">...</span>
81
    <label class="grid_col_1">version:</label>
82
    <span data-template="version" class="grid_col_2">...</span>
83
    <label class="grid_col_1">description:</label>
84
    <span data-template="description" class="grid_col_2">...</span>
85
    <label class="grid_col_1">payloads:</label>
86
    <div data-template="payloads" class="grid_col_both grid_2"></div>
87
    <label class="grid_col_1">source name:</label>
88
    <span data-template="source_name" class="grid_col_2">...</span>
89
    <label class="grid_col_1">copyright:</label>
90
    <span class="grid_col_2"><ul data-template="copyright"></ul></span>
91
  </div>
92
</template>
93
#ENDIF
(14-14/27)