accepted page become more like registration status
[angular-drzb] / app / partials / accepted.html.ep
1 <h1> Registracija i prijavljivanje izlaganja</h1>
2
3 <form ng-controller="RegistrationCtrl" name="RegistrationForm" class="form-horizontal">
4
5 <fieldset>
6 <legend>
7 <%= locale en => 'Registration status', hr => 'Status registracije' %>
8 </legend>
9
10 <label class="checkbox">
11 <input type="checkbox" ng-model="registration.accepted">
12 <%= locale
13 en => 'Registration verified',
14 hr => 'Provjerena registracija' %>
15 </label>
16
17 <fieldset>
18 <legend>
19 <%= locale en => 'Fees', hr => 'Plaćanja' %>
20 </legend>
21
22 <input
23         type="number"
24         ng-model="registration.payment.amount"
25         class="my-label-input"
26         label="<%= locale en => 'Amount', hr => 'Iznos' %>"
27 >
28
29 <input
30         type="date"
31         ng-model="registration.payment.date"
32         class="my-label-input"
33         label="<%= locale en => 'Date', hr => 'Datum' %>"
34 >
35
36 </fieldset>
37
38 <button class="btn btn-primary" ng-click="update(registration,'accepted')" ng-show="RegistrationForm.$dirty">Save changes</button>
39
40 %= $lang =~ m/-dev/ ? '{{registration.payment}}' : ''
41
42 <div class="well">
43 %= include 'registration/view'
44 </div>
45
46 </div>
47
48 % if ( $lang =~ m/-dev/ ) {
49 <pre>
50 $dirty = {{RegistrationForm.$dirty}}
51 $pristine = {{RegistrationForm.$pristine}}
52
53 {{registration}}
54 </pre>
55 % }
56
57 </form>
58
59