Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2482768f
authored
Feb 14, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: add person template
parent
eae30767
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
115 additions
and
0 deletions
+115
-0
school/templates/box/person/box.html
+61
-0
school/templates/box/person/entry.html
+54
-0
No files found.
school/templates/box/person/box.html
0 → 100644
View file @
2482768f
{% extends "box/base/box.html" %}
{% load i18n %}
{% load l10n %}
{% get_current_language as LANGUAGE_CODE %}
{% block title %}
{% trans "Members of" %}: {{group.name}}
{% endblock title %}
{% block content %}
<ul
class=
"entry-list"
id=
"group-members"
>
{% for member in members %}
<li
class=
"entry small-row"
>
<div
class=
"summary"
>
<div
class=
"name"
>
{% if not member.user %}
{{member.code}}
{% else %}
{{member}} ({{member.code}})
{% endif %}
</div>
<div
class=
"actions"
>
<a
href=
"#"
class=
"remove"
data-gid=
"{{group.id}}"
data-neptun=
"{{member.code}}"
>
<img
src=
"/static/icons/minus-circle.png"
alt=
"{% trans 'Remove' %}"
/>
</a>
</div>
<div
class=
"clear"
></div>
</div>
<div
class=
"details"
>
<div
class=
"container"
>
{% if not member.user %}
{% trans "This user never logged in, no data available" %}
{% else %}
<ul>
<li>
{% trans "Name" %}
<span
class=
"value"
>
{{member}}
</span>
</li>
<li>
{% trans "NEPTUN" %}
<span
class=
"value"
>
{{member.code}}
</span>
</li>
<li>
E-mail:
<span
class=
"value"
><a
href=
"mailto:{{member.user.email}}"
>
{{member.user.email}}
</a></span>
</li>
</ul>
{% endif %}
</div>
</div>
</li>
{% endfor %}
<li
class=
"entry small-row"
>
<div
class=
"summary"
id=
"new-member"
>
<div
class=
"name"
>
{% trans "Add user" %}
</div>
<div
id=
"new-member-form"
>
<input
type=
"text"
placeholder=
"{% trans "
User
NEPTUN
code
"
%}"
/>
<input
type=
"submit"
value=
"{% trans "
Add
user
"
%}"
data-id=
"{{group.id}}"
/>
</div>
<div
class=
"clear"
></div>
</div>
</li>
</ul>
{% endblock content %}
school/templates/box/person/entry.html
0 → 100644
View file @
2482768f
{% extends "box/base/entry.html" %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block content %}
<li
class=
"entry"
>
{{ block.super }}
</li>
{% endblock content %}
{% block summary %}
<div
class=
"summary"
>
<div
class=
"name"
>
{{ group.name }}
</div>
<div
class=
"actions"
>
<a
href=
"#"
class=
"delete"
data-id=
"{{group.id}}"
data-name=
"{{group.name}}"
>
<img
src=
"/static/icons/minus-circle.png"
alt=
"{% trans "
Delete
"
%}"
/>
</a>
</div>
<div
class=
"clear"
></div>
</div>
{% endblock summary %}
{% block details %}
<ul>
<li>
{% trans "Course" %}:
<span
class=
"value"
>
{% if group.course %}
{{group.course.name}}
{% else %}
{% trans "Not assigned" %}
{% endif %}
</span>
</li>
<li>
{% trans "Semester" %}:
<span
class=
"value"
>
{{group.semester.name}}
</span>
</li>
<li>
{% trans "Owner(s)" %}:
<span
class=
"value"
>
{{group.owner_list}}
</span>
</li>
<li>
{% trans "Member count" %}:
<span
class=
"value"
>
{{group.member_count}}
</span>
</li>
<li>
<span
class=
"value"
>
<a
href=
"/group/show/{{group.id}}"
>
{% trans "More details" %}
</a>
</span>
</li>
</ul>
{% endblock details %}
Write
Preview
Markdown
is supported
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