adherent 0.3.6 → 0.3.7
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c260a0e3744343904e807eb757955a572c98de90
|
4
|
+
data.tar.gz: bb21b657a9a852a40f0531ffc8639b38137f7400
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67d94d773bb54cc7584c1c2936aad47d02f5d7a2a820d14d12d2fc9726c04b9d0c0acf04282e3857eff3d2d5684d0c767ce933bcb09cf1f914c6835159e3438c
|
7
|
+
data.tar.gz: 5247da4d2db38f8010c182db7a273be948799f55de71dd82fb5131aa43b2f819d9634a5f7d3a0954ad17c3add449386bec22ba53a41400a540cd6a0a8e6e9f6e
|
@@ -13,6 +13,17 @@ module Adherent
|
|
13
13
|
link_to image_tag(img_path, :alt=> alt), options, html_options
|
14
14
|
end
|
15
15
|
|
16
|
+
def icon_to_if(condition, icon_file, options={}, html_options={})
|
17
|
+
raise ArgumentError unless icon_file
|
18
|
+
title = alt = icon_file.split('.')[0].capitalize
|
19
|
+
|
20
|
+
html_options[:title] ||=title
|
21
|
+
html_options[:class] ||= 'icon_menu'
|
22
|
+
# html_options[:tabindex]= "-1"
|
23
|
+
img_path="adherent/icones/#{icon_file}"
|
24
|
+
link_to_if condition, image_tag(img_path, :alt=> alt), options, html_options
|
25
|
+
end
|
26
|
+
|
16
27
|
# Pour transformer un montant selon le format numérique français avec deux décimales
|
17
28
|
def virgule(montant)
|
18
29
|
ActionController::Base.helpers.number_with_precision(montant, precision:2) rescue '0,00'
|
@@ -46,9 +46,9 @@
|
|
46
46
|
<% if member.nb_payments == 0 %>
|
47
47
|
<%= icon_to 'supprimer.png', member_path(id:member.id), :method => :delete, data:{:confirm => 'Etes vous sûr ?'} %>
|
48
48
|
<% else %>
|
49
|
-
<%=
|
50
|
-
title:'Suppression impossible car présence de paiements',
|
51
|
-
class:'inactive_icon_menu' %>
|
49
|
+
<%= icon_to_if false, 'nb_supprimer.png', member_path(id:member.id),
|
50
|
+
{title:'Suppression impossible car présence de paiements',
|
51
|
+
class:'inactive_icon_menu'} %>
|
52
52
|
<% end %>
|
53
53
|
</td>
|
54
54
|
</tr>
|
data/lib/adherent/version.rb
CHANGED
@@ -22,5 +22,6 @@ module Adherent
|
|
22
22
|
# VERSION = '0.3.3' # retour en arrière car find_member(id) et find_member(member_id)
|
23
23
|
# VERSION = '0.3.4' # les règlements sans adhésion s'affichent
|
24
24
|
# VERSION = '0.3.5' # Affichage plus rapide des paiements
|
25
|
-
VERSION = '0.3.6' # Affichage plus rapide des paiements
|
25
|
+
# VERSION = '0.3.6' # Affichage plus rapide des paiements
|
26
|
+
VERSION = '0.3.7' # icone nb_supprimer pour les adhérents avec paiements
|
26
27
|
end
|
@@ -118272,3 +118272,298 @@ Started GET "/assets/adherent/icones/supprimer.png" for 127.0.0.1 at 2015-10-12
|
|
118272
118272
|
[1m[36m (5.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
118273
118273
|
[1m[35m (0.6ms)[0m SELECT version FROM "schema_migrations"
|
118274
118274
|
[1m[36m (1.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130810074112')[0m
|
118275
|
+
|
118276
|
+
|
118277
|
+
Started GET "/" for 127.0.0.1 at 2015-10-14 17:28:52 +0200
|
118278
|
+
Processing by OrganismsController#index as HTML
|
118279
|
+
[1m[36mOrganism Load (40.4ms)[0m [1mSELECT "organisms".* FROM "organisms"[0m
|
118280
|
+
Rendered organisms/index.html.haml within layouts/application (256.2ms)
|
118281
|
+
Completed 200 OK in 905ms (Views: 606.8ms | ActiveRecord: 210.6ms)
|
118282
|
+
|
118283
|
+
|
118284
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-10-14 17:28:54 +0200
|
118285
|
+
|
118286
|
+
|
118287
|
+
Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2015-10-14 17:28:54 +0200
|
118288
|
+
|
118289
|
+
|
118290
|
+
Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2015-10-14 17:28:54 +0200
|
118291
|
+
|
118292
|
+
|
118293
|
+
Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2015-10-14 17:28:54 +0200
|
118294
|
+
|
118295
|
+
|
118296
|
+
Started GET "/assets/organisms.css?body=1" for 127.0.0.1 at 2015-10-14 17:28:54 +0200
|
118297
|
+
|
118298
|
+
|
118299
|
+
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-10-14 17:28:54 +0200
|
118300
|
+
|
118301
|
+
|
118302
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-10-14 17:28:54 +0200
|
118303
|
+
|
118304
|
+
|
118305
|
+
Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2015-10-14 17:28:54 +0200
|
118306
|
+
|
118307
|
+
|
118308
|
+
Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2015-10-14 17:28:54 +0200
|
118309
|
+
|
118310
|
+
|
118311
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-10-14 17:28:54 +0200
|
118312
|
+
|
118313
|
+
|
118314
|
+
Started GET "/assets/organisms.js?body=1" for 127.0.0.1 at 2015-10-14 17:28:54 +0200
|
118315
|
+
|
118316
|
+
|
118317
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-10-14 17:28:54 +0200
|
118318
|
+
|
118319
|
+
|
118320
|
+
Started GET "/organisms/2" for 127.0.0.1 at 2015-10-14 17:28:56 +0200
|
118321
|
+
Processing by OrganismsController#show as HTML
|
118322
|
+
Parameters: {"id"=>"2"}
|
118323
|
+
[1m[35mOrganism Load (30.2ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 2]]
|
118324
|
+
Rendered organisms/show.html.haml within layouts/application (27.6ms)
|
118325
|
+
Completed 200 OK in 69ms (Views: 34.9ms | ActiveRecord: 30.4ms)
|
118326
|
+
|
118327
|
+
|
118328
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-10-14 17:28:56 +0200
|
118329
|
+
|
118330
|
+
|
118331
|
+
Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2015-10-14 17:28:56 +0200
|
118332
|
+
|
118333
|
+
|
118334
|
+
Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2015-10-14 17:28:56 +0200
|
118335
|
+
|
118336
|
+
|
118337
|
+
Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2015-10-14 17:28:56 +0200
|
118338
|
+
|
118339
|
+
|
118340
|
+
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-10-14 17:28:56 +0200
|
118341
|
+
|
118342
|
+
|
118343
|
+
Started GET "/assets/organisms.css?body=1" for 127.0.0.1 at 2015-10-14 17:28:56 +0200
|
118344
|
+
|
118345
|
+
|
118346
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-10-14 17:28:56 +0200
|
118347
|
+
|
118348
|
+
|
118349
|
+
Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2015-10-14 17:28:56 +0200
|
118350
|
+
|
118351
|
+
|
118352
|
+
Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2015-10-14 17:28:56 +0200
|
118353
|
+
|
118354
|
+
|
118355
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-10-14 17:28:56 +0200
|
118356
|
+
|
118357
|
+
|
118358
|
+
Started GET "/assets/organisms.js?body=1" for 127.0.0.1 at 2015-10-14 17:28:56 +0200
|
118359
|
+
|
118360
|
+
|
118361
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-10-14 17:28:56 +0200
|
118362
|
+
|
118363
|
+
|
118364
|
+
Started GET "/adherent/members" for 127.0.0.1 at 2015-10-14 17:28:58 +0200
|
118365
|
+
Processing by Adherent::MembersController#index as HTML
|
118366
|
+
[1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = 2 LIMIT 1[0m
|
118367
|
+
[1m[35mAdherent::Member Load (127.0ms)[0m SELECT adherent_members.id, organism_id, number, name, forname, birthdate,
|
118368
|
+
adherent_coords.mail AS mail,
|
118369
|
+
adherent_coords.tel AS tel,
|
118370
|
+
adherent_coords.gsm AS gsm,
|
118371
|
+
adherent_coords.office AS office,
|
118372
|
+
adherent_coords.address AS address,
|
118373
|
+
adherent_coords.zip AS zip,
|
118374
|
+
adherent_coords.city AS city,
|
118375
|
+
(SELECT to_date FROM adherent_adhesions
|
118376
|
+
WHERE adherent_adhesions.member_id = adherent_members.id
|
118377
|
+
ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
|
118378
|
+
(SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
|
118379
|
+
adherent_adhesions
|
118380
|
+
WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
|
118381
|
+
adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
|
118382
|
+
(SELECT SUM(amount) FROM adherent_adhesions
|
118383
|
+
WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
|
118384
|
+
(SELECT COUNT(*) FROM adherent_payments
|
118385
|
+
WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
|
118386
|
+
|
118387
|
+
FROM adherent_members
|
118388
|
+
LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
|
118389
|
+
WHERE organism_id = 2
|
118390
|
+
|
118391
|
+
Rendered /home/jcl/rails_project/Adherent/app/views/adherent/members/index.html.erb within layouts/adherent/application (636.3ms)
|
118392
|
+
Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (1.5ms)
|
118393
|
+
Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (3.9ms)
|
118394
|
+
Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (1.2ms)
|
118395
|
+
Completed 200 OK in 1717ms (Views: 1388.4ms | ActiveRecord: 130.5ms)
|
118396
|
+
|
118397
|
+
|
118398
|
+
Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118399
|
+
|
118400
|
+
|
118401
|
+
Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118402
|
+
|
118403
|
+
|
118404
|
+
Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118405
|
+
|
118406
|
+
|
118407
|
+
Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118408
|
+
|
118409
|
+
|
118410
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118411
|
+
|
118412
|
+
|
118413
|
+
Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118414
|
+
|
118415
|
+
|
118416
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118417
|
+
|
118418
|
+
|
118419
|
+
Started GET "/assets/adherent/application.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118420
|
+
|
118421
|
+
|
118422
|
+
Started GET "/assets/adherent/allpayments.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118423
|
+
|
118424
|
+
|
118425
|
+
Started GET "/assets/adherent/adhesion.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118426
|
+
|
118427
|
+
|
118428
|
+
Started GET "/assets/adherent/date_picker.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118429
|
+
|
118430
|
+
|
118431
|
+
Started GET "/assets/adherent/coords.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118432
|
+
|
118433
|
+
|
118434
|
+
Started GET "/assets/adherent/jc_application.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118435
|
+
|
118436
|
+
|
118437
|
+
Started GET "/assets/adherent/demo_table.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118438
|
+
|
118439
|
+
|
118440
|
+
Started GET "/assets/adherent/jcmenu.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118441
|
+
|
118442
|
+
|
118443
|
+
Started GET "/assets/adherent/layouts.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118444
|
+
|
118445
|
+
|
118446
|
+
Started GET "/assets/adherent/old_bootstrap.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118447
|
+
|
118448
|
+
|
118449
|
+
Started GET "/assets/adherent/payments.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118450
|
+
|
118451
|
+
|
118452
|
+
Started GET "/assets/adherent/print.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118453
|
+
|
118454
|
+
|
118455
|
+
Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118456
|
+
|
118457
|
+
|
118458
|
+
Started GET "/assets/adherent/reglements.css?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118459
|
+
|
118460
|
+
|
118461
|
+
Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118462
|
+
|
118463
|
+
|
118464
|
+
Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118465
|
+
|
118466
|
+
|
118467
|
+
Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118468
|
+
|
118469
|
+
|
118470
|
+
Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118471
|
+
|
118472
|
+
|
118473
|
+
Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118474
|
+
|
118475
|
+
|
118476
|
+
Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118477
|
+
|
118478
|
+
|
118479
|
+
Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118480
|
+
|
118481
|
+
|
118482
|
+
Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118483
|
+
|
118484
|
+
|
118485
|
+
Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118486
|
+
|
118487
|
+
|
118488
|
+
Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118489
|
+
|
118490
|
+
|
118491
|
+
Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118492
|
+
|
118493
|
+
|
118494
|
+
Started GET "/assets/bootstrap-sprockets.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118495
|
+
|
118496
|
+
|
118497
|
+
Started GET "/assets/adherent/jquery.dataTables.min.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118498
|
+
|
118499
|
+
|
118500
|
+
Started GET "/assets/adherent/adhesion.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118501
|
+
|
118502
|
+
|
118503
|
+
Started GET "/assets/adherent/allpayments.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118504
|
+
|
118505
|
+
|
118506
|
+
Started GET "/assets/adherent/common.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118507
|
+
|
118508
|
+
|
118509
|
+
Started GET "/assets/adherent/coords.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118510
|
+
|
118511
|
+
|
118512
|
+
Started GET "/assets/adherent/datatableinit.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118513
|
+
|
118514
|
+
|
118515
|
+
Started GET "/assets/adherent/members.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118516
|
+
|
118517
|
+
|
118518
|
+
Started GET "/assets/adherent/reglements.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118519
|
+
|
118520
|
+
|
118521
|
+
Started GET "/assets/adherent/payments.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118522
|
+
|
118523
|
+
|
118524
|
+
Started GET "/assets/adherent/date_picker.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118525
|
+
|
118526
|
+
|
118527
|
+
Started GET "/assets/adherent/application.js?body=1" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118528
|
+
|
118529
|
+
|
118530
|
+
Started GET "/assets/adherent/icones/payment.png" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118531
|
+
|
118532
|
+
|
118533
|
+
Started GET "/assets/adherent/icones/csv.png" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118534
|
+
|
118535
|
+
|
118536
|
+
Started GET "/assets/adherent/icones/nouveau.png" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118537
|
+
|
118538
|
+
|
118539
|
+
Started GET "/assets/adherent/icones/card-address.png" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118540
|
+
|
118541
|
+
|
118542
|
+
Started GET "/assets/adherent/icones/xls.png" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118543
|
+
|
118544
|
+
|
118545
|
+
Started GET "/assets/adherent/icones/bandaid.png" for 127.0.0.1 at 2015-10-14 17:29:00 +0200
|
118546
|
+
|
118547
|
+
|
118548
|
+
Started GET "/assets/adherent/icones/modifier.png" for 127.0.0.1 at 2015-10-14 17:29:01 +0200
|
118549
|
+
|
118550
|
+
|
118551
|
+
Started GET "/assets/adherent/icones/nb_supprimer.png" for 127.0.0.1 at 2015-10-14 17:29:01 +0200
|
118552
|
+
|
118553
|
+
|
118554
|
+
Started GET "/assets/adherent/icones/supprimer.png" for 127.0.0.1 at 2015-10-14 17:29:01 +0200
|
118555
|
+
|
118556
|
+
|
118557
|
+
Started GET "/assets/sort_asc.png" for 127.0.0.1 at 2015-10-14 17:29:01 +0200
|
118558
|
+
|
118559
|
+
|
118560
|
+
Started GET "/assets/sort_both.png" for 127.0.0.1 at 2015-10-14 17:29:02 +0200
|
118561
|
+
|
118562
|
+
|
118563
|
+
Started GET "/assets/back_disabled.png" for 127.0.0.1 at 2015-10-14 17:29:02 +0200
|
118564
|
+
|
118565
|
+
|
118566
|
+
Started GET "/assets/forward_disabled.png" for 127.0.0.1 at 2015-10-14 17:29:02 +0200
|
118567
|
+
|
118568
|
+
|
118569
|
+
Started GET "/assets/forward_enabled.png" for 127.0.0.1 at 2015-10-14 17:29:02 +0200
|