- add audit traces to every store: _last_modified: timestamp, _ip: ip, _userid: userid
- count by orgnization, user.name, edit links
- print works.summary by registration.type
-- registration.accepted: checkbox
++ registration.verified: checkbox
? registration.review = {
- accpeted: checkbox
- persons: {
$routeProvider.when('/registration/:registrationId', {templateUrl: 'partials/registration.html', controller: RegistrationCtrl});
$routeProvider.when('/confirmation/:registrationId', {templateUrl: 'partials/confirmation.html', controller: RegistrationCtrl});
$routeProvider.when('/draft/:registrationId', {templateUrl: 'partials/draft.html', controller: RegistrationCtrl});
- $routeProvider.when('/accepted/:registrationId', {templateUrl: 'partials/accepted.html', controller: RegistrationCtrl});
+ $routeProvider.when('/verified/:registrationId', {templateUrl: 'partials/verified.html', controller: RegistrationCtrl});
$routeProvider.when('/list', {templateUrl: 'partials/list.html', controller: ListCtrl});
$routeProvider.otherwise({redirectTo: '/registration/'});
}]);
+++ /dev/null
-<h1> Registracija i prijavljivanje izlaganja</h1>
-
-<form ng-controller="RegistrationCtrl" name="RegistrationForm" class="form-horizontal">
-
-<fieldset>
-<legend>
-<%= locale en => 'Registration status', hr => 'Status registracije' %>
-</legend>
-
-<label class="checkbox">
-<input type="checkbox" ng-model="registration.accepted">
-<%= locale
-en => 'Registration verified',
-hr => 'Provjerena registracija' %>
-</label>
-
-<fieldset>
-<legend>
-<%= locale en => 'Fees', hr => 'Plaćanja' %>
-</legend>
-
-<input
- type="text"
- ng-model="registration.payment.amount"
- class="my-label-input"
- label="<%= locale en => 'Amount', hr => 'Iznos' %>"
- placeholder="50.00 kn"
- ng-filter="[0-9]+[\.\,]*[0-9]+\s*(kn|eu)"
->
-
-<input
- type="date"
- ng-model="registration.payment.date"
- class="my-label-input"
- label="<%= locale en => 'Date', hr => 'Datum' %>"
->
-
-</fieldset>
-
-<button class="btn btn-primary" ng-click="update(registration,'accepted')" ng-show="RegistrationForm.$dirty">Save changes</button>
-
-%= $lang =~ m/-dev/ ? '{{registration.payment}}' : ''
-
-<div class="well">
-%= include 'registration/view'
-</div>
-
-</div>
-
-% if ( $lang =~ m/-dev/ ) {
-<pre>
-$dirty = {{RegistrationForm.$dirty}}
-$pristine = {{RegistrationForm.$pristine}}
-
-{{registration}}
-</pre>
-% }
-
-</form>
-
-
<br>
<button ng-click="search.$ = 'draft'">draft</button>
<button ng-click="search.$ = 'confirmation'">confirmation</button>
-<button ng-click="search.$ = 'accepted'">accepted</button>
+<button ng-click="search.$ = 'verified'">verified</button>
<input type="number" ng-model="pager.page" min="1" max="{{pager.last_page}}">
<input type="number" ng-model="pager.limit">
<li ng-repeat="registration in list">
{{registration.nr}}
-<a class="btn btn-primary" href="#/accepted/{{registration.id}}" target="{{registration.id}}">change status</a>
+<a class="btn btn-primary" href="#/verified/{{registration.id}}" target="{{registration.id}}">change status</a>
%= include 'registration/view'
</li>
--- /dev/null
+<h1> Registracija i prijavljivanje izlaganja</h1>
+
+<form ng-controller="RegistrationCtrl" name="RegistrationForm" class="form-horizontal">
+
+<fieldset>
+<legend>
+<%= locale en => 'Registration status', hr => 'Status registracije' %>
+</legend>
+
+<label class="checkbox">
+<input type="checkbox" ng-model="registration.verified">
+<%= locale
+en => 'Registration verified',
+hr => 'Provjerena registracija' %>
+</label>
+
+<fieldset>
+<legend>
+<%= locale en => 'Fees', hr => 'Plaćanja' %>
+</legend>
+
+<input
+ type="text"
+ ng-model="registration.payment.amount"
+ class="my-label-input"
+ label="<%= locale en => 'Amount', hr => 'Iznos' %>"
+ placeholder="50.00 kn"
+ ng-filter="[0-9]+[\.\,]*[0-9]+\s*(kn|eu)"
+>
+
+<input
+ type="date"
+ ng-model="registration.payment.date"
+ class="my-label-input"
+ label="<%= locale en => 'Date', hr => 'Datum' %>"
+>
+
+</fieldset>
+
+<button class="btn btn-primary" ng-click="update(registration,'verified')" ng-show="RegistrationForm.$dirty">Save changes</button>
+
+%= $lang =~ m/-dev/ ? '{{registration.payment}}' : ''
+
+<div class="well">
+%= include 'registration/view'
+</div>
+
+</div>
+
+% if ( $lang =~ m/-dev/ ) {
+<pre>
+$dirty = {{RegistrationForm.$dirty}}
+$pristine = {{RegistrationForm.$pristine}}
+
+{{registration}}
+</pre>
+% }
+
+</form>
+
+