restore original table template
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 1 Nov 2010 15:35:24 +0000 (16:35 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 1 Nov 2010 15:35:24 +0000 (16:35 +0100)
templates/conference/Work.html.ep

index 56a6959..4190fb5 100644 (file)
@@ -41,7 +41,7 @@ work._id={{work._id}}
        <input type="radio" name="work.type" value="poster"> Poster <br/>
        <input type="radio" name="work.type" value="round"> Okrugli stol <br/>
 
        <input type="radio" name="work.type" value="poster"> Poster <br/>
        <input type="radio" name="work.type" value="round"> Okrugli stol <br/>
 
-
+<!--
 <div ng:repeat="author in work.authors">
 [<a href="#" ng:click="work.authors.$remove(author)">X</a>]
 <input name="author.name" ng:required>
 <div ng:repeat="author in work.authors">
 [<a href="#" ng:click="work.authors.$remove(author)">X</a>]
 <input name="author.name" ng:required>
@@ -50,18 +50,46 @@ work._id={{work._id}}
 <input name="author.email" ng:required>
 </div>
 [<a href="#" ng:click="work.authors.$add()">Add another author</a>]
 <input name="author.email" ng:required>
 </div>
 [<a href="#" ng:click="work.authors.$add()">Add another author</a>]
+-->
+
+    <table>
+      <tr>
+        <th> </th>
+        <th>Ime</th>
+        <th>Prezime</th>
+        <th>Ustanova</th>
+        <th>email</th>
+      </tr>
+      <tr ng:repeat="author in work.authors">
+        <td>[<a href="#" ng:click="work.authors.$remove(author)">X</a>]</td>
+        <td><input name="author.name" ng:required></td>
+        <td><input name="author.surname" ng:required></td>
+        <td><input name="author.inst" ></td>
+        <td><input name="author.email" ng:required></td>
+      </tr>
+      <tr>
+        <td> </td>
+        <td>[<a href="" ng:click="work.authors.$add()">Add another author</a>]</td>
+        <td> </td>
+        <td> </td>
+        <td> </td>
+      </tr>
+    </table>
 
 
 
 
+<hr>    
 
 
    Naslov: <input name="work.title" size="60"><br/>
    
    Sazetak: <br/>
 
 
    Naslov: <input name="work.title" size="60"><br/>
    
    Sazetak: <br/>
+    <textarea name="work.abstract" cols="50" rows="5"></textarea> <br/>
     <input type="submit" value="Save" ng:click="save()" disabled="{{$invalidWidgets}}">
 
 
 
 
     <input type="submit" value="Save" ng:click="save()" disabled="{{$invalidWidgets}}">
 
 
 
 
+<hr>
 Debug Information:
 {{$window.location.href}}
 <pre>work = {{work}}</pre>
 Debug Information:
 {{$window.location.href}}
 <pre>work = {{work}}</pre>