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
Commits
968e9c70
Commit
968e9c70
authored
4 years ago
by
Jan Prachař
Browse files
Options
Downloads
Patches
Plain Diff
Přehlednější UI pro emaily účastníků
parent
39143432
No related branches found
No related tags found
1 merge request
!76
Vylepšené UI s emaily účastníků
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/web/templates/parts/org_participants_emails.html
+18
-9
18 additions, 9 deletions
mo/web/templates/parts/org_participants_emails.html
with
18 additions
and
9 deletions
mo/web/templates/parts/org_participants_emails.html
+
18
−
9
View file @
968e9c70
...
...
@@ -4,16 +4,25 @@
</a>
<h3>
E-mailové adresy
</h3>
<div
class=
"form-frame"
>
{% if emails %}
<p
>
Pokud máte e-mailového klienta, který umí odkazy typu
<code>
mailto:
</code>
, tak vám následující tlačítko předvyplní nový e-mail:
<
a
class=
"btn btn-primary"
href=
"{{ mailto_link }}"
>
Vytvořit
e
-
mail
pro {{ count|inflected("adresáta", "adresáty", "adresátů") }}
</
a>
<p
re>
{{ emails|join('\n')|escape }}
</pre>
<
textarea
id=
"emails-textarea"
style=
"display: none"
>
{{
email
s|join('\n')|escape }}
</textare
a>
<p>
E-mailové adresy si také můžete zkopírovat z následujícího pole. Prosím posílejte jako
<b>
skrytou kopii
</b>
, ať účastníci nevidí navzájem své e-maily.
</p>
<code><textarea
id=
"emails-textarea"
class=
"form-control"
readonly
style=
"resize: none;"
onclick=
"this.focus(); this.select();"
>
{{ emails|join('\n')|escape }}
</textarea></code>
{% else %}
<i>
Žádné e-mailové adresy k vypsání.
</i>
{% endif %}
</div>
<p>
<a
class=
"btn btn-primary"
href=
"{{ mailto_link }}"
>
Vytvořit e-mail pro {{ count|inflected("adresáta", "adresáty", "adresátů") }}
</a>
<button
class=
"btn btn-default"
id=
"copy-emails"
>
Zkopírovat všechny adresy do schránky
</button>
<script
type=
"text/javascript"
>
document
.
getElementById
(
'
emails-textarea
'
).
style
.
height
=
(
document
.
getElementById
(
'
emails-textarea
'
).
scrollHeight
+
5
)
+
"
px
"
;
var
ta
=
document
.
getElementById
(
'
emails-textarea
'
);
document
.
getElementById
(
'
copy-emails
'
).
addEventListener
(
'
click
'
,
function
()
{
ta
.
style
.
display
=
'
block
'
;
ta
.
select
();
document
.
execCommand
(
'
copy
'
,
false
);
ta
.
style
.
display
=
'
none
'
;
});
</script>
</p>
<p>
E-mailové adresy účastníků prosím vkládejte do pole pro
<b>
skrytou kopii (Bcc)
</b>
, ať si navzájem nevidí své e-maily.
</p>
{% else %}
<i>
Žádné e-mailové adresy k vypsání.
</i>
{% endif %}
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