1 <script src="/data/Work.js"></script>
3 <div ng:controller="Work">
5 <div ng:show="work._id">
6 <a href="#{{work._id}}">permalink to {{work.title}}</a>
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/>
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>
22 [<a href="" ng:click="work.authors.$add()">Add another author</a>]
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>
42 <td>[<a href="" ng:click="work.authors.$add()">Add another author</a>]</td>
54 Naslov: <input name="work.title" size="60"><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>
64 {{$window.location.href}}
65 <pre>work = {{work}}</pre>
66 <pre>master = {{master}}</pre>