Skip to content
Snippets Groups Projects
Commit fab9d339 authored by jan.bednarik's avatar jan.bednarik
Browse files

donate: Update targeted donations form

parent a4365c1a
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
});
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment