translate example app back into english
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 5 Nov 2010 22:40:23 +0000 (23:40 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 5 Nov 2010 22:40:23 +0000 (23:40 +0100)
templates/conference/Work.html.ep

index cf83fb0..ebd53c3 100644 (file)
@@ -8,7 +8,7 @@ function Work($resource){
                title: '',
                abstract: '',
                authors:[ { name:'', surname:'', inst:'', email:'' } ],
-               symposium: { authors: [ {name:'', surname:'', inst:'', email:'' } ], work_nr: 1, },
+               symposium: { organizer: [ {name:'', surname:'', inst:'', email:'' } ], work_nr: 1, },
                _changes: 0,
        };
        this.Work = $resource( '/data/conference/Work/:_id', { _id:'' } );
@@ -78,12 +78,12 @@ console.debug( 'reset', current_symposium, this.work, this.$location.hashPath );
 
 </script>
 
-<h1>Prijava rada</h1>
+<h1>Conference work submission</h1>
 
 <div ng:controller="Work" ng:init="$window.$root = this; work._changes = 0" ng:eval="work._changes = work._changes + 1">
 
-<h2>Vrsta rada:</h2>
-<input type="radio" name="work.type" value="symposium"> Simpozij
+<h2>Type of work:</h2>
+<label><input type="radio" name="work.type" value="symposium"> Symposium</label>
 
 <div ng:show="work.type == 'symposium'" style="background:#f0f0f0">
 <!--
@@ -92,33 +92,35 @@ console.debug( 'reset', current_symposium, this.work, this.$location.hashPath );
 </select>
 -->
 
-Tema simpozija: <input name="work.symposium.title" size="60" ng:required><br/>
+<label>Topic of symposium: <input name="work.symposium.title" size="60" ng:required></label><br/>
    
-Sažetak: <br/>
-<textarea name="work.symposium.abstract" cols="50" rows="5"></textarea> <br/>
+<label>Summary: <br/>
+<textarea name="work.symposium.abstract" cols="50" rows="5"></textarea>
+</label>
+<br/>
 
-Organizator:
-<div ng:repeat="author in work.symposium.authors">
-[<a href="" ng:click="work.symposium.authors.$remove(author)">X</a>]
+Organizer:
+<div ng:repeat="author in work.symposium.organizer">
+[<a href="" ng:click="work.symposium.organizer.$remove(author)">X</a>]
 <input name="author.name" ng:required>
 <input name="author.surname" ng:required>
 <input name="author.inst" >
 <input name="author.email" ng:required>
 </div>
-[<a href="" ng:click="work.symposium.authors.$add()">Add another organizer</a>]
+[<a href="" ng:click="work.symposium.organizer.$add()">Add another organizer</a>]
 
 </div>
 
 <br/>
 
-       <input type="radio" name="work.type" value="lecture"> Predavanje <br/>
-       <input type="radio" name="work.type" value="poster"> Poster <br/>
-       <input type="radio" name="work.type" value="round"> Okrugli stol <br/>
+<label><input type="radio" name="work.type" value="lecture"> Lecture</label><br/>
+<label><input type="radio" name="work.type" value="poster"> Poster</label><br/>
+<label><input type="radio" name="work.type" value="round"> Round table</label><br/>
 
 <hr>
 
 <div ng:show="symposium">
-Radovi prijavljeni u ovom simpoziju:
+Works which are part of this symposium:
 <ol>
 <li ng:repeat="w in symposium.works"><a href="#{{w._id}}">{{w.title}}</a></li>
 </ol>
@@ -166,21 +168,23 @@ Radovi prijavljeni u ovom simpoziju:
 <hr>    
 
 
-   Naslov: <input name="work.title" size="60" ng:required><br/>
+<label>Title: <input name="work.title" size="60" ng:required></label><br/>
 
-   Sazetak: <br/>
-    <textarea name="work.abstract" cols="50" rows="5"></textarea> <br/>
+<label>Summary:<br>
+<textarea name="work.abstract" cols="50" rows="5"></textarea>
+</label>
+<br/>
 
-       <span ng:show="$invalidWidgets.visible() == 0">
-    <input type="submit" value="Save" ng:click="work.symposium_id=symposium._id; save();" ng:show="work._changes" title="{{work._changes}} changes">
-    <input type="reset" value="Novi rad" ng:click="reset()" ng:show="work && work._id">
-       </span>
+<span ng:show="$invalidWidgets.visible() == 0">
+<input type="submit" value="Save" ng:click="work.symposium_id=symposium._id; save();" ng:show="work._changes" title="{{work._changes}} changes">
+<input type="reset" value="Novi rad" ng:click="reset()" ng:show="work && work._id">
+</span>
 
-       <b ng:show="$invalidWidgets.visible() &gt; 0" style="color:#800">{{$invalidWidgets.visible()}} errors to fix in submission form</b>
+<b ng:show="$invalidWidgets.visible() &gt; 0" style="color:#800">{{$invalidWidgets.visible()}} errors to fix in submission form</b>
 
-       <div ng:show="work._id">
-       <a href="#{{work._id}}">permalink to {{work.title}}</a>
-       </div>
+<div ng:show="work._id">
+Permalink to <a href="#{{work._id}}">{{work.title}}</a> which you can bookmark
+</div>
 
 <hr>
 Debug Information: