Added root selection interactivity for stemma
[scpubgit/stemmaweb.git] / root / src / index.tt
index 2c2f735..aab3963 100644 (file)
@@ -73,6 +73,12 @@ var stemwebAlgorithms = [% stemweb_algorithms %];
               <span>Run a Stemweb algorithm</span>
             </div>
           </form>
+          <form id="query_stemweb_ui" action="" method="GET" name="query_stemweb">
+            <div class="button" id="query_stemweb_button"
+               onClick="query_stemweb_progress();">
+              <span>Check progress of Stemweb algorithm</span>
+            </div>
+          </form>
           <form id="run_stexaminer" action="" method="GET" name="run_stexaminer">
             <div class="button" id="stexaminer_button" onClick="$('#run_stexaminer').submit()">
                  <span>Examine variants against this stemma</span>
@@ -153,11 +159,12 @@ var stemwebAlgorithms = [% stemweb_algorithms %];
     </div>
 
        <!-- Stemweb UI dialog box -->
-    <div id="stemweb-ui-dialog">
+    <div id="stemweb-ui-dialog" title="Generate a Stemweb tree">
       <div id="stemweb_ui_container">
        <form id="call_stemweb">
-               <label for="algorithm">Run algorithm:</label><br/>
-               <select id="stemweb_algorithm" name="algorithm"></select>
+               <input id="stemweb_tradition" type="hidden" name="tradition"/>
+               <label for="algorithm">Run algorithm: </label>
+               <select id="stemweb_algorithm" name="algorithm"></select><br/>
                <!-- Algorithm-specific options, if any, will be added within this div -->
                <div id="stemweb_runtime_options"></div>
        </form>
@@ -194,5 +201,10 @@ var stemwebAlgorithms = [% stemweb_algorithms %];
          <p>All spreadsheet collations should be arranged with the witness sigla in the first row, and the words aligned by row each in its correct witness column.</p>
        </div>
       </div>
-    </div>    
+    </div>
+    
+    <div id="root_tree_dialog">
+        Use this node to root the stemma? <img id="root_tree_dialog_button_ok" src="/images/tick_circle_frame_24.png"/>
+    </div>
+    
 [% PROCESS footer.tt %]
\ No newline at end of file