templates for two other partials
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 8 Jan 2013 20:46:37 +0000 (21:46 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 8 Jan 2013 20:46:53 +0000 (21:46 +0100)
app/partials/confirmation.html.ep [new file with mode: 0644]
app/partials/list.html.ep [new file with mode: 0644]

diff --git a/app/partials/confirmation.html.ep b/app/partials/confirmation.html.ep
new file mode 100644 (file)
index 0000000..6371d8a
--- /dev/null
@@ -0,0 +1,36 @@
+<h1> Registracija i prijavljivanje izlaganja</h1>
+
+
+<div ng-controller="RegistrationCtrl" name="RegistrationForm">
+
+Thank you. Your proposal has been submitted successfully!
+<br/><br/>
+Registration number: {{registration.id}}
+<br/><br/>
+{{user.firstname}}
+{{user.surname}}<br/>
+<span ng-show="user.organization">
+{{user.organization}}
+</span>
+<br/>
+<div class="gohome">
+       <a href="http://psihologija.ffzg.unizg.hr/drzb2013-eng/sudjelovanje/kotizacija">Please read registration fee payment instructions</a>
+       <br><br>Please send proof of payment of registration fee to the following address: <a href="mailto:drzb@ffzg.hr">drzb@ffzg.hr</a>
+</div>
+
+<!--
+<pre>
+user={{user}}
+
+$routeParams={{$routeParams}}
+
+{{RegistrationForm.$valid}}
+{{RegistrationForm.$error}}
+
+location={{$location}}
+
+</pre>
+-->
+</div>
+
+
diff --git a/app/partials/list.html.ep b/app/partials/list.html.ep
new file mode 100644 (file)
index 0000000..b7f3989
--- /dev/null
@@ -0,0 +1,89 @@
+<div ng-show="! ready">
+Loading data...
+</div>
+
+
+<form ng-controller="ListCtrl" class="form-search" ng-show="ready">
+
+<h2>Odaberite tip registracije</h2>
+
+<label class="radio input-block-level" ng-repeat="type in RegistrationTypes" ng-switch on="type.code">
+<hr ng-switch-when="false">
+<span ng-switch-default ng-show="RegistrationTypeCount[type.code] > 0">
+ <tt>{{RegistrationTypeCount[type.code]}}</tt>
+ <input type="radio" name="search.registration_type" ng-model="search.registration_type" value="{{type.code}}" >
+ {{type.label}}
+ <i>{{type.description}}</i>
+</span>
+</label>
+
+<div>
+Search:
+<input class="search-query" ng-model="search.$">
+<a class="btn btn-invert" href="" ng-click="search.$ = ''">
+<i class="icon-remove"></i></a>
+<b>{{list.length}} results</b>
+<tt>{{search}}</tt>
+</div>
+
+<div ng-show="list.length">
+
+<h2>Prijavljenje registracije {{search.registration_type}}</h2>
+
+
+<ol>
+<li ng-repeat="registration in list">
+ <a href="#/registration/{{registration.id}}">edit</a>
+ {{registration.user.registration_type}}
+ <tt>{{registration._id}}</tt>
+
+       <p>
+        {{registration.user.firstname}}
+        {{registration.user.surname}}
+        <em>{{registration.user.organization}}</em>,
+        {{registration.user.city}},
+        <i>{{registration.user.country}}</i>
+        <tt>&lt;{{registration.user.email}}&gt;</tt>
+       </p>
+
+<p ng-show="registration.user.registration_type == 'symposium'">
+{{registration.symposium.title}}
+ <p class="abstract">
+ {{registration.symposium.abstract}}
+ </p>
+</p>
+
+<h3 ng-show="registration.work.title">
+{{registration.work.title}}
+</h3>
+
+<p ng-repeat="author in registration.work.persons" >
+ {{author.firstname}}
+ {{author.surname}},
+ <em>{{author.organization}}</em>
+ <tt>&lt;{{author.email}}&gt;</tt>
+</p>
+
+<p class="abstract">{{registration.work.abstract}}</p>
+
+<ol ng-show="registration.user.registration_type == 'symposium'">
+ <li ng-repeat="work in registration.work.symposium_works">
+  <h4>{{work.title}}</h4>
+
+       <p ng-repeat="author in work.persons" >
+        {{author.firstname}}
+        {{author.surname}},
+        <em>{{author.organization}}</em>
+        <tt>&lt;{{author.email}}&gt;</tt>
+       </p>
+
+    <p class="abstract">{{work.abstract}}</p>
+
+ </li>
+
+</ol>
+
+</div><!-- ng-show="list.length"-->
+
+</form>
+