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