Skip to content

Commit 1031de0

Browse files
committed
added some customizations
1 parent bba9d8e commit 1031de0

File tree

7 files changed

+24
-13
lines changed

7 files changed

+24
-13
lines changed

app/views/layouts/application.html.slim

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ html lang="en"
4747

4848

4949
footer
50-
p © Company 2012
50+
p © rBarboza 2012
5151
/!
5252
Le javascript
5353
\==================================================

app/views/participants/_form.html.slim

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
.form-inputs
55
= f.input :name, :label => 'Nome: '
6-
= f.input :ctg, :label => 'CTG: '
6+
= f.input :ctg, :label => 'CTG/Cidade: '
77
= f.input :region, :label => 'Região: '
88
= f.input :card, :label => 'Cartão Tradicionalista: '
99

app/views/registrations/_individual_report.html.slim

+5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
p
2+
br
3+
br
24
.center style="text-align:center;"
35
| Modalidade:
46
strong #{@registration.modality.name}
57
| Numero de Inscrição:
68
strong #{@registration.id}
79
p
10+
br
811
| Recebemos de
912
strong = @participants
1013
| a quantia de R$
@@ -16,6 +19,8 @@ p
1619
| Taquara,
1720
= Time.now.strftime('%d de Abril de 2012')
1821
br
22+
br
23+
br
1924
p style="text-align:center;"
2025
| ____________________________
2126
br

app/views/registrations/_participant_fields.html.slim

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ h2 Participante
33

44
.form-inputs
55
= f.input :name, :label => 'Nome: '
6-
= f.input :ctg, :label => 'CTG: '
7-
= f.input :region, :label => 'Região; '
8-
= f.input :card, :label => 'Cartão Tradicionalista'
6+
= f.input :ctg, :label => 'CTG/Cidade: '
7+
= f.input :region, :label => 'Região: '
8+
= f.input :card, :label => 'Cartão Tradicionalista: '

app/views/registrations/index.html.slim

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ table class="table table-bordered table-striped table-condensed"
2323

2424
br
2525

26-
= link_to 'Nova Inscrição', new_registration_path, :class => "btn"
26+
/ = link_to 'Nova Inscrição', new_registration_path, :class => "btn"
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.row
2-
.span5
2+
.span6
33
= render "individual_report"
4-
.span5.offset1
4+
.span6
55
= render "individual_report"
66
= link_to 'Back', registrations_path, :class => 'btn'

app/views/registrations/report_all.html.slim

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
h1 = @modality
2-
table.table.table-bordered.table-condensed
1+
- 8.times do
2+
br
3+
.center style="text-align:center;"
4+
h1 = @modality
5+
table.table.table-bordered.table-condensed border="1"
36
tr
47
th
58
h2 Inscrição
@@ -23,16 +26,19 @@ table.table.table-bordered.table-condensed
2326
h3 9
2427
th
2528
h3 10
26-
29+
- x = 0
2730
- @registrations.each do |registration|
31+
- x = x + 1
2832
- registration.participants.each do |participant|
2933
tr
3034
td
3135
h3
32-
= registration.id
36+
= x
3337
| .
3438
= participant.name
35-
b CTG:
39+
b Inscrição:
40+
= registration.id
41+
b CTG:
3642
= "#{participant.ctg}, #{participant.region}a Região"
3743
td
3844
td

0 commit comments

Comments
 (0)