X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fsrc%2Frelate.tt;h=a8e4d8900b38fc81190feb3f340269c283f47dd9;hb=a51e34c5247defe228ec03ed2000f9feb08ce618;hp=36403b471ed57ff37d05b4fdc11be1a0d443e10e;hpb=a84ca4de01286da8da9b73ac584211a26b9c3b75;p=scpubgit%2Fstemmaweb.git diff --git a/root/src/relate.tt b/root/src/relate.tt index 36403b4..a8e4d89 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 () { - -

- +

- - + + +

+ + +
+ + +
+ + +

+ +
@@ -86,15 +103,28 @@ $(document).ready(function () {
Type:
Scope:
+
-
- - +
+ + Detach or merge?


+ + + + + +
+ +
Select witness(es) to detach:
+
-
This should turn into a proper form.
@@ -108,15 +138,6 @@ $(document).ready(function () {


- -
- - - -
@@ -143,4 +164,4 @@ $(document).ready(function () {
-[% PROCESS footer.tt %] \ No newline at end of file +[% PROCESS footer.tt %]