Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
6df72755
Commit
6df72755
authored
3 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Simplify person contact data table
parent
8cca1909
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!770
Resolve "Rework mobile design of Person overview page"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/core/templates/core/person/full.html
+31
-18
31 additions, 18 deletions
aleksis/core/templates/core/person/full.html
with
31 additions
and
18 deletions
aleksis/core/templates/core/person/full.html
+
31
−
18
View file @
6df72755
...
...
@@ -107,46 +107,57 @@
<div
class=
"card-panel"
>
<table
class=
"highlight"
>
<tr>
<td
rowspan=
"6"
>
</td>
<td>
<i
class=
"material-icons small"
>
person
</i>
</td>
<td>
{{ person.first_name }}
</td>
<td>
{{ person.additional_name }}
</td>
<td>
{{ person.last_name }}
</td>
<td>
{{ person.first_name }} {{ person.additional_name }} {{ person.last_name }}
</td>
</tr>
<tr>
<td>
<i
class=
"material-icons small"
>
face
</i>
</td>
<td
colspan=
"3"
>
{{
person.get_sex_display
}
}
</td>
<td
>
{% firstof
person.get_sex_display
"–" %
}
</td>
</tr>
{% has_perm 'core.view_address_rule' user person as can_view_address %}
{% if can_view_address %}
<tr>
<td>
<td
rowspan=
"2"
>
<i
class=
"material-icons small"
>
home
</i>
</td>
<td
colspan=
"2"
>
{{ person.street }} {{ person.housenumber }}
</td>
<td
colspan=
"2"
>
{{ person.postal_code }} {{ person.place }}
</td>
<td>
{% firstof person.street "–" %} {{ person.housenumber }}
</td>
</tr>
<tr>
<td>
{{ person.postal_code }} {% firstof person.place "–" %}
</td>
</tr>
{% endif %}
{% has_perm 'core.view_contact_details_rule' user person as can_view_contact_details %}
{% if can_view_contact_details %}
<tr>
<td>
<td
rowspan=
"2"
>
<i
class=
"material-icons small"
>
phone
</i>
</td>
<td>
{{ person.phone_number }}
</td>
<td>
{{ person.mobile_number }}
</td>
<td>
<a
href=
"tel:{{ person.phone_number }}"
>
{{ person.phone_number }}
</a>
<small>
({% trans "home number" %})
</small>
</td>
</tr>
<tr>
<td>
<a
href=
"tel:{{ person.phone_number }}"
>
{{ person.mobile_number }}
</a>
<small>
({% trans "mobile number" %})
</small>
</td>
</tr>
<tr>
<td>
<i
class=
"material-icons small"
>
email
</i>
</td>
<td
colspan=
"3"
>
{{ person.email }}
</td>
<td>
{% if person.email %}
<a
href=
"mailto:{{ person.email }}"
>
{{ person.email }}
</a>
{% else %}
–
{% endif %}
</td>
</tr>
{% endif %}
{% has_perm 'core.view_personal_details_rule' user person as can_view_personal_details %}
...
...
@@ -155,21 +166,23 @@
<td>
<i
class=
"material-icons small"
>
cake
</i>
</td>
<td
colspan=
"2"
>
{{ person.date_of_birth|date }}
</td>
<td
colspan=
"2"
>
{{ person.place_of_birth }}
</td>
<td>
<time
datetime=
"{{ person.date_of_birth|date:'c' }}"
>
{{ person.date_of_birth|date }}
</time>
{% firstof person.place_of_birth "–" %}
</td>
</tr>
{% endif %}
</table>
</div>
</div>
{% if person.description %}
<div
class=
"col s12 m
12
"
>
<div
class=
"col s12 m
6
"
>
<h2>
{% trans "Description" %}
</h2>
<p>
{{ person.description }}
</p>
</div>
{% endif %}
</div>
{% if person.children.all and can_view_personal_details %}
<div
class=
"col s12 m12"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment