dorsale 3.1.4 → 3.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/assets/javascripts/dorsale/common/tags.coffee +15 -0
- data/app/assets/javascripts/dorsale/engines/customer_vault.coffee +0 -15
- data/app/controllers/dorsale/customer_vault/application_controller.rb +1 -1
- data/app/{models → filters}/dorsale/billing_machine/small_data/filter_for_invoices.rb +0 -0
- data/app/{models → filters}/dorsale/billing_machine/small_data/filter_for_quotations.rb +0 -0
- data/app/{models → filters}/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb +0 -0
- data/app/{models → filters}/dorsale/billing_machine/small_data/filter_strategy_by_payment_status.rb +0 -0
- data/app/{models → filters}/dorsale/billing_machine/small_data/filter_strategy_by_state.rb +0 -0
- data/app/{models → filters}/dorsale/billing_machine/small_data/filter_strategy_by_time_period.rb +0 -0
- data/app/{models → filters}/dorsale/customer_vault/small_data/filter_for_people.rb +1 -1
- data/app/{models → filters}/dorsale/expense_gun/small_data/filter_for_expenses.rb +0 -0
- data/app/{models → filters}/dorsale/flyboy/small_data/filter_for_folders.rb +0 -0
- data/app/{models → filters}/dorsale/flyboy/small_data/filter_for_tasks.rb +0 -0
- data/app/{models → filters}/dorsale/flyboy/small_data/filter_strategy_by_done.rb +0 -0
- data/app/{models → filters}/dorsale/flyboy/small_data/filter_strategy_by_status.rb +0 -0
- data/app/{models → filters}/dorsale/small_data/filter.rb +0 -0
- data/app/{models → filters}/dorsale/small_data/filter_strategy.rb +0 -0
- data/app/{models → filters}/dorsale/small_data/filter_strategy_by_date.rb +0 -0
- data/app/{models → filters}/dorsale/small_data/filter_strategy_by_date_begin.rb +0 -0
- data/app/{models → filters}/dorsale/small_data/filter_strategy_by_date_end.rb +0 -0
- data/app/{models → filters}/dorsale/small_data/filter_strategy_by_key_value.rb +0 -0
- data/app/{models/dorsale/customer_vault → filters/dorsale}/small_data/filter_strategy_by_tags.rb +1 -1
- data/app/helpers/dorsale/customer_vault/application_helper.rb +0 -10
- data/app/helpers/dorsale/text_helper.rb +10 -0
- data/app/services/dorsale/tag_list_for_model.rb +14 -0
- data/app/views/dorsale/customer_vault/people/_context.html.slim +1 -1
- data/app/views/dorsale/customer_vault/people/_list_item.html.slim +1 -1
- data/lib/dorsale/version.rb +1 -1
- data/spec/{models → filters}/dorsale/small_data/filter_spec.rb +0 -0
- metadata +25 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab35fd3bd7ff911c82f7cf26249d46ec366f7343
|
4
|
+
data.tar.gz: f059076ae48a78dfdaa084a0b98a69a767f5ac50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1271a885eb35373f63da05c7770e97d9843734d17e6383c990a9575c351b413160b7d7794fbd7137a60adc46255ffc18f47441a635c3b0d251239552c5bfe428
|
7
|
+
data.tar.gz: 6cac76a354bdd85720155cac90c37c70e74acd938a5d7ae53083454fcd2ceafc5f11102124f78eaacb5fe51dfbaa5927b4e2a55bca41d978b0ad338b617f3f82
|
data/CHANGELOG.md
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
$(document).on "ready turbolinks:load page:load", ->
|
2
|
+
$("form:not([action*=filters]) select[multiple][name*=tag]").not(".select2-hidden-accessible").map ->
|
3
|
+
placeholder = $(this).attr("placeholder")
|
4
|
+
|
5
|
+
$(this).select2
|
6
|
+
tags: true
|
7
|
+
placeholder: placeholder
|
8
|
+
|
9
|
+
|
10
|
+
$(".filters select[multiple][name*=tag]").not(".select2-hidden-accessible").map ->
|
11
|
+
placeholder = $(this).attr("placeholder")
|
12
|
+
|
13
|
+
$(this).select2
|
14
|
+
tags: false
|
15
|
+
placeholder: placeholder
|
@@ -1,15 +0,0 @@
|
|
1
|
-
$(document).on "ready turbolinks:load page:load", ->
|
2
|
-
$(".customer_vault form:not([action*=filters]) select[name*=tag]").not(".select2-hidden-accessible").map ->
|
3
|
-
placeholder = $(this).attr("placeholder")
|
4
|
-
|
5
|
-
$(this).select2
|
6
|
-
tags: true
|
7
|
-
placeholder: placeholder
|
8
|
-
|
9
|
-
|
10
|
-
$(".customer_vault .filters select[name*=tag]").not(".select2-hidden-accessible").map ->
|
11
|
-
placeholder = $(this).attr("placeholder")
|
12
|
-
|
13
|
-
$(this).select2
|
14
|
-
tags: false
|
15
|
-
placeholder: placeholder
|
@@ -13,7 +13,7 @@ class Dorsale::CustomerVault::ApplicationController < ::Dorsale::ApplicationCont
|
|
13
13
|
private
|
14
14
|
|
15
15
|
def customer_vault_tag_list
|
16
|
-
|
16
|
+
Dorsale::TagListForModel.(Dorsale::CustomerVault::Person)
|
17
17
|
end
|
18
18
|
|
19
19
|
def set_form_variables
|
File without changes
|
File without changes
|
data/app/{models → filters}/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
RENAMED
File without changes
|
data/app/{models → filters}/dorsale/billing_machine/small_data/filter_strategy_by_payment_status.rb
RENAMED
File without changes
|
File without changes
|
data/app/{models → filters}/dorsale/billing_machine/small_data/filter_strategy_by_time_period.rb
RENAMED
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class Dorsale::CustomerVault::SmallData::FilterForPeople < ::Dorsale::SmallData::Filter
|
2
2
|
STRATEGIES = {
|
3
3
|
"person_type" => ::Dorsale::SmallData::FilterStrategyByKeyValue.new(:type),
|
4
|
-
"person_tags" => ::Dorsale::
|
4
|
+
"person_tags" => ::Dorsale::SmallData::FilterStrategyByTags.new,
|
5
5
|
}
|
6
6
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,14 +1,4 @@
|
|
1
1
|
module Dorsale::CustomerVault::ApplicationHelper
|
2
|
-
def person_tags(person)
|
3
|
-
return "" if person.tag_list.empty?
|
4
|
-
|
5
|
-
person.tag_list.map { |tag|
|
6
|
-
content_tag(:span, class: "tag label label-primary"){
|
7
|
-
"#{icon :tag} #{tag}".html_safe
|
8
|
-
}
|
9
|
-
}.join(" ").html_safe
|
10
|
-
end
|
11
|
-
|
12
2
|
def customer_vault_link_form_path(person = @person, link = @link)
|
13
3
|
if link.new_record?
|
14
4
|
customer_vault_person_links_path(person, link)
|
@@ -103,4 +103,14 @@ module Dorsale::TextHelper
|
|
103
103
|
end
|
104
104
|
end # def info
|
105
105
|
|
106
|
+
def tags(object)
|
107
|
+
return "" if object.tag_list.empty?
|
108
|
+
|
109
|
+
object.tag_list.map { |tag|
|
110
|
+
content_tag(:span, class: "tag label label-primary"){
|
111
|
+
"#{icon :tag} #{tag}".html_safe
|
112
|
+
}
|
113
|
+
}.join(" ").html_safe
|
114
|
+
end
|
115
|
+
|
106
116
|
end
|
@@ -10,7 +10,7 @@
|
|
10
10
|
.context-body
|
11
11
|
p.text-center = avatar_img(person)
|
12
12
|
|
13
|
-
= info person, :tags,
|
13
|
+
= info person, :tags, tags(person)
|
14
14
|
= info person, :email, helper: :email_link
|
15
15
|
= info person, :phone, helper: :tel_link
|
16
16
|
= info person, :mobile, helper: :tel_link
|
data/lib/dorsale/version.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dorsale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agilidée
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -471,6 +471,7 @@ files:
|
|
471
471
|
- app/assets/javascripts/dorsale/common/forms.coffee
|
472
472
|
- app/assets/javascripts/dorsale/common/modals.coffee
|
473
473
|
- app/assets/javascripts/dorsale/common/tabs_loader.coffee
|
474
|
+
- app/assets/javascripts/dorsale/common/tags.coffee
|
474
475
|
- app/assets/javascripts/dorsale/common/tooltips.coffee
|
475
476
|
- app/assets/javascripts/dorsale/dependencies.coffee
|
476
477
|
- app/assets/javascripts/dorsale/engines.coffee
|
@@ -524,6 +525,25 @@ files:
|
|
524
525
|
- app/controllers/dorsale/flyboy/tasks_controller.rb
|
525
526
|
- app/controllers/dorsale/small_data/filters_controller.rb
|
526
527
|
- app/controllers/dorsale/users_controller.rb
|
528
|
+
- app/filters/dorsale/billing_machine/small_data/filter_for_invoices.rb
|
529
|
+
- app/filters/dorsale/billing_machine/small_data/filter_for_quotations.rb
|
530
|
+
- app/filters/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
|
531
|
+
- app/filters/dorsale/billing_machine/small_data/filter_strategy_by_payment_status.rb
|
532
|
+
- app/filters/dorsale/billing_machine/small_data/filter_strategy_by_state.rb
|
533
|
+
- app/filters/dorsale/billing_machine/small_data/filter_strategy_by_time_period.rb
|
534
|
+
- app/filters/dorsale/customer_vault/small_data/filter_for_people.rb
|
535
|
+
- app/filters/dorsale/expense_gun/small_data/filter_for_expenses.rb
|
536
|
+
- app/filters/dorsale/flyboy/small_data/filter_for_folders.rb
|
537
|
+
- app/filters/dorsale/flyboy/small_data/filter_for_tasks.rb
|
538
|
+
- app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
|
539
|
+
- app/filters/dorsale/flyboy/small_data/filter_strategy_by_status.rb
|
540
|
+
- app/filters/dorsale/small_data/filter.rb
|
541
|
+
- app/filters/dorsale/small_data/filter_strategy.rb
|
542
|
+
- app/filters/dorsale/small_data/filter_strategy_by_date.rb
|
543
|
+
- app/filters/dorsale/small_data/filter_strategy_by_date_begin.rb
|
544
|
+
- app/filters/dorsale/small_data/filter_strategy_by_date_end.rb
|
545
|
+
- app/filters/dorsale/small_data/filter_strategy_by_key_value.rb
|
546
|
+
- app/filters/dorsale/small_data/filter_strategy_by_tags.rb
|
527
547
|
- app/helpers/dh.rb
|
528
548
|
- app/helpers/dorsale/alexandrie/attachments_helper.rb
|
529
549
|
- app/helpers/dorsale/all_helpers.rb
|
@@ -557,12 +577,6 @@ files:
|
|
557
577
|
- app/models/dorsale/billing_machine/payment_term.rb
|
558
578
|
- app/models/dorsale/billing_machine/quotation.rb
|
559
579
|
- app/models/dorsale/billing_machine/quotation_line.rb
|
560
|
-
- app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
|
561
|
-
- app/models/dorsale/billing_machine/small_data/filter_for_quotations.rb
|
562
|
-
- app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
|
563
|
-
- app/models/dorsale/billing_machine/small_data/filter_strategy_by_payment_status.rb
|
564
|
-
- app/models/dorsale/billing_machine/small_data/filter_strategy_by_state.rb
|
565
|
-
- app/models/dorsale/billing_machine/small_data/filter_strategy_by_time_period.rb
|
566
580
|
- app/models/dorsale/comment.rb
|
567
581
|
- app/models/dorsale/customer_vault.rb
|
568
582
|
- app/models/dorsale/customer_vault/corporation.rb
|
@@ -572,28 +586,15 @@ files:
|
|
572
586
|
- app/models/dorsale/customer_vault/link.rb
|
573
587
|
- app/models/dorsale/customer_vault/person.rb
|
574
588
|
- app/models/dorsale/customer_vault/person_data.rb
|
575
|
-
- app/models/dorsale/customer_vault/small_data/filter_for_people.rb
|
576
|
-
- app/models/dorsale/customer_vault/small_data/filter_strategy_by_tags.rb
|
577
589
|
- app/models/dorsale/expense_gun.rb
|
578
590
|
- app/models/dorsale/expense_gun/category.rb
|
579
591
|
- app/models/dorsale/expense_gun/expense.rb
|
580
592
|
- app/models/dorsale/expense_gun/expense_line.rb
|
581
|
-
- app/models/dorsale/expense_gun/small_data/filter_for_expenses.rb
|
582
593
|
- app/models/dorsale/flyboy.rb
|
583
594
|
- app/models/dorsale/flyboy/folder.rb
|
584
|
-
- app/models/dorsale/flyboy/small_data/filter_for_folders.rb
|
585
|
-
- app/models/dorsale/flyboy/small_data/filter_for_tasks.rb
|
586
|
-
- app/models/dorsale/flyboy/small_data/filter_strategy_by_done.rb
|
587
|
-
- app/models/dorsale/flyboy/small_data/filter_strategy_by_status.rb
|
588
595
|
- app/models/dorsale/flyboy/task.rb
|
589
596
|
- app/models/dorsale/flyboy/task_comment.rb
|
590
597
|
- app/models/dorsale/small_data.rb
|
591
|
-
- app/models/dorsale/small_data/filter.rb
|
592
|
-
- app/models/dorsale/small_data/filter_strategy.rb
|
593
|
-
- app/models/dorsale/small_data/filter_strategy_by_date.rb
|
594
|
-
- app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
|
595
|
-
- app/models/dorsale/small_data/filter_strategy_by_date_end.rb
|
596
|
-
- app/models/dorsale/small_data/filter_strategy_by_key_value.rb
|
597
598
|
- app/models/dorsale/users/active.rb
|
598
599
|
- app/models/dorsale/users/avatar.rb
|
599
600
|
- app/models/dorsale/users/password_generation.rb
|
@@ -629,6 +630,7 @@ files:
|
|
629
630
|
- app/services/dorsale/billing_machine/quotation/to_invoice.rb
|
630
631
|
- app/services/dorsale/expense_gun/expense/copy.rb
|
631
632
|
- app/services/dorsale/service.rb
|
633
|
+
- app/services/dorsale/tag_list_for_model.rb
|
632
634
|
- app/uploaders/dorsale/alexandrie/file_uploader.rb
|
633
635
|
- app/uploaders/dorsale/application_uploader.rb
|
634
636
|
- app/uploaders/dorsale/avatar_uploader.rb
|
@@ -906,6 +908,7 @@ files:
|
|
906
908
|
- spec/factories/flyboy_tasks.rb
|
907
909
|
- spec/files/avatar.png
|
908
910
|
- spec/files/pdf.pdf
|
911
|
+
- spec/filters/dorsale/small_data/filter_spec.rb
|
909
912
|
- spec/helpers/dorsale/flyboy/application_helper_spec.rb
|
910
913
|
- spec/helpers/dorsale/form_helper_spec.rb
|
911
914
|
- spec/helpers/dorsale/link_helper_spec.rb
|
@@ -935,7 +938,6 @@ files:
|
|
935
938
|
- spec/models/dorsale/flyboy/task_spec.rb
|
936
939
|
- spec/models/dorsale/i18n_spec.rb
|
937
940
|
- spec/models/dorsale/model_i18n_spec.rb
|
938
|
-
- spec/models/dorsale/small_data/filter_spec.rb
|
939
941
|
- spec/models/dorsale/users_spec.rb
|
940
942
|
- spec/pdfs/dorsale/billing_machine/invoice_multiple_vat_pdf_spec.rb
|
941
943
|
- spec/pdfs/dorsale/billing_machine/invoice_single_vat_pdf_spec.rb
|
@@ -1016,6 +1018,7 @@ test_files:
|
|
1016
1018
|
- spec/factories/flyboy_tasks.rb
|
1017
1019
|
- spec/files/avatar.png
|
1018
1020
|
- spec/files/pdf.pdf
|
1021
|
+
- spec/filters/dorsale/small_data/filter_spec.rb
|
1019
1022
|
- spec/helpers/dorsale/flyboy/application_helper_spec.rb
|
1020
1023
|
- spec/helpers/dorsale/form_helper_spec.rb
|
1021
1024
|
- spec/helpers/dorsale/link_helper_spec.rb
|
@@ -1045,7 +1048,6 @@ test_files:
|
|
1045
1048
|
- spec/models/dorsale/flyboy/task_spec.rb
|
1046
1049
|
- spec/models/dorsale/i18n_spec.rb
|
1047
1050
|
- spec/models/dorsale/model_i18n_spec.rb
|
1048
|
-
- spec/models/dorsale/small_data/filter_spec.rb
|
1049
1051
|
- spec/models/dorsale/users_spec.rb
|
1050
1052
|
- spec/pdfs/dorsale/billing_machine/invoice_multiple_vat_pdf_spec.rb
|
1051
1053
|
- spec/pdfs/dorsale/billing_machine/invoice_single_vat_pdf_spec.rb
|