Some proper node lookup display

feature/core
Sven Slootweg 11 years ago
parent a93d16c9dc
commit b1d629f303

@ -35,6 +35,7 @@ try
$sData = array(
"contents" => NewTemplater::Render("nodes/lookup", $locale->strings, array(
"id" => $sNode->sId,
"name" => $sNode->sName,
"notes" => $sNode->sNotes,
"properties" => $sProperties

@ -215,3 +215,29 @@ i.notification {
.notification-popup ul, .error-popup ul {
margin: 4px 0px;
padding-left: 48px; }
.window-inner .header, .window-inner h1, .window-inner h2 {
margin: 4px 0px; }
.window-inner .lower-header, .window-inner h2 {
margin-top: 7px; }
.window-inner h1 {
font-size: 20px; }
.window-inner h2 {
font-size: 16px; }
.window-inner .unit-content {
padding: 6px; }
.window-inner a.source-ref {
float: right;
margin-right: -4px;
text-decoration: none;
color: gray;
font-size: 13px; }
.window-inner a.source-ref:hover {
color: black; }
.window-inner table {
font-size: 13px;
width: 100%; }
.window-inner td.property-name {
width: 40%;
text-align: right;
font-weight: bold; }

@ -132,8 +132,8 @@ function callbackNodeCreated(form, data)
function openWindowNodeDetails(id)
{
new JsdeWindow({
width: 480,
height: 300,
width: 680,
height: 420,
x: 100,
y: 100,
title: "Node lookup",

@ -1,9 +1,43 @@
<div class="node-lookup pure-g">
<div class="pure-u-1-2">
<h2>{%?name}</h2>
<p>
{%?notes}
</p>
<div class="pure-u-3-5">
<div class="unit-content">
<h1>{%?name}</h1>
<p>
{%?notes}
</p>
<p>
<strong>Node ID:</strong> {%?id}
</p>
<table class="pure-table pure-table-bordered">
<thead>
<tr>
<th>Name</th>
<th>Value</th>
</tr>
</thead>
<tbody>
{%foreach property in properties}
<tr>
<td class="property-name">{%?property[name]}</td>
<td>
{%?property[value]}
{%if isempty|property[source] == false}
<a class="source-ref" href="{%?property[source]}" target="_blank"><i class="icon-external-link"></i></a>
{%/if}
</td>
</tr>
{%/foreach}
</tbody>
</table>
</div>
</div>
<div class="pure-u-2-5">
<div class="unit-content">
<h2>Relationships</h2>
<p>
No relationships were found.
</p>
</div>
</div>
<div class="pure-u-1-2">test2</div>
</div>

@ -313,3 +313,66 @@ i.notification
margin: 4px 0px;
padding-left: 48px;
}
.window-inner
{
.header
{
margin: 4px 0px;
}
.lower-header
{
margin-top: 7px;
}
h1
{
@extend .header;
font-size: 20px;
}
h2
{
@extend .header;
@extend .lower-header;
font-size: 16px;
}
.unit-content
{
padding: 6px;
}
a.source-ref
{
float: right;
margin-right: -4px;
text-decoration: none;
color: gray;
font-size: 13px;
&:hover
{
color: black;
}
}
table
{
font-size: 13px;
width: 100%;
}
td.property-name
{
width: 40%;
text-align: right;
font-weight: bold;
}
.node-lookup
{
}
}

Loading…
Cancel
Save