registration verfication and state fieldset
[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 <fieldset>
6 <legend>
7 <%= locale en => 'Registration', hr => 'Registracija' %>
8 </legend>
9
10 <input
11         type="checkbox"
12         ng-model="registration.verified"
13         ng-change="registration.state = 'verified'"
14         class="my-label-input"
15         label="<%= locale en => 'Verified', hr => 'Provjerena' %>"
16 >
17
18 <select
19         ng-model="registration.state"
20         ng-options="state for state in RegistrationState()"
21         class="my-label-select"
22         label="<%= locale en => 'State', hr => 'Stanje' %>"
23 >
24 </select>
25
26 </fieldset>
27
28 <fieldset>
29 <legend>
30 <%= locale en => 'Fees', hr => 'Plaćanja' %>
31 </legend>
32
33 <input
34         type="text"
35         ng-model="registration.payment.amount"
36         class="my-label-input"
37         label="<%= locale en => 'Amount', hr => 'Iznos' %>"
38         placeholder="50.00 kn"
39         ng-filter="[0-9]+[\.\,]*[0-9]+\s*(kn|eu)"
40 >
41
42 <input
43         type="date"
44         ng-model="registration.payment.date"
45         class="my-label-input"
46         label="<%= locale en => 'Date', hr => 'Datum' %>"
47 >
48
49 </fieldset>
50
51 <button class="btn btn-primary" ng-click="update(registration, registration.state)" ng-show="RegistrationForm.$dirty">Save changes</button>
52
53 %= $lang =~ m/-dev/ ? '{{registration.payment}} {{registration.state}}' : ''
54
55 <div class="well">
56 %= include 'registration/view'
57 </div>
58
59 </div>
60
61 % if ( $lang =~ m/-dev/ ) {
62 <pre>
63 $dirty = {{RegistrationForm.$dirty}}
64 $pristine = {{RegistrationForm.$pristine}}
65
66 {{registration}}
67 </pre>
68 % }
69
70 </form>
71
72