client/templates/edgeeditor.html
author rougeronj
Sat, 18 Apr 2015 16:56:37 +0200
changeset 419 4f458e6d32bd
child 434 0d5998b32a7c
permissions -rw-r--r--
export the templates of scene and edgeeditor to html files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
419
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     1
<h2>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     2
	<span class="Rk-CloseX">&times;</span><%-renkan.translate("Edit Edge")%></span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     3
</h2>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     4
<p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     5
	<label><%-renkan.translate("Title:")%></label>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     6
	<input class="Rk-Edit-Title" type="text" value="<%-edge.title%>" />
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     7
</p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     8
<% if (options.show_edge_editor_uri) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     9
	<p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    10
		<label><%-renkan.translate("URI:")%></label>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    11
		<input class="Rk-Edit-URI" type="text" value="<%-edge.uri%>" />
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    12
		<a class="Rk-Edit-Goto" href="<%-edge.uri%>" target="_blank"></a>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    13
	</p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    14
	<% if (options.properties.length) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    15
		<p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    16
			<label><%-renkan.translate("Choose from vocabulary:")%></label>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    17
			<select class="Rk-Edit-Vocabulary">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    18
				<% _(options.properties).each(function(ontology) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    19
					<option class="Rk-Edit-Vocabulary-Class" value="">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    20
						<%- renkan.translate(ontology.label) %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    21
					</option>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    22
					<% _(ontology.properties).each(function(property) { var uri = ontology["base-uri"] + property.uri; %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    23
						<option class="Rk-Edit-Vocabulary-Property" value="<%- uri %>"
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    24
							<% if (uri === edge.uri) { %> selected<% } %>>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    25
							<%- renkan.translate(property.label) %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    26
						</option>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    27
					<% }) %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    28
				<% }) %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    29
			</select>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    30
		</p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    31
<% } } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    32
<% if (options.show_edge_editor_color) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    33
	<div class="Rk-Editor-p">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    34
		<span class="Rk-Editor-Label"><%-renkan.translate("Edge color:")%></span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    35
		<div class="Rk-Edit-ColorPicker-Wrapper">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    36
			<span class="Rk-Edit-Color" style="background: &lt;%-edge.color%>;">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    37
				<span class="Rk-Edit-ColorTip"></span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    38
			</span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    39
			<%= renkan.colorPicker %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    40
			<span class="Rk-Edit-ColorPicker-Text"><%- renkan.translate("Choose color") %></span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    41
		</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    42
	</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    43
<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    44
<% if (options.show_edge_editor_direction) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    45
	<p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    46
		<span class="Rk-Edit-Direction"><%- renkan.translate("Change edge direction") %></span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    47
	</p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    48
<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    49
<% if (options.show_edge_editor_nodes) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    50
	<p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    51
		<span class="Rk-Editor-Label"><%-renkan.translate("From:")%></span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    52
		<span class="Rk-UserColor" style="background: <%-edge.from_color%>;"></span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    53
		<%- shortenText(edge.from_title, 25) %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    54
	</p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    55
	<p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    56
		<span class="Rk-Editor-Label"><%-renkan.translate("To:")%></span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    57
		<span class="Rk-UserColor" style="background: >%-edge.to_color%>;"></span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    58
		<%- shortenText(edge.to_title, 25) %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    59
	</p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    60
<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    61
<% if (options.show_edge_editor_creator && edge.has_creator) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    62
	<p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    63
		<span class="Rk-Editor-Label"><%-renkan.translate("Created by:")%></span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    64
		<span class="Rk-UserColor" style="background: &lt;%-edge.created_by_color%>;"></span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    65
		<%- shortenText(edge.created_by_title, 25) %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    66
	</p>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    67
<% } %>