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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a44148d5c328ee5dc00a79189f3c6e59887574ccafef4a3f5756db14a5e2bb65
4
- data.tar.gz: 0710a56e7b75039606a4a3c48ef85cb8ea2e6d427a5df5f057f10eadce0301ab
3
+ metadata.gz: 30cd0ea67b50ba1e161491efbd53c9d824502c6dd90996aac862d8b23dc64b6e
4
+ data.tar.gz: bfb63add0b840dc0c40465bd213a020b68d510c9de7be91d9846851316232cd9
5
5
  SHA512:
6
- metadata.gz: 65d3e9a13c9d4e584a5a5fa9a0b04e7c3426c293bdf9fa6d9ae8b9b64f0417ba60e739427b0f500200fb6bce0933ab93650952640cc25377f6075a8468a548d2
7
- data.tar.gz: 9724af21431b3b53e8e575c1150f240d8492163e2569336b686298d2cb5980b04765fa4ea7c9003d41f746e620173bdc4c983aba7b526c2b24a63df7025159d9
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
-
@@ -26,4 +26,3 @@
26
26
  .col-md-4
27
27
  = paginate @registration_requests
28
28
  .col-md-4
29
-
@@ -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
-
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egov_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr