use it and some bootstrap classes
[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" ng-show="RegistrationTypeCount[type.code] > 0">
11 <hr ng-switch-when="false">
12 <span ng-switch-default>
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 <!--
17  <i>{{type.description}}</i>
18 -->
19 </span>
20 </label>
21
22 <div>
23 Search:
24 <input class="search-query" ng-model="search.$">
25 <a class="btn btn-invert" href="" ng-click="search.$ = ''">
26 <i class="icon-remove"></i></a>
27 <b>{{list.length}} results</b>
28 <tt>{{search}}</tt>
29 </div>
30
31 <div ng-show="list.length">
32
33 <h2>Prijavljenje registracije {{search.registration_type}}</h2>
34
35
36 <ol>
37 <li ng-repeat="registration in list">
38  <a class="btn" href="#/registration/{{registration.id}}">edit</a>
39  {{registration.user.registration_type}}
40  {{registration._id | registration_date_time}}
41  <a class="btn" href="#/confirmation/{{registration.id}}" title="confirmation"><tt>{{registration.id}}</tt></a>
42 % if ( $lang =~ m/-dev/ ) {
43  <a class="btn" href="<%= $couchdb_view %>/{{registration._id}}" target="couchdb">couchdb</a>
44 % }
45
46         <p>
47          {{registration.user.firstname}}
48          {{registration.user.surname}}
49          <em>{{registration.user.organization}}</em>,
50          {{registration.user.city}},
51          <i>{{registration.user.country}}</i>
52          <tt>&lt;{{registration.user.email}}&gt;</tt>
53         </p>
54
55 <p ng-show="registration.user.registration_type == 'symposium'">
56 {{registration.symposium.title}}
57  <p class="abstract">
58  {{registration.symposium.abstract}}
59  </p>
60 </p>
61
62 <h3 ng-show="registration.work.title">
63 {{registration.work.title}}
64 </h3>
65
66 <p ng-repeat="author in registration.work.persons" >
67  {{author.firstname}}
68  {{author.surname}},
69  <em>{{author.organization}}</em>
70  <tt>&lt;{{author.email}}&gt;</tt>
71 </p>
72
73 <p class="abstract">{{registration.work.abstract}}</p>
74
75 <ol ng-show="registration.user.registration_type == 'symposium'">
76  <li ng-repeat="work in registration.work.symposium_works">
77   <h4>{{work.title}}</h4>
78
79         <p ng-repeat="author in work.persons" >
80          {{author.firstname}}
81          {{author.surname}},
82          <em>{{author.organization}}</em>
83          <tt>&lt;{{author.email}}&gt;</tt>
84         </p>
85
86     <p class="abstract">{{work.abstract}}</p>
87
88  </li>
89
90 </ol>
91
92 </div><!-- ng-show="list.length"-->
93
94 </form>
95