agilibox 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ade6aa004b8792440c2976136bb8850932781076
4
- data.tar.gz: e97405fb38e19a802c08f5e9c1725013f1a04755
3
+ metadata.gz: 1e06c4d8fed6ec891e4bf5cfe4771b31c070a0aa
4
+ data.tar.gz: 48c763af50ccaf8f6633ac4ded5b29684ddafb9e
5
5
  SHA512:
6
- metadata.gz: 5a244212fa7ded31e3728c791d4c123fcbceb5e399be4acd042be385c45915e5c75c9c192fd3b6720113f97f462dd5f2f8baaf3d55c162e442a92111f6ce8808
7
- data.tar.gz: 277d6a349e03ac9df8fabc16783679893a11640266d2810a97e62aa9af651799405e32d9f140a24961281e4da1f90eeac192f03e101b276f89049dfb0f845443
6
+ metadata.gz: d3110caf7a67c8971fd8a5f23ff65d7204094383e6ebca46961d1d7216e24a1f32ffd60342f1c68e2cb9190423f7398d048ab982810f75a74447fdb293b10df5
7
+ data.tar.gz: 6c1b34c7c1a39b837c3bd8f8644b51b41b3b49152e105269526fdfa3a4650a8b03e81255929f3afc617363c3f998b091c2da0e70e8bf9f43adcf71b841b11b56
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## Next version
4
+
5
+ ## 1.0.6
6
+
7
+ - Add checkboxes_dropdown helper
8
+ - Add FilterStrategyByKeyValues
9
+ - bs_button improvements
10
+ - Add Filter#any? and Filter#empty?
11
+ - Add i18n actions
12
+ - Add ModelI18n#tv
13
+ - Split i18n files
14
+
3
15
  ## 1.0.5
4
16
 
5
17
  - Fix `import_button` helper
@@ -0,0 +1,9 @@
1
+ $(document).on "click", ".checkboxes-dropdown .dropdown-menu", (e) ->
2
+ e.stopPropagation()
3
+
4
+ $(document).on "change", ".checkboxes-dropdown [type=checkbox]", ->
5
+ $dropdown = $(this).parents(".checkboxes-dropdown")
6
+ $dropdown.find(".number").html $dropdown.find(":checked").length
7
+
8
+ $(document).on "turbolinks:load", ->
9
+ $(".checkboxes-dropdown [type=checkbox]").change()
@@ -1,4 +1,5 @@
1
1
  @import agilibox/filters
2
+ @import agilibox/forms
2
3
  @import agilibox/flash
3
4
  @import agilibox/modals
4
5
  @import agilibox/pagination
@@ -27,7 +27,8 @@
27
27
  .btn
28
28
  @extend .btn-sm
29
29
 
30
- input[id*=date]
30
+ input[type=date],
31
+ input[type=text][id*=date],
31
32
  width: 8em
32
33
 
33
34
  .select2-container
@@ -0,0 +1,10 @@
1
+ .checkboxes-dropdown
2
+ .checkbox
3
+ label
4
+ position: static
5
+ margin: 0
6
+ padding: 0
7
+
8
+ input[type=checkbox]
9
+ position: static
10
+ margin: 0 0.5em 0 0
@@ -56,6 +56,14 @@ class Agilibox::SmallData::Filter
56
56
  write read.merge(new_filters)
57
57
  end
58
58
 
59
+ def any?
60
+ read.select { |k, v| strategies.keys.include?(k.to_s) && v.present? }.any?
61
+ end
62
+
63
+ def empty?
64
+ ! any?
65
+ end
66
+
59
67
  private
60
68
 
61
69
  def get(key)
@@ -0,0 +1,18 @@
1
+ class Agilibox::SmallData::FilterStrategyByKeyValues < ::Agilibox::SmallData::FilterStrategy
2
+ attr_reader :key
3
+
4
+ def initialize(key = nil)
5
+ @key = key
6
+ end
7
+
8
+ def apply(query, value)
9
+ value = value.split(" ") if value.is_a?(String)
10
+ value = value.select(&:present?)
11
+
12
+ if value.any?
13
+ query.where("#{key} IN (?)", value)
14
+ else
15
+ query
16
+ end
17
+ end
18
+ end
@@ -5,7 +5,7 @@ module Agilibox::ButtonHelper
5
5
  text = options.delete(:text) || t("actions.#{action}")
