94aff86ad2875a60be6e625f7d1990ed72039021
[angular-mojolicious.git] / templates / conference / Work.html.ep
1 <script src="/data/Work.js"></script>
2
3 <div ng:controller="Work">
4
5 <div ng:show="work._id">
6 <a href="#{{work._id}}">permalink to {{work.title}}</a>
7 </div>
8
9         <label>Vrsta rada:</label><br/>
10         <input type="radio" name="work.type" value="simp"> Simpozij <br/>
11         <input type="radio" name="work.type" value="pred"> Predavanje <br/>
12         <input type="radio" name="work.type" value="poster"> Poster <br/>
13         <input type="radio" name="work.type" value="round"> Okrugli stol <br/>
14
15 <div ng:repeat="author in work.authors">
16 [<a href="" ng:click="work.authors.$remove(author)">X</a>]
17 <input name="author.name" ng:required>
18 <input name="author.surname" ng:required>
19 <input name="author.inst" >
20 <input name="author.email" ng:required>
21 </div>
22 [<a href="" ng:click="work.authors.$add()">Add another author</a>]
23 <!--
24
25     <table>
26       <tr>
27         <th> </th>
28         <th>Ime</th>
29         <th>Prezime</th>
30         <th>Ustanova</th>
31         <th>email</th>
32       </tr>
33       <tr ng:repeat="author in work.authors">
34         <td>[<a href="" ng:click="work.authors.$remove(author)">X</a>]</td>
35         <td><input name="author.name" ng:required></td>
36         <td><input name="author.surname" ng:required></td>
37         <td><input name="author.inst" ></td>
38         <td><input name="author.email" ng:required></td>
39       </tr>
40       <tr>
41         <td> </td>
42         <td>[<a href="" ng:click="work.authors.$add()">Add another author</a>]</td>
43         <td> </td>
44         <td> </td>
45         <td> </td>
46       </tr>
47     </table>
48
49 -->
50
51 <hr>    
52
53
54    Naslov: <input name="work.title" size="60"><br/>
55    
56    Sazetak: <br/>
57     <textarea name="work.abstract" cols="50" rows="5"></textarea> <br/>
58     <input type="submit" value="Save" ng:click="save();" disabled="{{$invalidWidgets}}">
59     <input type="reset" value="Reset" ng:click="reset()">
60         <a href="Work">Novi rad</a>
61
62 <hr>
63 Debug Information:
64 {{$window.location.href}}
65 <pre>work = {{work}}</pre>
66 <pre>master = {{master}}</pre>
67
68 <pre>
69 $id={{$id}}
70 work.$id={{work.$id}}
71 work._id={{work._id}}
72 </pre>
73
74 </div>