<form ng-controller="RegistrationCtrl" name="RegistrationForm" class="form-horizontal">
+<div class="alert" ng-class="info.css_class" ng-show="info.message">
+{{info.message}}
+</div>
+
<fieldset>
<legend>
<%= locale en => 'Registration', hr => 'Registracija' %>
<input
type="checkbox"
ng-model="registration.verified"
- ng-change="registration.state = 'verified'"
+ ng-change="change_state('verified')"
class="my-label-input"
label="<%= locale en => 'Verified', hr => 'Provjerena' %>"
>
</fieldset>
-<button class="btn btn-primary" ng-click="update(registration, registration.state)" ng-show="RegistrationForm.$dirty">Save changes</button>
+<button class="btn btn-primary" ng-click="update(registration, registration.state, '<%= locale en => 'Registration saved', hr => 'Registracija spremljena' %>')" ng-show="RegistrationForm.$dirty">
+<%= locale en => 'Save changes', hr => 'Spremi promjene' %>
+</button>
%= $lang =~ m/-dev/ ? '{{registration.payment}} {{registration.state}}' : ''