Reuse the stemweb dialog for queries. Fixes #44
[scpubgit/stemmaweb.git] / root / src / index.tt
index 495c426..4066c6e 100644 (file)
@@ -78,7 +78,7 @@ var textOnLoad = "[% withtradition %]";
           <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>
+              <span>Check Stemweb progress</span>
             </div>
           </form>
           <form id="run_stexaminer" action="" method="GET" name="run_stexaminer">
@@ -166,7 +166,14 @@ var textOnLoad = "[% withtradition %]";
        <!-- Stemweb UI dialog box -->
     <div id="stemweb-ui-dialog" title="Generate a Stemweb tree">
       <div id="stemweb_ui_container">
-       <form id="call_stemweb">
+               <div id="sponsor_container">
+                       <img id="hiit_logo" src="[% c.uri_for( '/images/hiit_logo.jpg' ) %]"></img>
+                       <img id="eadh_logo" src="[% c.uri_for( '/images/eadh-150.png' ) %]"></img>
+                       <p>Stemweb is a webservice provided by the Helsinki Institute for Information Technology HIIT. The integration into Stemmaweb was generously supported by a small project grant from the European Association for Digital Humanities.
+                       </p>
+               </div>
+               <hr/>
+               <form id="call_stemweb">
                <input id="stemweb_tradition" type="hidden" name="tradition"/>
                <h5>Choose an algorithm</h5>
                <label for="algorithm">Run algorithm: </label>
@@ -174,7 +181,7 @@ var textOnLoad = "[% withtradition %]";
                <span id="stemweb_algorithm_help">What is this?</span><br/>
                        <div id="stemweb_algorithm_desc_text"></div>
                        <br/>
-                       <h5>Select the options</h5>
+                       <h5>Set the options</h5>
                <!-- Algorithm-specific options, if any, will be added within this div -->
                <div id="stemweb_runtime_options"></div>
                <br/>
@@ -183,9 +190,6 @@ var textOnLoad = "[% withtradition %]";
                        <label for="merge_reltypes">Disregard variation of type:</label>
                        <select multiple name="merge_reltypes" id="stemweb_merge_reltypes"></select>
                </div>
-               <div id="eadh_logo_container">
-                   <img id="eadh_logo" src="[% c.uri_for( '/images/eadh-150.png' ) %]"></img>
-               </div>
        </form>
        <div id="stemweb_run_status"></div>
       </div>