<commit_before><!DOCTYPE html>
<html lang="pt" xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	layout:decorator="layout/layout-padrao">
<head>
<title>Cadastro de Pedido</title>
<link rel="stylesheet" type="text/css" th:href="@{/css/upload.min.css}" />
</head>
<section id="content" layout:fragment="conteudo">

	<!--breadcrumbs start-->
	<div id="breadcrumbs-wrapper">
		<div class="container">
			<div class="row">
				<div class="col s12 m12 l12">
					<h5 class="breadcrumbs-title">Cadastro de Pedido</h5>
					<ol class="breadcrumbs">
						<li><a href="index.html">Home</a></li>
						<li><a href="#">Pedido</a></li>
						<li class="active">Fazer Pedido</li>
					</ol>
				</div>
			</div>
		</div>
	</div>
	<!--breadcrumbs end-->


	<!--start container-->
	<div class="container">
		<div class="section">
			<div class="divider"></div>

			<div class="row">
				<div class="col s12 m12 l12">
					<div id="card-alert" class="card green lighten-5 alert-dismissible"
						th:if="${not #strings.isEmpty(mensagem)}">
						<div class="card-content green-text">
							<p>
								<i class="mdi-navigation-check"></i> <span th:text="${mensagem}"></span>
							</p>
						</div>
						<button type="button" class="close green-text"
							data-dismiss="alert" aria-label="Close">
							<span aria-hidden="true">×</span>
						</button>
					</div>

					<div class="card-panel hoverable">
						<h4 class="header2">Pedido</h4>
						<form method="POST" th:object="${pedido}" class="formValidate"
							id="formValidate">

							<div id="card-alert" class="card red lighten-5 alert-dismissible"
								th:if="${#fields.hasAnyErrors()}">
								<div class="card-content red-text">
									<th:block th:each="erro : ${#fields.detailedErrors()}">
										<div>
											<i class="mdi-alert-error"></i> <span
												th:text="${erro.message}"></span>
										</div>
									</th:block>

								</div>
								<button type="button" class="close red-text"
									data-dismiss="alert" aria-label="Close">
									<span aria-hidden="true">×</span>
								</button>
							</div>

							<div class="row">

								<div class="col l8">
									<input type="hidden" th:field="*{status}" />

									<div class="row">
										<div class="input-field col s12">
											<input id="observacao" type="text" th:field="*{observacao}" />
											<label for="observacao"
												th:classappend="${#fields.hasErrors('observacao')} ? materialize-red-text">observacao</label>
										</div>
									</div>


									<div class="row">
										<div class="input-field col s12">
											<input id="observacao" type="text" th:field="*{observacao}" />
											<label for="observacao"
												th:classappend="${#fields.hasErrors('observacao')} ? materialize-red-text">observacao</label>
										</div>
									</div>


								</div>
							</div>
						</form>
					</div>
				</div>
			</div>

		</div>
	</div>
	<!-- end container-->
</section>

<th:block layout:fragment="javascript-extra">
	<script th:src="@{/js/uikit.min.js}"></script>
	<script th:src="@{/js/upload.min.js}"></script>
	<script type="text/javascript" th:src="@{/js/foto-upload.js}"></script>

	<script>
		//fechar alertas automatico
		$(".alert-dismissible").fadeTo(7000, 500).slideUp(500, function() {
		});
	</script>

