Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
hemp
Maják
Commits
fab9d339
Commit
fab9d339
authored
4 years ago
by
jan.bednarik
Browse files
Options
Downloads
Patches
Plain Diff
donate: Update targeted donations form
parent
a4365c1a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
donate/static/donate/assets/js/scripts.js
+3
-2
3 additions, 2 deletions
donate/static/donate/assets/js/scripts.js
donate/templates/donate/donate_targeted_donations_page.html
+3
-1
3 additions, 1 deletion
donate/templates/donate/donate_targeted_donations_page.html
with
6 additions
and
3 deletions
donate/static/donate/assets/js/scripts.js
+
3
−
2
View file @
fab9d339
...
...
@@ -92,8 +92,9 @@
});
$
(
"
#other_target_select
"
).
change
(
function
()
{
if
(
$
(
"
#other_target
"
).
is
(
"
:checked
"
))
{
updateLink
(
$
(
"
#other_target_select
"
).
val
());
if
(
$
(
this
).
val
()
!==
"
-
"
)
{
$
(
"
#other_target
"
).
prop
(
"
checked
"
,
true
);
updateLink
(
$
(
this
).
val
());
}
});
...
...
This diff is collapsed.
Click to expand it.
donate/templates/donate/donate_targeted_donations_page.html
+
3
−
1
View file @
fab9d339
...
...
@@ -35,7 +35,9 @@
<div
class=
"custom-control custom-radio my-3"
>
<input
type=
"radio"
id=
"other_target"
name=
"portal_project_id"
value=
"-1"
class=
"custom-control-input target-radio"
{%
if
not
main_targets
%}
checked
required
{%
endif
%}
>
<label
class=
"custom-control-label col-form-label-lg custom-control-label-for-select"
for=
"other_target"
>
Jiný účel:
<select
id=
"other_target_select"
name=
"select_portal_project_id"
class=
"custom-control-select"
>
<option
value=
"-"
>
--- vybrat ---
</option>
{% for target in other_targets %}
<option
value=
"{{ target.portal_project_id }}"
>
{{ target.title }}
</option>
{% endfor %}
...
...
@@ -102,7 +104,7 @@
{% if is_preselected %}
<a
href=
"{% pageurl page %}"
>
ukaž všechny adresné dary pro kraj
</a>
{% else %}
<a
id=
"target_sharing_link"
href=
"{% pageurl page %}?p={{ initial_project_id }}"
>
odkaz pro sdílení
</a>
<a
id=
"target_sharing_link"
href=
"{% pageurl page %}?p={{ initial_project_id }}"
>
odkaz pro sdílení
vybraného účelu
</a>
{% endif %}
</div>
...
...
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