X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fsrc%2Frelate.tt;h=4d9d4e46702d5dc16d6d1f0541755c9bdffc8e9f;hb=89aae3eec7a0e23f314597cd09bd3ffc696c7412;hp=e2affca485c4f001a01344be343a47bee6f1ab7e;hpb=30d0ba1eb65182ce262cc2e67a20d70519b0a419;p=scpubgit%2Fstemmaweb.git diff --git a/root/src/relate.tt b/root/src/relate.tt index e2affca..4d9d4e4 100644 --- a/root/src/relate.tt +++ b/root/src/relate.tt @@ -9,24 +9,30 @@ var basepath = "[% c.uri_for( '/relation/' ) %]"; var textid = "[% textid %]"; var can_morphologize = "[% can_morphologize %]"; var editable = "[% permission %]" === "full"; +// URLs for images referenced in Javascript +var merge_button_yes = "[% c.uri_for( '/images/tick_circle_frame.png' ) %]"; +var merge_button_no = "[% c.uri_for( '/images/no_entry.png' ) %]"; +// Constants used in Javascript that we get from the server [% IF error -%] var relationship_types = []; var relationship_scopes = []; +var ternary_values = []; [% ELSE -%] var relationship_types = [% relationship_types %]; var relationship_scopes = [% relationship_scopes %]; +var ternary_values = [% ternary_values %]; [% END -%] $(document).ready(function () { - loadSVG('[% svg_string %]'); + loadSVG('[% svg_string %]', '[% direction %]'); }); [% END %] -
- - Help / About | Return to index - + +

Relationship mapper

[% text_title %]

@@ -61,18 +67,29 @@ $(document).ready(function () { - -

- +

- - + + +

+ + +
+ + +
+ + +

+ +
@@ -84,7 +101,17 @@ $(document).ready(function () { -
+
Type:
+ Scope:
+ +
+
+ +
+
+
Select witness(es) to detach:
+
+
@@ -124,4 +151,4 @@ $(document).ready(function () {
-[% PROCESS footer.tt %] \ No newline at end of file +[% PROCESS footer.tt %]