6
6
  title = options.delete(:title) || text
7
7
 
8
- text = "#{icon icon} <span>#{text}</span>".html_safe
8
+ text = %(#{icon icon} <span class="text">#{text}</span>).html_safe
9
9
 
10
10
  options = {
11
11
  :class => "btn btn-xs btn-default link_#{action}",
@@ -46,4 +46,13 @@ module Agilibox::FormHelper
46
46
  render "agilibox/search/form", action: action
47
47
  end
48
48
 
49
+ def checkboxes_dropdown(f, input, collection, label = t("actions.select"))
50
+ render("agilibox/forms/checkboxes_dropdown",
51
+ :f => f,
52
+ :input => input,
53
+ :collection => collection,
54
+ :label => label,
55
+ )
56
+ end
57
+
49
58
  end
@@ -9,6 +9,12 @@ module Agilibox::ModelI18n
9
9
  self.class.ts
10
10
  end
11
11
 
12
+ def tv(attribute)
13
+ key = attribute
14
+ value = public_send(attribute)
15
+ t("#{key}.#{value}")
16
+ end
17
+
12
18
  class_methods do
13
19
  def t(*args)
14
20
  if args.any?
@@ -0,0 +1,14 @@
1
+ .dropdown.checkboxes-dropdown
2
+ button(
3
+ class = "btn btn-default dropdown-toggle"
4
+ type = "button"
5
+ data-toggle = "dropdown"
6
+ )
7
+ = label
8
+ = " ("
9
+ span.number
10
+ = ") "
11
+ span.caret
12
+
13
+ .dropdown-menu: .container-fluid
14
+ = f.input input, collection: collection, as: :check_boxes, label: false
@@ -0,0 +1,76 @@
1
+ en:
2
+ actions: &actions
3
+ actions : "Actions"
4
+ index : "Index"
5
+ list : "List"
6
+ new : "New"
7
+ create : "Create"
8
+ read : "Read"
9
+ show : "Show"
10
+ details : "Détails"
11
+ edit : "Edit"
12
+ update : "Update"
13
+ delete : "Delete"
14
+ destroy : "Destroy"
15
+ add : "Add"
16
+ filter : "Filter"
17
+ filter_by : "Filter by"
18
+ sort : "Sort"
19
+ sort_by : "Sort by"
20
+ reset : "Reset"
21
+ back : "Back"
22
+ save : "Save"
23
+ open : "Open"
24
+ close : "Close"
25
+ lock : "Lock"
26
+ unlock : "Unlock"
27
+ snooze : "Snooze"
28
+ alert : "Alert"
29
+ complete : "Complete"
30
+ done : "Done"
31
+ download : "Download"
32
+ upload : "Upload"
33
+ preview : "Preview"
34
+ confirm : "Confirm this action ?"
35
+ cancel : "Cancel"
36
+ search : "Search"
37
+ sign_in : "Sign in"
38
+ signin : "Sign in"
39
+ log_in : "Log in"
40
+ login : "Log in"
41
+ sign_out : "Sign out"
42
+ signout : "Sign out"
43
+ log_out : "Log out"
44
+ logout : "Log out"
45
+ sign_up : "Sign up"
46
+ signup : "Sign up"
47
+ browse : "Choose file..."
48
+ cut : "Cut"
49
+ copy : "Copy"
50
+ paste : "Paste"
51
+ duplicate : "Duplicate"
52
+ export : "Export"
53
+ export_csv : "Export CSV"
54
+ export_xls : "Export XLS"
55
+ export_xlsx: "Export XLSX"
56
+ export_pdf : "Export PDF"
57
+ import : "Import"
58
+ import_csv : "Import CSV"
59
+ import_xls : "Import XLS"
60
+ import_xlsx: "Import XLSX"
61
+ import_pdf : "Import PDF"
62
+ send : "Send"
63
+ comment : "Comment"
64
+ add_line : "Add line"
65
+ remove_line: "Remove line"
66
+ pay : "Pay"
67
+ paid : "Payd"
68
+ continue : "Continue"
69
+ rename : "Rename"
70
+ email : "Send by email"
71
+ print : "Print"
72
+ submit : "Submit"
73
+ accept : "Accept"
74
+ refuse : "Refuse"
75
+ show_more : "Show more"
76
+ select : "Select"
@@ -0,0 +1,76 @@
1
+ fr:
2
+ actions: &actions
3
+ actions : "Actions"
4
+ index : "Liste"
5
+ list : "Liste"
6
+ new : "Nouveau"
7
+ create : "Créer"
8
+ read : "Afficher"
9
+ show : "Afficher"
10
+ details : "Détails"
11
+ edit : "Modifier"
12
+ update : "Modifier"
13
+ delete : "Supprimer"
14
+ destroy : "Supprimer"
15
+ add : "Ajouter"
16
+ filter : "Filtrer"
17
+ filter_by : "Filtrer par"
18
+ sort : "Trier"
19
+ sort_by : "Trier par"
20
+ reset : "Mettre à zéro"
21
+ back : "Retour"
22
+ save : "Enregistrer"
23
+ open : "Ouvrir"
24
+ close : "Fermer"
25
+ lock : "Fermer"
26
+ unlock : "Ouvrir"
27
+ snooze : "Reporter"
28
+ alert : "Alerter"
29
+ complete : "Marquer terminé"
30
+ done : "Terminer"
31
+ download : "Télécharger"
32
+ upload : "Envoyer"
33
+ preview : "Aperçu"
34
+ confirm : "Confirmer cette action ?"
35
+ cancel : "Annuler"
36
+ search : "Rechercher"
37
+ sign_in : "Se connecter"
38
+ signin : "Se connecter"
39
+ log_in : "Se connecter"
40
+ login : "Se connecter"
41
+ sign_out : "Se déconnecter"
42
+ signout : "Se déconnecter"
43
+ log_out : "Se déconnecter"
44
+ logout : "Se déconnecter"
45
+ sign_up : "S'enregistrer"
46
+ signup : "S'enregistrer"
47
+ browse : "Sélectionner le fichier..."
48
+ cut : "Couper"
49
+ copy : "Copier"
50
+ paste : "Coller"
51
+ duplicate : "Dupliquer"
52
+ export : "Exporter"
53
+ export_csv : "Export CSV"
54
+ export_xls : "Export XLS"
55
+ export_xlsx: "Export XLSX"
56
+ export_pdf : "Export PDF"
57
+ import : "Importer"
58
+ import_csv : "Import CSV"
59
+ import_xls : "Import XLS"
60
+ import_xlsx: "Import XLSX"
61
+ import_pdf : "Import PDF"
62
+ send : "Envoyer"
63
+ comment : "Commenter"
64
+ add_line : "Ajoute une ligne"
65
+ remove_line: "Supprimer la ligne"
66
+ pay : "Payer"
67
+ paid : "Payée"
68
+ continue : "Continuer"
69
+ rename : "Renommer"
70
+ email : "Envoyer par email"
71
+ print : "Imprimer"
72
+ submit : "Soumettre"
73
+ accept : "Accepter"
74
+ refuse : "Refuser"
75
+ show_more : "Afficher plus"
76
+ select : "Sélectionner"
@@ -0,0 +1,90 @@
1
+ en:
2
+ attributes: &attributes
3
+ id : "Id"
4
+ type : "Type"
5
+ code : "Code"
6
+ reference : "Réference"
7
+ created_at : "Created at"
8
+ updated_at : "Updated at"
9
+ name : "Name"
10
+ short_name : "Short name"
11
+ title : "Title"
12
+ label : "Label"
13
+ first_name : "First name"
14
+ last_name : "Last name"
15
+ email : "E-mail"
16
+ www : "Web site"
17
+ phone : "Phone"
18
+ mobile : "Mobile"
19
+ fax : "Fax"
20
+ password : "Password"
21
+ password_confirmation : "Password (confirm)"
22
+ description : "Description"
23
+ text : "Text"
24
+ date : "Date"
25
+ state : "State"
26
+ status : "Status"
27
+ file : "File"
28
+ address : "Address"
29
+ address1 : "Address"
30
+ address2 : "Address (rest)"
31
+ street : "Address"
32
+ street_bis : "Address (rest)"
33
+ zip : "Zip"
34
+ city : "City"
35
+ country : "Country"
36
+ tags : "Tags"
37
+ tag_list : "Tags"
38
+ budget : "Budget"
39
+ probability : "Probability"
40
+ access : "Access"
41
+ color : "Color"
42
+ data : "Data"
43
+ comment : "Comment"
44
+ comments : "Comments"
45
+ written_by : "Written by"
46
+ details : "Datails"
47
+ quantity : "Quantity"
48
+ due_date : "Due date"
49
+ paid : "Paid ?"
50
+ customer : "Customer"
51
+ customer_guid : "Customer"
52
+ tracking : "Tracking ID"
53
+ tracking_id : "Tracking ID"
54
+ unique_index : "Tracking ID"
55
+ count : "Number"
56
+ length : "Number"
57
+ number : "Number"
58
+ message : "Message"
59
+ skype : "Skype"
60
+ facebook : "Facebook"
61
+ twitter : "Twitter"
62
+ linkedin : "Linkedin"
63
+ viadeo : "Viadeo"
64
+ subject : "Subject"
65
+ body : "Message"
66
+ attachment : "Attachment"
67
+ avatar : "Avatar"
68
+ current_avatar : "Current avatar"
69
+ logo : "Logo"
70
+ user : "User"
71
+ category : "Category"
72
+ corporation_name : "Name"
73
+ author : "Author"
74
+ sender : "Author"
75
+ total : "Total"
76
+ version : "Version"
77
+ commentable : "Origin"
78
+ addressable : "Origin"
79
+ attachable : "Origin"
80
+ email_subject : "Subject"
81
+ email_from : "Sender"
82
+ email_to : "Recipient"
83
+ email_attachment : "Attachment"
84
+ email_body : "Message"
85
+ active : "Active ?"
86
+ is_active : "Active ?"
87
+ actions : "Actions"
88
+
89
+ labels:
90
+ <<: *attributes
@@ -0,0 +1,90 @@
1
+ fr:
2
+ attributes: &attributes
3
+ id : "Id"
4
+ type : "Type"
5
+ code : "Code"
6
+ reference : "Référence"
7
+ created_at : "Créé le"
8
+ updated_at : "Modifié le"
9
+ name : "Nom"
10
+ short_name : "Initiales"
11
+ title : "Titre"
12
+ label : "Libellé"
13
+ first_name : "Prénom"
14
+ last_name : "Nom"
15
+ email : "E-mail"
16
+ www : "Site web"
17
+ phone : "Téléphone"
18
+ mobile : "Mobile"
19
+ fax : "Fax"
20
+ password : "Mot de passe"
21
+ password_confirmation : "Mot de passe (confirmer)"
22
+ description : "Description"
23
+ text : "Description"
24
+ date : "Date"
25
+ state : "État"
26
+ status : "État"
27
+ file : "Fichier"
28
+ address : "Adresse"
29
+ address1 : "Adresse"
30
+ address2 : "Adresse (suite)"
31
+ street : "Adresse"
32
+ street_bis : "Adresse (suite)"
33
+ zip : "Code postal"
34
+ city : "Ville"
35
+ country : "Pays"
36
+ tags : "Tags"
37
+ tag_list : "Tags"
38
+ budget : "Budget"
39
+ probability : "Probabilité"
40
+ access : "Accès"
41
+ color : "Couleur"
42
+ data : "Informations"
43
+ comment : "Commentaire"
44
+ comments : "Commentaires"
45
+ written_by : "écrit par"
46
+ details : "Détails"
47
+ quantity : "Quantité"
48
+ due_date : "Échéance"
49
+ paid : "Payée ?"
50
+ customer : "Client"
51
+ customer_guid : "Client"
52
+ tracking : "Numéro"
53
+ tracking_id : "Numéro"
54
+ unique_index : "Numéro"
55
+ count : "Nombre"
56
+ length : "Nombre"
57
+ number : "Nombre"
58
+ message : "Message"
59
+ skype : "Skype"
60
+ facebook : "Facebook"
61
+ twitter : "Twitter"
62
+ linkedin : "Linkedin"
63
+ viadeo : "Viadeo"
64
+ subject : "Objet"
65
+ body : "Message"
66
+ attachment : "Pièce jointe"
67
+ avatar : "Avatar"
68
+ current_avatar : "Avatar actuel"
69
+ logo : "Logo"
70
+ user : "Utilisateur"
71
+ category : "Catégorie"
72
+ corporation_name : "Nom"
73
+ author : "Auteur"
74
+ sender : "Auteur"
75
+ total : "Total"
76
+ version : "Version"
77
+ commentable : "Origine"
78
+ addressable : "Origine"
79
+ attachable : "Origine"
80
+ email_subject : "Object"
81
+ email_from : "Expéditeur"
82
+ email_to : "Destinataire"
83
+ email_attachment : "Pièce jointe"
84
+ email_body : "Message"
85
+ active : "Actif ?"
86
+ is_active : "Actif ?"
87
+ actions : "Actions"
88
+
89
+ labels:
90
+ <<: *attributes
@@ -4,164 +4,6 @@ en:
4
4
  "true" : "Yes"
5
5
  "false" : "No"
6
6
 
7
- actions: &actions
8
- actions : "Actions"
9
- index : "Index"
10
- list : "List"
11
- new : "New"
12
- create : "Create"
13
- read : "Read"
14
- show : "Show"
15
- details : "Détails"
16
- edit : "Edit"
17
- update : "Update"
18
- delete : "Delete"
19
- destroy : "Destroy"
20
- add : "Add"
21
- filter : "Filter"
22
- filter_by : "Filter by"
23
- sort : "Sort"
24
- sort_by : "Sort by"
25
- reset : "Reset"
26
- back : "Back"
27
- save : "Save"
28
- open : "Open"
29
- close : "Close"
30
- lock : "Lock"
31
- unlock : "Unlock"
32
- snooze : "Snooze"
33
- alert : "Alert"
34
- complete : "Complete"
35
- done : "Done"
36
- download : "Download"
37
- upload : "Upload"
38
- preview : "Preview"
39
- confirm : "Confirm this action ?"
40
- cancel : "Cancel"
41
- search : "Search"
42
- sign_in : "Sign in"
43
- signin : "Sign in"
44
- log_in : "Log in"
45
- login : "Log in"
46
- sign_out : "Sign out"
47
- signout : "Sign out"
48
- log_out : "Log out"
49
- logout : "Log out"
50
- sign_up : "Sign up"
51
- signup : "Sign up"
52
- browse : "Choose file..."
53
- cut : "Cut"
54
- copy : "Copy"
55
- paste : "Paste"
56
- duplicate : "Duplicate"
57
- export : "Export"
58
- export_csv : "Export CSV"
59
- export_xls : "Export XLS"
60
- export_xlsx: "Export XLSX"
61
- export_pdf : "Export PDF"
62
- import : "Import"
63
- import_csv : "Import CSV"
64
- import_xls : "Import XLS"
65
- import_xlsx: "Import XLSX"
66
- import_pdf : "Import PDF"
67
- send : "Send"
68
- comment : "Comment"
69
- add_line : "Add line"
70
- remove_line: "Remove line"
71
- pay : "Pay"
72
- paid : "Payd"
73
- continue : "Continue"
74
- rename : "Rename"
75
- email : "Send by email"
76
- print : "Print"
77
- submit : "Submit"
78
- accept : "Accept"
79
- refuse : "Refuse"
80
- show_more : "Show more"
81
-
82
- attributes: &attributes
83
- id : "Id"
84
- type : "Type"
85
- code : "Code"
86
- reference : "Réference"
87
- created_at : "Created at"
88
- updated_at : "Updated at"
89
- name : "Name"
90
- title : "Title"
91
- label : "Label"
92
- first_name : "First name"
93
- last_name : "Last name"
94
- email : "E-mail"
95
- www : "Web site"
96
- phone : "Phone"
97
- mobile : "Mobile"
98
- fax : "Fax"
99
- password : "Password"
100
- password_confirmation : "Password (confirm)"
101
- description : "Description"
102
- text : "Text"
103
- date : "Date"
104
- state : "State"
105
- status : "Status"
106
- file : "File"
107
- address : "Address"
108
- address1 : "Address"
109
- address2 : "Address (rest)"
110
- street : "Address"
111
- street_bis : "Address (rest)"
112
- zip : "Zip"
113
- city : "City"
114
- country : "Country"
115
- tags : "Tags"
116
- tag_list : "Tags"
117
- budget : "Budget"
118
- probability : "Probability"
119
- access : "Access"
120
- color : "Color"
121
- data : "Data"
122
- comment : "Comment"
123
- written_by : "Written by"
124
- details : "Datails"
125
- quantity : "Quantity"
126
- due_date : "Due date"
127
- paid : "Paid ?"
128
- customer : "Customer"
129
- customer_guid : "Customer"
130
- tracking : "Tracking ID"
131
- tracking_id : "Tracking ID"
132
- unique_index : "Tracking ID"
133
- count : "Number"
134
- length : "Number"
135
- number : "Number"
136
- message : "Message"
137
- skype : "Skype"
138
- facebook : "Facebook"
139
- twitter : "Twitter"
140
- linkedin : "Linkedin"
141
- viadeo : "Viadeo"
142
- subject : "Subject"
143
- body : "Message"
144
- attachment : "Attachment"
145
- avatar : "Avatar"
146
- current_avatar : "Current avatar"
147
- logo : "Logo"
148
- active : "Active ?"
149
- user : "User"
150
- category : "Category"
151
- corporation_name : "Name"
152
- author : "Author"
153
- sender : "Author"
154
- total : "Total"
155
- version : "Version"
156
- commentable : "Origin"
157
- addressable : "Origin"
158
- attachable : "Origin"
159
- email_subject : "Subject"
160
- email_from : "Sender"
161
- email_to : "Recipient"
162
- email_attachment : "Attachment"
163
- email_body : "Message"
164
-
165
7
  errors:
166
8
  messages:
167
9
  extension_white_list_error : "This file type is not supported"
@@ -188,9 +30,6 @@ en:
188
30
  next_next_week: "In two weeks"
189
31
  custom_date: "Custom date"
190
32
 
191
- labels:
192
- <<: *attributes
193
-
194
33
  simple_form:
195
34
  "yes" : 'Yes'
196
35
  "no" : 'No'
@@ -4,175 +4,6 @@ fr:
4
4
  "true" : "Oui"
5
5
  "false" : "Non"
6
6
 
7
- date:
8
- formats:
9
- default: "%d/%m/%Y"
10
-
11
- time:
12
- formats:
13
- default: "%d/%m/%Y à %H:%M"
14
-
15
- actions: &actions
16
- actions : "Actions"
17
- index : "Liste"
18
- list : "Liste"
19
- new : "Nouveau"
20
- create : "Créer"
21
- read : "Afficher"
22
- show : "Afficher"
23
- details : "Détails"
24
- edit : "Modifier"
25
- update : "Modifier"
26
- delete : "Supprimer"
27
- destroy : "Supprimer"
28
- add : "Ajouter"
29
- filter : "Filtrer"
30
- filter_by : "Filtrer par"
31
- sort : "Trier"
32
- sort_by : "Trier par"
33
- reset : "Mettre à zéro"
34
- back : "Retour"
35
- save : "Enregistrer"
36
- open : "Ouvrir"
37
- close : "Fermer"
38
- lock : "Fermer"
39
- unlock : "Ouvrir"
40
- snooze : "Reporter"
41
- alert : "Alerter"
42
- complete : "Marquer terminé"
43
- done : "Terminer"
44
- download : "Télécharger"
45
- upload : "Envoyer"
46
- preview : "Aperçu"
47
- confirm : "Confirmer cette action ?"
48
- cancel : "Annuler"
49
- search : "Rechercher"
50
- sign_in : "Se connecter"
51
- signin : "Se connecter"
52
- log_in : "Se connecter"
53
- login : "Se connecter"
54
- sign_out : "Se déconnecter"
55
- signout : "Se déconnecter"
56
- log_out : "Se déconnecter"
57
- logout : "Se déconnecter"
58
- sign_up : "S'enregistrer"
59
- signup : "S'enregistrer"
60
- browse : "Sélectionner le fichier..."
61
- cut : "Couper"
62
- copy : "Copier"
63
- paste : "Coller"
64
- duplicate : "Dupliquer"
65
- export : "Exporter"
66
- export_csv : "Export CSV"
67
- export_xls : "Export XLS"
68
- export_xlsx: "Export XLSX"
69
- export_pdf : "Export PDF"
70
- import : "Importer"
71
- import_csv : "Import CSV"
72
- import_xls : "Import XLS"
73
- import_xlsx: "Import XLSX"
74
- import_pdf : "Import PDF"
75
- send : "Envoyer"
76
- comment : "Commenter"
77
- add_line : "Ajoute une ligne"
78
- remove_line: "Supprimer la ligne"
79
- pay : "Payer"
80
- paid : "Payée"
81
- continue : "Continuer"
82
- rename : "Renommer"
83
- email : "Envoyer par email"
84
- print : "Imprimer"
85
- submit : "Soumettre"
86
- accept : "Accepter"
87
- refuse : "Refuser"
88
- show_more : "Afficher plus"
89
-
90
- attributes: &attributes
91
- id : "Id"
92
- type : "Type"
93
- code : "Code"
94
- reference : "Référence"
95
- created_at : "Créé le"
96
- updated_at : "Modifié le"
97
- name : "Nom"
98
- title : "Titre"
99
- label : "Libellé"
100
- first_name : "Prénom"
101
- last_name : "Nom"
102
- email : "E-mail"
103
- www : "Site web"
104
- phone : "Téléphone"
105
- mobile : "Mobile"
106
- fax : "Fax"
107
- password : "Mot de passe"
108
- password_confirmation : "Mot de passe (confirmer)"
109
- description : "Description"
110
- text : "Description"
111
- date : "Date"
112
- state : "État"
113
- status : "État"
114
- file : "Fichier"
115
- address : "Adresse"
116
- address1 : "Adresse"
117
- address2 : "Adresse (suite)"
118
- street : "Adresse"
119
- street_bis : "Adresse (suite)"
120
- zip : "Code postal"
121
- city : "Ville"
122
- country : "Pays"
123
- tags : "Tags"
124
- tag_list : "Tags"
125
- budget : "Budget"
126
- probability : "Probabilité"
127
- access : "Accès"
128
- color : "Couleur"
129
- data : "Informations"
130
- comment : "Commentaire"
131
- comments : "Commentaires"
132
- written_by : "écrit par"
133
- details : "Détails"
134
- quantity : "Quantité"
135
- due_date : "Échéance"
136
- paid : "Payée ?"
137
- customer : "Client"
138
- customer_guid : "Client"
139
- tracking : "Numéro"
140
- tracking_id : "Numéro"
141
- unique_index : "Numéro"
142
- count : "Nombre"
143
- length : "Nombre"
144
- number : "Nombre"
145
- message : "Message"
146
- skype : "Skype"
147
- facebook : "Facebook"
148
- twitter : "Twitter"
149
- linkedin : "Linkedin"
150
- viadeo : "Viadeo"
151
- is_active : "Actif ?"
152
- short_name : "Initiales"
153
- subject : "Objet"
154
- body : "Message"
155
- attachment : "Pièce jointe"
156
- avatar : "Avatar"
157
- current_avatar : "Avatar actuel"
158
- logo : "Logo"
159
- active : "Actif ?"
160
- user : "Utilisateur"
161
- category : "Catégorie"
162
- corporation_name : "Nom"
163
- author : "Auteur"
164
- sender : "Auteur"
165
- total : "Total"
166
- version : "Version"
167
- commentable : "Origine"
168
- addressable : "Origine"
169
- attachable : "Origine"
170
- email_subject : "Object"
171
- email_from : "Expéditeur"
172
- email_to : "Destinataire"
173
- email_attachment : "Pièce jointe"
174
- email_body : "Message"
175
-
176
7
  errors:
177
8
  messages:
178
9
  extension_white_list_error : "Ce type de fichier n'est pas prit en charge"
@@ -199,9 +30,6 @@ fr:
199
30
  next_next_week: "Dans deux semaines"
200
31
  custom_date: "Choisir une date"
201
32
 
202
- labels:
203
- <<: *attributes
204
-
205
33
  simple_form:
206
34
  "yes" : 'Oui'
207
35
  "no" : 'Non'
@@ -0,0 +1,8 @@
1
+ fr:
2
+ date:
3
+ formats:
4
+ default: "%d/%m/%Y"
5
+
6
+ time:
7
+ formats:
8
+ default: "%d/%m/%Y à %H:%M"
@@ -1,3 +1,3 @@
1
1
  module Agilibox
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilibox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-30 00:00:00.000000000 Z
11
+ date: 2017-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n
@@ -37,6 +37,7 @@ files:
37
37
  - app/assets/config/agilibox_manifest.js
38
38
  - app/assets/javascripts/agilibox/all.coffee
39
39
  - app/assets/javascripts/agilibox/autocomplete.coffee
40
+ - app/assets/javascripts/agilibox/checkboxes_dropdown.coffee
40
41
  - app/assets/javascripts/agilibox/filters_date.coffee
41
42
  - app/assets/javascripts/agilibox/form_anchor_referer.coffee
42
43
  - app/assets/javascripts/agilibox/form_reset.coffee
@@ -44,6 +45,7 @@ files:
44
45
  - app/assets/stylesheets/agilibox/all.sass
45
46
  - app/assets/stylesheets/agilibox/filters.sass
46
47
  - app/assets/stylesheets/agilibox/flash.sass
48
+ - app/assets/stylesheets/agilibox/forms.sass
47
49
  - app/assets/stylesheets/agilibox/modals.sass
48
50
  - app/assets/stylesheets/agilibox/pagination.sass
49
51
  - app/assets/stylesheets/agilibox/print.sass
@@ -56,6 +58,7 @@ files:
56
58
  - app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
57
59
  - app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
58
60
  - app/filters/agilibox/small_data/filter_strategy_by_key_value.rb
61
+ - app/filters/agilibox/small_data/filter_strategy_by_key_values.rb
59
62
  - app/filters/agilibox/small_data/filter_strategy_by_tags.rb
60
63
  - app/filters/agilibox/small_data/filter_strategy_by_time_period.rb
61
64
  - app/helpers/agilibox/all_helpers.rb
@@ -80,9 +83,15 @@ files:
80
83
  - app/serializers/agilibox/serializers/base.rb
81
84
  - app/serializers/agilibox/serializers/xlsx.rb
82
85
  - app/sorters/agilibox/sorter.rb
86
+ - app/views/agilibox/forms/_checkboxes_dropdown.html.slim
83
87
  - app/views/agilibox/search/_form.html.slim
88
+ - config/locales/actions.en.yml
89
+ - config/locales/actions.fr.yml
90
+ - config/locales/attributes.en.yml
91
+ - config/locales/attributes.fr.yml
84
92
  - config/locales/common.en.yml
85
93
  - config/locales/common.fr.yml
94
+ - config/locales/dates.fr.yml
86
95
  - config/routes.rb
87
96
  - db/migrate/20170502143330_enable_unaccent.rb
88
97
  - lib/agilibox.rb