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
fc9ec538
authored
Feb 11, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: markup fix
parent
fa9dda71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
44 deletions
+46
-44
one/templates/box-grouplist.html
+2
-2
one/templates/new-share.html
+44
-42
No files found.
one/templates/box-grouplist.html
View file @
fc9ec538
...
@@ -88,12 +88,12 @@
...
@@ -88,12 +88,12 @@
<p>
<p>
<textarea
name=
"members"
placeholder=
"{% trans 'Student NEPTUN codes, one per line' %}"
id=
"new-group-members"
></textarea>
<textarea
name=
"members"
placeholder=
"{% trans 'Student NEPTUN codes, one per line' %}"
id=
"new-group-members"
></textarea>
</p>
</p>
<h4>
{% trans "Summary" %}
</h4>
<
!--<
h4>{% trans "Summary" %}</h4>
<p>
<p>
<strong>{% trans "Group name" %}:</strong> <span id="new-group-summary-name"></span><br />
<strong>{% trans "Group name" %}:</strong> <span id="new-group-summary-name"></span><br />
<strong>{% trans "Semester" %}:</strong> <span id="new-group-summary-semester"></span><br />
<strong>{% trans "Semester" %}:</strong> <span id="new-group-summary-semester"></span><br />
<strong>{% trans "Member count" %}:</strong> <span id="new-group-summary-count"></span><br />
<strong>{% trans "Member count" %}:</strong> <span id="new-group-summary-count"></span><br />
</p>
</p>
-->
<p>
<p>
{% csrf_token %}
{% csrf_token %}
<input
type=
"submit"
value=
"{% trans "
Done
"
%}"
>
<input
type=
"submit"
value=
"{% trans "
Done
"
%}"
>
...
...
one/templates/new-share.html
View file @
fc9ec538
...
@@ -5,20 +5,20 @@
...
@@ -5,20 +5,20 @@
<h2>
{% blocktrans with t=base.name%}Sharing template: {{t}}{% endblocktrans %}
</h2>
<h2>
{% blocktrans with t=base.name%}Sharing template: {{t}}{% endblocktrans %}
</h2>
{% if not group %}
{% if not group %}
<div
class=
"hilight"
>
<div
class=
"hilight"
>
<p
>
{% trans "Choose a group" %}
</p>
<p
style=
"margin: 5px"
>
{% trans "Choose a group" %}
</p>
{% if not groups %}
{% if not groups %}
<p
class=
"hilight
"
>
{% trans "You have no groups." %}
</p>
<p
style=
"margin: 5px
"
>
{% trans "You have no groups." %}
</p>
{% endif %}
{% endif %}
<ul
>
<ul
style=
"margin: 5px"
>
<li>
<li>
<label
for=
"share-group"
>
{% trans "Group" %}
</label>
<label
for=
"share-group"
>
{% trans "Group" %}
</label>
<select
id=
"share-group-select"
name=
"group"
{%
if
not
groups
%}
disabled=
""
{%
endif
%}
>
<select
id=
"share-group-select"
name=
"group"
{%
if
not
groups
%}
disabled=
""
{%
endif
%}
>
<option
value=
""
selected=
""
class=
"dummy"
>
--
</option>
<option
value=
""
selected=
""
class=
"dummy"
>
--
</option>
{%for i in groups%}
<option
value=
"{{i.id}}"
>
{{i.name}} ({{i.members.count}})
</option>
{%endfor%}
{%for i in groups%}
<option
value=
"{{i.id}}"
>
{{i.name}} ({{i.members.count}})
</option>
{%endfor%}
</select>
</select>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
</li>
</li>
</ul>
</ul>
</div>
</div>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
{% else %}
{% else %}
...
@@ -33,40 +33,42 @@
...
@@ -33,40 +33,42 @@
</li>
</li>
<li
class=
"li-share-type"
>
<li
class=
"li-share-type"
>
<label
for=
"share-type"
>
{% trans "Type" %}
</label>
<label
for=
"share-type"
>
{% trans "Type" %}
</label>
<ul
class=
"radio"
>
<ul
class=
"radio"
>
{% for s in types %}
<li>
<label>
<input
type=
"radio"
name=
"type"
value=
"{{s.id}}"
id=
"share-type-{{s.id}}"
{%
if
s
.
default
%}
checked=
"checked"
{%
endif
%}
/>
{{s.verbose_name}}
</label>
</li>
{% endfor %}
</ul>
{% for s in types %}
{% for s in types %}
<p
id=
"share-type-summary-{{s.id}}"
class=
"type-summary clear"
<li>
{%
if
not
s
.
default
%}
style=
"display:none"
{%
endif
%}
>
<label>
{{s.help_text}}
<input
type=
"radio"
name=
"type"
value=
"{{s.id}}"
id=
"share-type-{{s.id}}"
({% if s.suspend %}
{%
if
s
.
default
%}
checked=
"checked"
{%
endif
%}
/>
<span
class=
"suspend"
{{s.verbose_name}}
title=
"{% blocktrans with time=s.suspend %}Suspend after {{time}}.{%endblocktrans%}"
>
</label>
{{s.suspendx|timeuntil}}
</li>
</span>
{%endif%}{% if s.delete %}
<span
class=
"delete"
title=
"{% blocktrans with time=s.delete %}Delete after {{time}}.{%endblocktrans%}"
>
{{s.deletex|timeuntil}}
</span>
{%endif%})
</p>
{% endfor %}
{% endfor %}
<div
class=
"clear"
></div>
</ul>
{% for s in types %}
<p
id=
"share-type-summary-{{s.id}}"
class=
"type-summary clear"
{%
if
not
s
.
default
%}
style=
"display:none"
{%
endif
%}
>
{{s.help_text}}
({% if s.suspend %}
<span
class=
"suspend"
title=
"{% blocktrans with time=s.suspend %}Suspend after {{time}}.{%endblocktrans%}"
>
{{s.suspendx|timeuntil}}
</span>
{%endif%}{% if s.delete %}
<span
class=
"delete"
title=
"{% blocktrans with time=s.delete %}Delete after {{time}}.{%endblocktrans%}"
>
{{s.deletex|timeuntil}}
</span>
{%endif%})
</p>
{% endfor %}
<div
class=
"clear"
></div>
</li>
</li>
<li
class=
"clear"
>
<li>
<label
for=
"share-instance-limit"
>
{% trans "Maximal count of instances" %}
</label>
<label
for=
"share-instance-limit"
>
{% trans "Maximal count of instances" %}
</label>
<input
type=
"number"
name=
"instance_limit"
id=
"share-instance-limit"
value=
"10"
/>
<input
type=
"number"
name=
"instance_limit"
id=
"share-instance-limit"
value=
"10"
/>
<div
class=
"clear"
></div>
</li>
</li>
<li
class=
"clear"
>
<li>
<label
for=
"share-instance-limit"
>
{% trans "Maximal count of instaces/user" %}
</label>
<label
for=
"share-instance-limit"
>
{% trans "Maximal count of instaces/user" %}
</label>
<input
type=
"number"
name=
"per_user_limit"
id=
"share-per-user-limit"
value=
"1"
/>
<input
type=
"number"
name=
"per_user_limit"
id=
"share-per-user-limit"
value=
"1"
/>
<div
class=
"clear"
></div>
</li>
</li>
<li
style=
"border: none"
class=
"clear"
>
<li
style=
"border: none"
class=
"clear"
>
...
...
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