<commit_before>{% extends 'base.html.twig' %}

{% block stylesheets %}
{{ parent() }}
<link href="{{ asset('assets/vendor/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css') }}" rel="stylesheet">
<style type="text/css">
    #due-date-input {
        margin-top: 1em;
    }
</style>
{% endblock stylesheets %}

{% block body %}
<form id="edit-item-form" name="edit-item-form" method="post" action="{{ path('item_update') }}">
    <input type="hidden" name="_csrf_token" value="{{ csrf_token('edit-item') }}">
    <input type="hidden" name="item-id" value="{{ item.id }}">
    <div class="row">
        <div class="col-md-12">
            <div class="form-group">
                <label for="item-name">Name:</label>
                <input id="item-name" class="form-control" required data-minlength="2" minlength="2" maxlength="255" data-error="Validierungsfehler" data-required-error="Name ist ein Pflichtfeld" data-minlength-error="Der Name muss mindestens 2 Zeichen haben" data-match-error="Der Name darf höchstens 255 Zeichen haben" type="text" name="item-name" value="{{ item.name }}">
                <div class="help-block with-errors"></div>
            </div>
            <div class="form-group">
                <label for="item-description">Beschreibung:</label>
                <textarea id="item-description" class="form-control" rows="5" name="item-description">{{ item.description }}</textarea>
            </div>
            <div class="form-group">
                <label for="item-url">URL:</label>
                <input id="item-url" class="form-control" pattern="^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$" data-minlength="11" minlength="11" maxlength="255" type="text"  data-error="Validierungsfehler" data-minlength-error="Die URL muss mindestens 11 Zeichen haben" data-match-error="Die URL darf höchstens 255 Zeichen haben" data-pattern-error="Die URL muss gültig sein und mit http:// oder https:// beginnen" name="item-url" value="{{ item.url }}">
                <div class="help-block with-errors"></div>
            </div>
            <div class="form-group">
                <label for="item-due-date">Benötigt bis:</label>
                {%  if item.due is empty %}
                <div id="due-date-toggle">
                    <label class="checkbox-inline"><input id="item-due-date-none" type="checkbox" name="item-due-date-none" checked="checked">ohne Termin</label>
                </div>
                <div id="due-date-input" class="form-group" style="display: none">
                    <div class='input-group date' id='item-due-date-input'>
                        <input id="item-due-date" type='text' class="form-control" name="item-due-date" data-default-date="{{ item.due|date('m/d/Y') }}" />
                        <span class="input-group-addon">
                            <span class="glyphicon glyphicon-calendar"></span>
                        </span>
                    </div>
                </div>
                {% else %}
                <div id="due-date-toggle">
                    <label class="checkbox-inline"><input id="item-due-date-none" type="checkbox" name="item-due-date-none">no due date</label>
                </div>
                <div id="due-date-input" class="form-group">
                    <div class='input-group date' id='item-due-date-input'>
                        <input id="item-due-date" type='text' class="form-control" name="item-due-date" data-default-date="{{ item.due|date('m/d/Y') }}" />
                        <span class="input-group-addon">
                            <span class="glyphicon glyphicon-calendar"></span>
                        </span>
                    </div>
                </div>
                {% endif %}
            </div><commit_msg>Swap single quotes for double quotes (HTML).<commit_after>{% extends 'base.html.twig' %}

{% block stylesheets %}
{{ parent() }}
<link href="{{ asset('assets/vendor/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css') }}" rel="stylesheet">
<style type="text/css">
    #due-date-input {
        margin-top: 1em;
    }
</style>
{% endblock stylesheets %}

{% block body %}
<form id="edit-item-form" name="edit-item-form" method="post" action="{{ path('item_update') }}">
    <input type="hidden" name="_csrf_token" value="{{ csrf_token('edit-item') }}">
    <input type="hidden" name="item-id" value="{{ item.id }}">
    <div class="row">
        <div class="col-md-12">
            <div class="form-group">
                <label for="item-name">Name:</label>
                <input id="item-name" class="form-control" required data-minlength="2" minlength="2" maxlength="255" data-error="Validierungsfehler" data-required-error="Name ist ein Pflichtfeld" data-minlength-error="Der Name muss mindestens 2 Zeichen haben" data-match-error="Der Name darf höchstens 255 Zeichen haben" type="text" name="item-name" value="{{ item.name }}">
                <div class="help-block with-errors"></div>
            </div>
            <div class="form-group">
                <label for="item-description">Beschreibung:</label>
                <textarea id="item-description" class="form-control" rows="5" name="item-description">{{ item.description }}</textarea>
            </div>
            <div class="form-group">
                <label for="item-url">URL:</label>
                <input id="item-url" class="form-control" pattern="^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$" data-minlength="11" minlength="11" maxlength="255" type="text"  data-error="Validierungsfehler" data-minlength-error="Die URL muss mindestens 11 Zeichen haben" data-match-error="Die URL darf höchstens 255 Zeichen haben" data-pattern-error="Die URL muss gültig sein und mit http:// oder https:// beginnen" name="item-url" value="{{ item.url }}">
                <div class="help-block with-errors"></div>
            </div>
            <div class="form-group">
                <label for="item-due-date">Benötigt bis:</label>
                {%  if item.due is empty %}
                <div id="due-date-toggle">
                    <label class="checkbox-inline"><input id="item-due-date-none" type="checkbox" name="item-due-date-none" checked="checked">ohne Termin</label>
                </div>
                <div id="due-date-input" class="form-group" style="display: none">
                    <div class='input-group date' id='item-due-date-input'>
                        <input id="item-due-date" type='text' class="form-control" name="item-due-date" data-default-date="{{ item.due|date('m/d/Y') }}" />
                        <span class="input-group-addon">
                            <span class="glyphicon glyphicon-calendar"></span>
                        </span>
                    </div>
                </div>
                {% else %}
                <div id="due-date-toggle">
                    <label class="checkbox-inline"><input id="item-due-date-none" type="checkbox" name="item-due-date-none">no due date</label>
                </div>
                <div id="due-date-input" class="form-group">
                    <div class="input-group date" id="item-due-date-input">
                        <input id="item-due-date" type='text' class="form-control" name="item-due-date" data-default-date="{{ item.due|date('m/d/Y') }}" />
                        <span class="input-group-addon">
                            <span class="glyphicon glyphicon-calendar"></span>
                        </span>
                    </div>
                </div>
                {% endif %}
            </div>
{'fraction_non_alphanumeric': 0.18232910730623447, 'fraction_numerical': 0.00705790092798327, 'mean_word_length': 2.1963241436925647, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, 'https://': 2, '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': '965152', 'n_tokens_mistral': 2361, 'n_tokens_neox': 2202, 'n_words': 431}