Skip to content

Commit

Permalink
Disable select for events from external calendars
Browse files Browse the repository at this point in the history
Co-authored-by: KateGithub12 <[email protected]>
  • Loading branch information
JoeyStk and KateGithub12 committed Dec 17, 2024
1 parent d6eb968 commit 28564d0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
<select name="weekdays_for_weekly"
id="id_weekdays_for_weekly"
multiple="multiple"
class="{% if recurrence_rule_form.weekdays_for_weekly.errors %} border-red-500{% endif %}">
class="{% if recurrence_rule_form.weekdays_for_weekly.errors %} border-red-500{% endif %}"
{% if recurrence_rule_form.weekdays_for_weekly.field.disabled %} disabled {% endif %}>
{% for choice_value, choice_label in recurrence_rule_form.fields.weekdays_for_weekly.widget.choices %}
<option value="{{ choice_value }}"
{% if not recurrence_rule_form.data|is_empty %} {% if choice_value in recurrence_rule_form.data|get_int_list:'weekdays_for_weekly' %}selected{% endif %}
Expand Down

0 comments on commit 28564d0

Please sign in to comment.