egov_utils 1.2.1 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/egov_utils/registration_requests/create.rb +3 -1
- data/app/views/egov_utils/registration_requests/index.html.haml +0 -1
- data/app/views/egov_utils/registration_requests/new.html.haml +7 -1
- data/app/views/egov_utils/registration_requests/show.html.haml +9 -1
- data/lib/egov_utils/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30cd0ea67b50ba1e161491efbd53c9d824502c6dd90996aac862d8b23dc64b6e
|
4
|
+
data.tar.gz: bfb63add0b840dc0c40465bd213a020b68d510c9de7be91d9846851316232cd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e4e88ab216f85bf4214a7726e498bb6d0f3ae27d3147c05b420d450f6c39ccf58682f3d69a2a5fd4f9c89f2ba3e039a2ee8d915d59aede67e81e1e43c198117
|
7
|
+
data.tar.gz: 0e4988d07b58c5d161a5cbe09f1fe98196991e2ba77b460588408a8c31f9e69cf1c0ddad0ffc2b849a1c581c82731535446491314c6230050b179d923bc1db9d
|
@@ -6,6 +6,9 @@ module EgovUtils
|
|
6
6
|
string :lastname
|
7
7
|
string :organization
|
8
8
|
string :note
|
9
|
+
string :supervisor_name
|
10
|
+
string :supervisor_phone
|
11
|
+
string :supervisor_email
|
9
12
|
|
10
13
|
def execute
|
11
14
|
request = RegistrationRequest.create(inputs.merge(status: :pending))
|
@@ -22,4 +25,3 @@ module EgovUtils
|
|
22
25
|
end
|
23
26
|
end
|
24
27
|
end
|
25
|
-
|
@@ -1,9 +1,15 @@
|
|
1
1
|
%h1= t('.title')
|
2
2
|
|
3
|
-
= bootstrap_form_for(@registration_request) do |f|
|
3
|
+
= bootstrap_form_for(@registration_request, url: egov_utils.registration_requests_path) do |f|
|
4
|
+
%h2= t('.request_details')
|
4
5
|
= f.text_field(:mail)
|
5
6
|
= f.text_field(:firstname)
|
6
7
|
= f.text_field(:lastname)
|
7
8
|
= f.text_field(:organization)
|
8
9
|
= f.text_field(:note)
|
10
|
+
%h2= t('.supervisor')
|
11
|
+
%em= t('.supervisor_info')
|
12
|
+
= f.text_field(:supervisor_name)
|
13
|
+
= f.text_field(:supervisor_email)
|
14
|
+
= f.text_field(:supervisor_phone)
|
9
15
|
= f.submit t(:label_registration_request)
|
@@ -17,6 +17,15 @@
|
|
17
17
|
%tr
|
18
18
|
%th= EgovUtils::RegistrationRequest.human_attribute_name('note')
|
19
19
|
%td= @registration_request.note
|
20
|
+
%tr
|
21
|
+
%th= EgovUtils::RegistrationRequest.human_attribute_name('supervisor_name')
|
22
|
+
%td= @registration_request.supervisor_name
|
23
|
+
%tr
|
24
|
+
%th= EgovUtils::RegistrationRequest.human_attribute_name('supervisor_email')
|
25
|
+
%td= @registration_request.supervisor_email
|
26
|
+
%tr
|
27
|
+
%th= EgovUtils::RegistrationRequest.human_attribute_name('supervisor_phone')
|
28
|
+
%td= @registration_request.supervisor_phone
|
20
29
|
%tr
|
21
30
|
%th= EgovUtils::RegistrationRequest.human_attribute_name('created_at')
|
22
31
|
%td= l(@registration_request.created_at)
|
@@ -48,4 +57,3 @@
|
|
48
57
|
$('#registration_request_status').val(status);
|
49
58
|
});
|
50
59
|
});
|
51
|
-
|
data/lib/egov_utils/version.rb
CHANGED