return couchdb link in -dev mode
[angular-drzb] / app / partials / list.html.ep
1 <div ng-show="! ready">
2 Loading data...
3 </div>
4
5
6 <form ng-controller="ListCtrl" class="form-search" ng-show="ready">
7
8 <h2>Odaberite tip registracije</h2>
9
10 <label class="radio input-block-level" ng-repeat="type in RegistrationTypes" ng-switch on="type.code">
11 <hr ng-switch-when="false">
12 <span ng-switch-default ng-show="RegistrationTypeCount[type.code] > 0">
13  <tt>{{RegistrationTypeCount[type.code]}}</tt>
14  <input type="radio" name="search.registration_type" ng-model="search.registration_type" value="{{type.code}}" >
15  {{type.label}}
16  <i>{{type.description}}</i>
17 </span>
18 </label>
19
20 <div>
21 Search:
22 <input class="search-query" ng-model="search.$">
23 <a class="btn btn-invert" href="" ng-click="search.$ = ''">
24 <i class="icon-remove"></i></a>
25 <b>{{list.length}} results</b>
26 <tt>{{search}}</tt>
27 </div>
28
29 <div ng-show="list.length">
30
31 <h2>Prijavljenje registracije {{search.registration_type}}</h2>
32
33
34 <ol>
35 <li ng-repeat="registration in list">
36  <a href="#/registration/{{registration.id}}">edit</a>
37  {{registration.user.registration_type}}
38  <tt>{{registration._id}}</tt>
39  {{registration._id | registration_timestamp}}
40 % if ( $lang =~ m/-dev/ ) {
41  <a href="<%= $couchdb_view %>{{registration._id}}" target="couchdb">couchdb</a>
42 % }
43
44         <p>
45          {{registration.user.firstname}}
46          {{registration.user.surname}}
47          <em>{{registration.user.organization}}</em>,
48          {{registration.user.city}},
49          <i>{{registration.user.country}}</i>
50          <tt>&lt;{{registration.user.email}}&gt;</tt>
51         </p>
52
53 <p ng-show="registration.user.registration_type == 'symposium'">
54 {{registration.symposium.title}}
55  <p class="abstract">
56  {{registration.symposium.abstract}}
57  </p>
58 </p>
59
60 <h3 ng-show="registration.work.title">
61 {{registration.work.title}}
62 </h3>
63
64 <p ng-repeat="author in registration.work.persons" >
65  {{author.firstname}}
66  {{author.surname}},
67  <em>{{author.organization}}</em>
68  <tt>&lt;{{author.email}}&gt;</tt>
69 </p>
70
71 <p class="abstract">{{registration.work.abstract}}</p>
72
73 <ol ng-show="registration.user.registration_type == 'symposium'">
74  <li ng-repeat="work in registration.work.symposium_works">
75   <h4>{{work.title}}</h4>
76
77         <p ng-repeat="author in work.persons" >
78          {{author.firstname}}
79          {{author.surname}},
80          <em>{{author.organization}}</em>
81          <tt>&lt;{{author.email}}&gt;</tt>
82         </p>
83
84     <p class="abstract">{{work.abstract}}</p>
85
86  </li>
87
88 </ol>
89
90 </div><!-- ng-show="list.length"-->
91
92 </form>
93