egov_utils 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/egov_utils/egov_utils.scss +2 -0
- data/app/attributes/egov_utils/full_address.rb +1 -1
- data/app/controllers/egov_utils/groups_controller.rb +1 -0
- data/app/models/egov_utils/group.rb +1 -1
- data/app/views/egov_utils/groups/show.html.haml +4 -3
- data/lib/azahara_schema_currency.rb +2 -0
- data/lib/azahara_schema_currency/aggregation_attribute_patch.rb +9 -0
- data/lib/azahara_schema_currency/attribute_formatter_patch.rb +1 -1
- data/lib/azahara_schema_currency/currency_attribute.rb +6 -0
- data/lib/egov_utils/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95806a00ea00056d9b5fde6021f6c21396b32e2df79cd83013c5037d6b70e8bd
|
4
|
+
data.tar.gz: f4b1b82603961bfa405a571a3334f9d314e6ae7d1a4129207c20a7443ea5be18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1940243795ec41628b229e5c8c11d4cf72c9756a64b392bffda8ca592fb352acf5c9b0f827f8984b15e249908a2d8ec101b1626f00c2f2b55b2c61a9c044937f
|
7
|
+
data.tar.gz: bfa492468b390a86787ea875592fa4b2708044f5d24060621df3547262926d6136d351ce9dc92cfa0bcef5cb3c410e60dc1c8f2b5efc8dc15bdb9678bdf12487
|
@@ -2,7 +2,7 @@ module EgovUtils
|
|
2
2
|
class FullAddress < AzaharaSchema::DerivedAttribute
|
3
3
|
|
4
4
|
def initialize(model, name, **options)
|
5
|
-
super(model, name, :concat, 'city', 'street', options)
|
5
|
+
super(model, name, :concat, 'postcode', 'city', 'street', 'number', options)
|
6
6
|
end
|
7
7
|
|
8
8
|
def build_json_options!(options)
|
@@ -1,8 +1,9 @@
|
|
1
1
|
%h2= @group.name
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
- if @group.allow_member_assign? && can?(:manage, @group)
|
4
|
+
= link_to(new_users_group_path(@group), remote: true) do
|
5
|
+
%i.fa.fa-plus-circle{'aria-hidden' => 'true'}
|
6
|
+
= t('label_add_group_member')
|
6
7
|
%ul
|
7
8
|
- @group.users.each do |user|
|
8
9
|
%li= user.fullname
|
@@ -8,3 +8,5 @@ AzaharaSchema::AttributeFormatter.__send__('prepend', AzaharaSchemaCurrency::Att
|
|
8
8
|
|
9
9
|
require 'azahara_schema_currency/association_attribute_patch'
|
10
10
|
AzaharaSchema::AssociationAttribute.__send__('prepend', AzaharaSchemaCurrency::AssociationAttributePatch)
|
11
|
+
require 'azahara_schema_currency/aggregation_attribute_patch'
|
12
|
+
AzaharaSchema::AggregationAttribute.__send__('prepend', AzaharaSchemaCurrency::AggregationAttributePatch)
|
@@ -4,7 +4,7 @@ module AzaharaSchemaCurrency
|
|
4
4
|
def format_value_html(attribute, unformated_value, **options)
|
5
5
|
case attribute.type
|
6
6
|
when 'currency'
|
7
|
-
Money.
|
7
|
+
Money.from_amount(unformated_value, options[:currency_code].to_s.upcase.presence).format
|
8
8
|
else
|
9
9
|
super
|
10
10
|
end
|
data/lib/egov_utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egov_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Ezr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -538,6 +538,7 @@ files:
|
|
538
538
|
- db/migrate/20180403150556_create_egov_utils_legal_people.rb
|
539
539
|
- db/migrate/20180424143207_add_titles_to_natural_people.rb
|
540
540
|
- lib/azahara_schema_currency.rb
|
541
|
+
- lib/azahara_schema_currency/aggregation_attribute_patch.rb
|
541
542
|
- lib/azahara_schema_currency/association_attribute_patch.rb
|
542
543
|
- lib/azahara_schema_currency/attribute_formatter_patch.rb
|
543
544
|
- lib/azahara_schema_currency/currency_attribute.rb
|