<commit_before>{% extends "resources/object_form.html" %}

{% block content %}{{ block.super }}

<link rel="stylesheet" type="text/css" href="https://npmcdn.com/flatpickr/dist/flatpickr.min.css">
<link rel="stylesheet" type="text/css" href="https://npmcdn.com/flatpickr/dist/themes/material_orange.css">
<script src="https://npmcdn.com/flatpickr/dist/flatpickr.min.js"></script>
<script src="https://npmcdn.com/flatpickr/dist/l10n/de.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
  flatpickr('#id_days', {
    inline: true,
    locale: 'de',
    mode: 'multiple',
    showMonth: 2,
  });
});
</script>
{% endblock %}<commit_msg>Working loading back of values into picker<commit_after>{% extends "resources/object_form.html" %}

{% block content %}{{ block.super }}

<link rel="stylesheet" type="text/css" href="https://npmcdn.com/flatpickr/dist/flatpickr.min.css">
<link rel="stylesheet" type="text/css" href="https://npmcdn.com/flatpickr/dist/themes/material_orange.css">
<script src="https://npmcdn.com/flatpickr/dist/flatpickr.min.js"></script>
<script src="https://npmcdn.com/flatpickr/dist/l10n/de.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
  var element = document.querySelector('#id_days')
  flatpickr('#id_days', {
    defaultDate: element.value.split(','),
    inline: true,
    locale: 'de',
    mode: 'multiple',
    showMonths: 2,  // no effects yet at the time of writing :-(
  });
});
</script>
{% endblock %}
{'fraction_non_alphanumeric': 0.19692923898531375, 'fraction_numerical': 0.004005340453938585, 'mean_word_length': 5.14344262295082, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7311850', 'n_tokens_mistral': 538, 'n_tokens_neox': 505, 'n_words': 83}