X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fsrc%2Frelate.tt;h=fb15ab9f1186408404ec0e308d4d7fcd55405acb;hb=aeb47ed3252cdb2193217544611ca4788ca4d7c1;hp=a3fe4af7c278dabba5da929c117860a548b8bb30;hpb=5539cba31aece1048961e1c0845c0996390cf3b4;p=scpubgit%2Fstemmaweb.git diff --git a/root/src/relate.tt b/root/src/relate.tt index a3fe4af..fb15ab9 100644 --- a/root/src/relate.tt +++ b/root/src/relate.tt @@ -9,12 +9,19 @@ var basepath = "[% c.uri_for( '/relation/' ) %]"; var textid = "[% textid %]"; var can_morphologize = "[% can_morphologize %]"; var editable = "[% permission %]" === "full"; +var text_direction = "[% direction %]"; +// 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 () { @@ -23,10 +30,10 @@ $(document).ready(function () { [% END %] -
- - Help / About | Return to index - + +

Relationship mapper

[% text_title %]

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

- +

- - + + +

+ + +
+ + +
+ + +

+ +
@@ -84,7 +102,33 @@ $(document).ready(function () { -
+
Type:
+ Scope:
+ +
+
+ +
+
+ +
+
+ + Detach or merge?
+ +
+ + + +
+ +
Select witness(es) to detach:
+
+
@@ -98,15 +142,6 @@ $(document).ready(function () {


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