Include text direction as editable attribute of a tradition
[scpubgit/stemmaweb.git] / root / src / index.tt
index 71d15fe..2437e54 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">
@@ -120,6 +120,12 @@ var textOnLoad = "[% withtradition %]";
                <input id="edit_language" type="text" size="12" name="language"/>
                <label for="edit_public">Publicly viewable: </label>
                <input id="edit_public" type="checkbox" name="public"/><br/>
+               <label for="edit_direction">Text direction: </label>
+               <select id="edit_direction" name="direction">
+                       <option value="LR" selected>Left-to-right</option>
+                       <option value="RL">Right-to-left</option>
+                       <option value="BI">Bidirectional</option>
+               </select><br/>
 [% IF c.user_exists -%]
 [% IF c.user.get_object.is_admin -%]
                <label for="edit_owner">Tradition owner: </label>
@@ -167,8 +173,8 @@ var textOnLoad = "[% withtradition %]";
     <div id="stemweb-ui-dialog" title="Generate a Stemweb tree">
       <div id="stemweb_ui_container">
                <div id="sponsor_container">
-                       <img id="hiit_logo" align="left" src="[% c.uri_for( '/images/hiit_logo.jpg' ) %]"></img>
-                       <img id="eadh_logo" align="right" src="[% c.uri_for( '/images/eadh-150.png' ) %]"></img>
+                       <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>
@@ -225,6 +231,15 @@ var textOnLoad = "[% withtradition %]";
             <input id="new_name" type="text" name="name" size="40"/><br/>
             <label for="new_lang">Primary language of the text: </label>
             <input id="new_lang" type="text" name="language" size="20"/><br/>
+
+            <label for="direction">Text direction:</label>
+
+            <select name="direction" id="direction">
+                <option value="LR" selected>Left to Right</option>
+                <option value="RL">Right to Left</option>
+                <option value="BI">Bi-directional</option>
+            </select><Br/>
+
             <label for="new_public">Allow public display: </label>
             <input id="new_public" name="public" type="checkbox"/><br/>
         </form>