<commit_before>	{% load static %}
	<div class="row">
		<!-- left column -->
		<div class="col-md-6">
			<!-- general form elements -->
			<div class="box box-primary">
				<div class="box-header">
					<h3 class="box-title">{{element_titel}}</h3>
				</div>
				<!-- /.box-header -->
				<!-- form start -->
				<form role="form" action="/addeinzelbuchung/" method="post">{% csrf_token %}
				<input type="hidden" name="ID" value="{{ID}}">
					<div class="box-body">
						<div class="form-group">
							<label>Datum:</label>
							<div class="input-group">
								<div class="input-group-addon">
									<span class="fa fa-calendar"></span>
								</div>
								<input value="{{default_item.Datum}}" type="text" name="date" class="form-control" data-inputmask="'alias': 'dd.mm.yyyy'" data-mask />
							</div>
						</div>
						<div class="form-group">
							<label>Name der Ausgabe</label> <input value="{{default_item.Name}}" type="text" name="name" class="form-control" placeholder="Enter ..." />
						</div>
						<div class="form-group">
							<label>Wert der Ausgabe</label> <input value="{{default_item.Wert}}" pattern="[0-9]+([\.,][0-9]+)?" step="0.01" name="wert" class="form-control" placeholder="" />
						</div>
						{% if bearbeitungsmodus %}
							<input type="hidden" name="edit_index" value="{{default_item.index}}">
						{% endif %}
						<div class="form-group">
							<label>Kategorie</label> <select value="{{default_item.Kategorie}}" class="form-control" id="kategorie_auswahl" name="kategorie">
							 {% for kategorie in kategorien %}
								<option>{{kategorie}}</option>
							 {% endfor %}
							</select>
							
							{% if bearbeitungsmodus %}
								<script type="text/javascript">
									function SelectElement()
										{
											var element = document.getElementById('kategorie_auswahl');
											element.value = "{{default_item.Kategorie}}";
										}
										SelectElement()
								</script>
							{% endif %}
							
						</div>


					</div>
					<!-- /.box-body -->

					<div class="box-footer">
						<button type="submit" name="action" value="add" id="add" class="btn btn-primary">{{approve_title}}</button>
					</div>
				</form>
			</div>
			<!-- /.box -->
		</div>
		<!--/.col (right) -->
	</div>
	<!-- /.row -->
	<div class="row">
    <div class="col-md-12">
      <!-- Tabelle letzte Buchungen -->
      <div class="box box-info">
        <div class="box-header with-border">
          <h3 class="box-title">Letzte Erfassungen</h3>
          <div class="box-tools pull-right">
            <button class="btn btn-box-tool" data-widget="collapse"><span class="fa fa-minus"></span></button>
          </div>
        </div><!-- /.box-header -->
        <div class="box-body">
          <div class="table-responsive">
            <table class="table no-margin" id="letzte_erfassungen">
              <thead>
                <tr>
                  <th></th>
                  <th>Datum</th>
                  <th>Name</th><commit_msg>added add kategorie on add einnahmen page<commit_after>	{% load static %}
	<div class="row">
		<!-- left column -->
		<div class="col-md-6">
			<!-- general form elements -->
			<div class="box box-primary">
				<div class="box-header">
					<h3 class="box-title">{{element_titel}}</h3>
				</div>
				<!-- /.box-header -->
				<!-- form start -->
				<form role="form" action="/addeinzelbuchung/" method="post">{% csrf_token %}
				<input type="hidden" name="ID" value="{{ID}}">
					<div class="box-body">
						<div class="form-group">
							<label>Datum:</label>
							<div class="input-group">
								<div class="input-group-addon">
									<span class="fa fa-calendar"></span>
								</div>
								<input value="{{default_item.Datum}}" type="text" name="date" class="form-control" data-inputmask="'alias': 'dd.mm.yyyy'" data-mask />
							</div>
						</div>
						<div class="form-group">
							<label>Name der Ausgabe</label> <input value="{{default_item.Name}}" type="text" name="name" class="form-control" placeholder="Enter ..." />
						</div>
						<div class="form-group">
							<label>Wert der Ausgabe</label> <input value="{{default_item.Wert}}" pattern="[0-9]+([\.,][0-9]+)?" step="0.01" name="wert" class="form-control" placeholder="" />
						</div>
						{% if bearbeitungsmodus %}
							<input type="hidden" name="edit_index" value="{{default_item.index}}">
						{% endif %}
						<div class="form-group">
							<label>Kategorie</label> <select value="{{default_item.Kategorie}}" class="form-control" id="kategorie_auswahl" name="kategorie">
							 {% for kategorie in kategorien %}
								<option>{{kategorie}}</option>
							 {% endfor %}
							</select>
							
							{% if bearbeitungsmodus %}
								<script type="text/javascript">
									function SelectElement()
										{
											var element = document.getElementById('kategorie_auswahl');
											element.value = "{{default_item.Kategorie}}";
										}
										SelectElement()
								</script>
							{% endif %}
							
						</div>


					</div>
					<!-- /.box-body -->

					<div class="box-footer">
						<button type="submit" name="action" value="add" id="add" class="btn btn-primary">{{approve_title}}</button>
					</div>
				</form>
			</div>
			<!-- /.box -->
		</div>
		<!--/.col (right) -->
		<div class="col-md-6">
			<!-- general form elements -->
			<div class="box box-primary collapsed-box">
				<div class="box-header">
					<h3 class="box-title">Einstellungen</h3>
					<div class="box-tools pull-right">
						<button class="btn btn-box-tool" data-widget="collapse" id="open_add_kategorie"><span class="fa fa-plus"></span></button>
					</div>
				</div>
				<!-- /.box-header -->
				<!-- form start -->
				<form role="form" action="/configuration/" method="post">{% csrf_token %}
					<div class="box-body">
						<div class="form-group">
							<label>Für den nächsten Eintrag eine zusätzliche Kategorie hinzufügen</label> <input type="text" name="neue_kategorie" class="form-control" placeholder="Enter ..." />
						</div>
						</div>
					<div class="box-footer">
						<input type="hidden" name="redirect" value="addeinzelbuchung">
						<button type="submit" name="action" value="add_kategorie" id="add_kategorie" class="btn btn-primary">Daten aktualisieren</button>
					</div>
				</form>
			</div>
			<!-- /.box -->
	</div>
	
	<!-- /.row -->
	<div class="row">
    <div class="col-md-12">
      <!-- Tabelle letzte Buchungen -->
      <div class="box box-info">
        <div class="box-header with-border">
          <h3 class="box-title">Letzte Erfassungen</h3>
          <div class="box-tools pull-right">
            <button class="btn btn-box-tool" data-widget="collapse"><span class="fa fa-minus"></span></button>
          </div>
        </div><!-- /.box-header -->
        <div class="box-body">
          <div class="table-responsive">
            <table class="table no-margin" id="letzte_erfassungen">
              <thead>
                <tr>
                  <th></th>
                  <th>Datum</th>
                  <th>Name</th>
{'fraction_non_alphanumeric': 0.2046989307822172, 'fraction_numerical': 0.004361283061339336, 'mean_word_length': 2.3771971496437057, 'pattern_counts': {'":': 0, '<': 204, '<?xml version=': 0, '>': 204, 'https://': 0, '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': '4322817', 'n_tokens_mistral': 3024, 'n_tokens_neox': 2275, 'n_words': 431}