app_lisium/templates/package.html
2025-12-13 10:23:28 -06:00

72 lines
3.6 KiB
HTML

<!DOCTYPE html>
<html lang="en" dir="ltr" id="main_html">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8" />
<title id="title"></title>
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}">
<!-- Material Icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<!-- Material Symbols - Outlined Set -->
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" />
<!-- Material Symbols - Rounded Set -->
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded" rel="stylesheet" />
<!-- Material Symbols - Sharp Set -->
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp" rel="stylesheet" />
<link rel="stylesheet" href="{{ url_for('static', filename='css/uikit.min.css') }}"/>
<script src="{{ url_for('static', filename='js/uikit.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/uikit-icons.min.js') }}"></script>
</head>
<body>
<div class="uk-container">
<div class="uk-section">
<div>
<h1>View/Edit Package</h1>
</div>
<div class="uk-margin">
<label for="packageName">Package Name</label>
<input id="packageName" class="uk-input" type="text" placeholder="" aria-label="Input" value="{{package_object['package_name']}}">
</div>
<div class="uk-margin">
<label class="uk-form-label" for="packageType">Package Type</label>
<div class="uk-form-controls">
<select class="uk-select" id="packageType">
{% for t_type in defined_types %}
<option value="{{t_type['value']}}">{{t_type['string']}}</option>
{% endfor %}
</select>
</div>
</div>
<div class="uk-margin">
<label for="packageDescription">Package Description</label>
<textarea id="packageDescription" class="uk-textarea" rows="15"
uk-tooltip="It is possible to use html tags within descriptions that will be rendered in other parts of the system."
aria-label="Textarea" autocomplete="off">{{package_object['package_description']}}</textarea>
</div>
<ul class="uk-subnav uk-subnav-pill" uk-switcher>
<li><a href="#">Document</a></li>
<li><a href="#">Features</a></li>
</ul>
<div class="uk-switcher uk-margin">
<div id="md_document">{{package_object['package_document']|safe}}</div>
<div>Hello again!</div>
</div>
<hr class="uk-divider-icon">
<div>
<button onclick="savePackage()" class="uk-button uk-button-primary">Save Changes</button>
</div>
</div>
</div>
<!--p>{{package_object}}</p -->
</body>
<script>
const package_object = {{package_object|tojson}}
console.log(package_object['package_uuid'])
document.getElementById('packageType').value = `${package_object.package_type}`;
</script>
<script src="{{ url_for('static', filename='js/packageHandler.js') }}"></script>
</html>