Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Merge requests
!123
Zakládání soutěží z orgovské hlavní stránky
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Zakládání soutěží z orgovské hlavní stránky
mj/zakladani
into
devel
Overview
0
Commits
3
Changes
3
Merged
Martin Mareš
requested to merge
mj/zakladani
into
devel
2 years ago
Overview
0
Commits
3
Changes
3
Expand
Zvládá běžné situace, které potká garant nižší úrovně.
Staví na
mj/bugfixes
.
0
0
Merge request reports
Viewing commit
48cff6ef
Prev
Next
Show latest version
3 files
+
34
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
48cff6ef
Overview: Zakládání soutěží
· 48cff6ef
Martin Mareš
authored
2 years ago
Viz
#282
.
mo/web/templates/org_index.html
+
7
−
1
Options
{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %}Přístup pro organizátory{% endblock %}
{% block body %}
@@ -61,7 +62,12 @@
{% endif %}
<td>
{% for r in o.role_list %}{{ role_type_names[r] }}{% if not loop.last %}
<br>
{% endif %}{% endfor %}
{% if create %}
<td><a
class=
"btn btn-xs btn-success"
href=
'{{ detail_url }}'
>
Založit
</a>
<td>
<form
action=
"{{ url_for('org_round_create_contest', round_id=o.round.round_id) }}"
method=
"POST"
class=
"form-inline"
>
{{ form_add_contest.csrf_token() }}
<input
name=
"place"
type=
hidden
value=
"{{ o.place.get_code() }}"
>
<input
class=
"btn btn-xs btn-success"
name=
"create_contest"
type=
"submit"
value=
"Založit"
>
</form>
{% else %}
<td><a
class=
"btn btn-xs btn-primary"
href=
'{{ detail_url }}'
>
Detail
</a>
{% endif %}
Loading