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
thalia
concrexit
Commits
3ce223d7
Verified
Commit
3ce223d7
authored
Mar 25, 2018
by
Sébastiaan Versteeg
Browse files
Add phone and email links to events registrations overview
parent
0c84ce79
Changes
4
Hide whitespace changes
Inline
Side-by-side
website/events/static/events/css/admin.scss
View file @
3ce223d7
...
...
@@ -6,6 +6,25 @@
overflow-y
:
auto
;
}
.dashboard
.module
table
td
a
{
display
:
inline-block
;
vertical-align
:
middle
;
&
.member-phone
,
&
.member-email
{
width
:
16px
;
height
:
16px
;
}
&
.member-phone
{
background
:
url('../images/phone-square.svg')
no-repeat
;
padding-right
:
2px
;
}
&
.member-email
{
background
:
url('../images/envelope-square.svg')
no-repeat
;
}
}
th
.sortable
{
&
:hover
{
background-color
:
#eee
;
...
...
website/events/static/events/images/envelope-square.svg
0 → 100644
View file @
3ce223d7
<svg
xmlns=
"http://www.w3.org/2000/svg"
fill=
"#447e9b"
viewBox=
"0 0 448 512"
><path
d=
"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM178.117 262.104C87.429 196.287 88.353 196.121 64 177.167V152c0-13.255 10.745-24 24-24h272c13.255 0 24 10.745 24 24v25.167c-24.371 18.969-23.434 19.124-114.117 84.938-10.5 7.655-31.392 26.12-45.883 25.894-14.503.218-35.367-18.227-45.883-25.895zM384 217.775V360c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V217.775c13.958 10.794 33.329 25.236 95.303 70.214 14.162 10.341 37.975 32.145 64.694 32.01 26.887.134 51.037-22.041 64.72-32.025 61.958-44.965 81.325-59.406 95.283-70.199z"
/></svg>
website/events/static/events/images/phone-square.svg
0 → 100644
View file @
3ce223d7
<svg
xmlns=
"http://www.w3.org/2000/svg"
fill=
"#447e9b"
viewBox=
"0 0 448 512"
><path
d=
"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM94 416c-7.033 0-13.057-4.873-14.616-11.627l-14.998-65a15 15 0 0 1 8.707-17.16l69.998-29.999a15 15 0 0 1 17.518 4.289l30.997 37.885c48.944-22.963 88.297-62.858 110.781-110.78l-37.886-30.997a15.001 15.001 0 0 1-4.289-17.518l30-69.998a15 15 0 0 1 17.16-8.707l65 14.998A14.997 14.997 0 0 1 384 126c0 160.292-129.945 290-290 290z"
/></svg>
website/events/templates/events/admin/registrations_table.html
View file @
3ce223d7
...
...
@@ -29,7 +29,11 @@
{% for registration in registrations %}
<tr
class=
"{% if forloop.first %}row1 {% endif %}"
>
{% if registration.member %}
<td><a
href=
"{{ registration.member.get_absolute_url }}"
>
{{ registration.member.get_full_name }}
</a></td>
<td>
<a
href=
"{{ registration.member.get_absolute_url }}"
>
{{ registration.member.get_full_name }}
</a>
<a
href=
"tel:{{ registration.member.profile.phone_number }}"
title=
"{{ registration.member.profile.phone_number }}"
class=
"member-phone"
></a>
<a
href=
"mailto:{{ registration.member.email }}"
title=
"{{ registration.member.email }}"
class=
"member-email"
></a>
</td>
{% else %}
<td>
{{ registration.name }}
</td>
{% endif %}
...
...
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