</th:block>
<commit_msg>melhorando o cadastro de pedido<commit_after><!DOCTYPE html>
<html lang="pt" xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	layout:decorator="layout/layout-padrao">
<head>
<title>Cadastro de Pedido</title>
<link rel="stylesheet" type="text/css" th:href="@{/css/upload.min.css}" />
</head>
<section id="content" layout:fragment="conteudo">

	<!--breadcrumbs start-->
	<div id="breadcrumbs-wrapper">
		<div class="container">
			<div class="row">
				<div class="col s12 m12 l12">
					<h5 class="breadcrumbs-title">Cadastro de Pedido</h5>
					<ol class="breadcrumbs">
						<li><a href="index.html">Home</a></li>
						<li><a href="#">Pedido</a></li>
						<li class="active">Fazer Pedido</li>
					</ol>
				</div>
			</div>
		</div>
	</div>
	<!--breadcrumbs end-->


	<!--start container-->
	<div class="container">
		<div class="section">
			<div class="divider"></div>

			<div class="row">
				<div class="col s12 m12 l12">
					<div class="row">
						<div class="col s12 m12 l12">
							<div class="card-panel">
								<div class="row">
									<form class="col s12" th:action="@{/pedido/additem}"
										th:object="${itemPedido}" method="POST">
										<h4 class="header2">Adicionar Item</h4>
										<div class="row">
											<div class="input-field col s4">
												<i class="mdi-action-account-circle prefix"></i> <input
													id="icon_prefix" type="text" class="validate"
													th:field="*{produto}"> <label for="icon_prefix">Produto</label>
											</div>
											<div class="input-field col s4">
												<i class="mdi-action-lock-outline prefix"></i> <input
													id="icon_password" type="text" class="validate"
													th:field="*{quantidade}"> <label
													for="icon_password">Quantidade</label>
											</div>
											<div class="input-field col s4">
												<div class="input-field col s12">
													<button class="btn cyan waves-effect waves-light"
														type="submit" name="action">
														<i class="mdi-action-lock-open"></i> Adicionar
													</button>
												</div>
											</div>
										</div>
									</form>
								</div>
							</div>
						</div>
					</div>

					<div class="row">
						<div class="card-panel">
							<div class="row">
								<div class="col s12 m12 l12">
									<h5>Itens</h5>

									<form method="POST" th:object="${ItemPedido}" class="formValidate"
										id="formValidate">

										<table id="data-table-simple" class="responsive-table"
											cellspacing="0" width="100%">
											<thead>
												<tr>
													<th>Pedido</th>
													<th>Produto</th>
													<th>Qtde</th>
													<th>VL. Unit</th>
												</tr>
											</thead>
											<tfoot>
												<tr>
													<th>Pedido</th>
													<th>Produto</th>
													<th>Qtde</th>
													<th>VL. Unit</th>
												</tr>
											</tfoot>
											<tbody>
												<tr th:each="i: ${itens}">
													<td th:text="${i.numped}"></td>
													<td th:text="${i.produto}"></td>
													<td th:text="${i.quantidade}"></td>
													<td
														th:text="${#numbers.formatDecimal(i.valorUnitario, 0, 'DEFAULT', 2, 'DEFAULT')}"></td>
												</tr>
											</tbody>
										</table>
									</form>
								
									
								</div>
									<div class="input-field col s4">
												<div class="input-field col s12">
													<button class="btn cyan waves-effect waves-light"
														type="submit" name="action">
														<i class="mdi-action-lock-open"></i> Finalizar
													</button>
												</div>
											</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>

	</div>
	</div>
	<!-- end container-->
</section>

<th:block layout:fragment="javascript-extra">
	<script th:src="@{/js/uikit.min.js}"></script>
	<script th:src="@{/js/upload.min.js}"></script>
	<script type="text/javascript" th:src="@{/js/foto-upload.js}"></script>

	<script>
		//fechar alertas automatico
		$(".alert-dismissible").fadeTo(7000, 500).slideUp(500, function() {
		});
	</script>

</th:block>

{'fraction_non_alphanumeric': 0.20112169036128863, 'fraction_numerical': 0.013173340289552629, 'mean_word_length': 2.278324070115434, 'pattern_counts': {'":': 0, '<': 263, '<?xml version=': 0, '>': 263, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 6}, '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': '4040627', 'n_tokens_mistral': 3984, 'n_tokens_neox': 2668, 'n_words': 468}