change state of registration with div alert
[angular-drzb] / app / partials / verified.html.ep
1 <h1> Registracija i prijavljivanje izlaganja</h1>
2
3 <form ng-controller="RegistrationCtrl" name="RegistrationForm" class="form-horizontal">
4
5 <div class="alert" ng-class="info.css_class" ng-show="info.message">
6 {{info.message}}
7 </div>
8
9 <fieldset>
10 <legend>
11 <%= locale en => 'Registration', hr => 'Registracija' %>
12 </legend>
13
14 <input
15         type="checkbox"
16         ng-model="registration.verified"
17         ng-change="change_state('verified')"
18         class="my-label-input"
19         label="<%= locale en => 'Verified', hr => 'Provjerena' %>"
20 >
21
22 <select
23         ng-model="registration.state"
24         ng-options="state for state in RegistrationState()"
25         class="my-label-select"
26         label="<%= locale en => 'State', hr => 'Stanje' %>"
27 >
28 </select>
29
30 </fieldset>
31
32 <fieldset>
33 <legend>
34 <%= locale en => 'Fees', hr => 'Plaćanja' %>
35 </legend>
36
37 <input
38         type="text"
39         ng-model="registration.payment.amount"
40         class="my-label-input"
41         label="<%= locale en => 'Amount', hr => 'Iznos' %>"
42         placeholder="50.00 kn"
43         ng-filter="[0-9]+[\.\,]*[0-9]+\s*(kn|eu)"
44 >
45
46 <input
47         type="date"
48         ng-model="registration.payment.date"
49         class="my-label-input"
50         label="<%= locale en => 'Date', hr => 'Datum' %>"
51 >
52
53 </fieldset>
54
55 <button class="btn btn-primary" ng-click="update(registration, registration.state, '<%= locale en => 'Registration saved', hr => 'Registracija spremljena' %>')" ng-show="RegistrationForm.$dirty">
56 <%= locale en => 'Save changes', hr => 'Spremi promjene' %>
57 </button>
58
59 %= $lang =~ m/-dev/ ? '{{registration.payment}} {{registration.state}}' : ''
60
61 <div class="well">
62 %= include 'registration/view'
63 </div>
64
65 </div>
66
67 % if ( $lang =~ m/-dev/ ) {
68 <pre>
69 $dirty = {{RegistrationForm.$dirty}}
70 $pristine = {{RegistrationForm.$pristine}}
71
72 {{registration}}
73 </pre>
74 % }
75
76 </form>
77
78