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