Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Political Memory
memopol
Commits
4a62edac
Commit
4a62edac
authored
Jun 02, 2016
by
Nicolas Joyard
Browse files
Add phone numbers
parent
e3af7ccc
Changes
2
Hide whitespace changes
Inline
Side-by-side
templates/representatives/_address_block.haml
View file @
4a62edac
.address
-
if
address
.
floor
or
address
.
office_number
.detail
-
if
address
.
floor
%span
.floor
Floor {{ address.floor }}
-
if
address
.
office_number
%span
.office
Office {{ address.office_number }}
-
if
address
.
floor
and
address
.
office_number
.office
Floor {{ address.floor }} - office {{ address.office_number }}
.street
{{ address.number }} {{ address.street }}
.city
{{ address.city }} {{ address.postcode }}, {{ address.country.name }}
templates/representatives/_representative_block.haml
View file @
4a62edac
...
...
@@ -67,9 +67,16 @@
%td
=
email
.
email
|
email_link
-
if
representative
.
phone_set
.
all
|
length
>
0
%tr
%th
Phone
numbers
%td
-
for
phone
in
representative
.
phone_set
.
all
.phone
{{
phone.number
}}
-
for
address
in
representative
.
address_set
.
all
%tr
%th
=
address
.
name
%td
-
include
'representatives/_address_block.html'
with
address
=
address
-
include
'representatives/_address_block.html'
with
address
=
address
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment