Skip to content

Commit

Permalink
Disable select for events from external calendars
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyStk committed Dec 17, 2024
1 parent d6eb968 commit e8ebcb8
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 e8ebcb8

Please sign in to comment.