Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
729c3b91
authored
Feb 14, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: group templates updated
parent
8b134fa1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
119 additions
and
1 deletions
+119
-1
one/templates/box/template/box.html
+1
-1
school/templates/box/group/box.html
+64
-0
school/templates/box/group/entry.html
+54
-0
No files found.
one/templates/box/template/box.html
View file @
729c3b91
...
...
@@ -25,7 +25,7 @@
</div>
{% endif %}
{% if not group %}
<li
id=
"new-template-button"
class=
"entry new"
>
<li
id=
"new-template-button"
class=
"entry new
small-row
"
>
<div
class=
"summary"
>
<div
class=
"name"
>
Új Sablon
</div>
<div
class=
"clear"
></div>
...
...
school/templates/box/group/box.html
0 → 100644
View file @
729c3b91
{% extends "box/base/box.html" %}
{% load i18n %}
{% load l10n %}
{% get_current_language as LANGUAGE_CODE %}
{% block title %}
{% trans "My Groups" %}
{% endblock title %}
{% block content %}
<ul
class=
"vm-list entry-list"
id=
"groups"
>
{% if groups %}
{% for group in groups %}
{% include "box/group/entry.html" %}
{% endfor %}
{% else %}
<div
class=
"tooltip"
>
<div
class=
"container"
>
<p>
{% trans "You have no groups." %}
</p>
<p>
{% trans "Create a new one, and add your students to the new group." %}
</p>
<div
class=
"tail"
></div>
</div>
</div>
{% endif %}
<li
class=
"entry"
id=
"new-group"
>
<div
class=
"summary"
>
<div
class=
"name"
>
{% trans "Create new group" %}
</div>
<div
class=
"clear"
></div>
</div>
<div
id=
"new-group-wizard"
style=
"display: none"
>
<form
action=
"/group/new/"
method=
"POST"
class=
"wizard"
>
{% csrf_token %}
<h3>
{% trans "Create new group" %}
</h3>
<ul>
<li>
<label
for=
"new-group-name"
>
{% trans "Group name" %}
</label>
<input
type=
"text"
name=
"name"
id=
"new-group-name"
/>
</li>
<li>
<label
for=
"new-group-semester"
>
{% trans "Semester" %}
</label>
<select
name=
"semester"
id=
"new-group-semester"
>
{% for semester in semesters %}
<option
value=
"{{semester.id}}"
>
{{semester.name}}
</option>
{% endfor %}
</select>
</li>
<li>
<label
for=
"new-group-members"
>
{% trans "Members" %}
</label>
<textarea
name=
"members"
placeholder=
"{% trans 'Student NEPTUN codes, one per line' %}"
id=
"new-group-members"
></textarea>
<div
class=
"clear"
></div>
</li>
</ul>
<nav>
<input
type=
"reset"
class=
"prev"
value=
"{% trans "
Cancel
"
%}"
/>
<input
type=
"submit"
class=
"next"
value=
"{% trans "
Done
"
%}"
/>
<div
class=
"clear"
></div>
</nav>
</form>
</div>
</li>
</ul>
{% endblock content %}
school/templates/box/group/entry.html
0 → 100644
View file @
729c3b91
{% 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