55 lines
1.6 KiB
HTML
55 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link
|
|
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
|
|
rel="stylesheet"
|
|
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
|
|
crossorigin="anonymous"
|
|
/>
|
|
<title>Odoo Hours</title>
|
|
</head>
|
|
<body class="bg-light">
|
|
<div class="container d-flex justify-content-center mt-5">
|
|
<div class="card shadow-sm w-100" style="max-width: 800px">
|
|
<div class="card-body">
|
|
<h1 class="text-center mb-4">Przetwarzanie tekstu</h1>
|
|
<form method="POST">
|
|
{% csrf_token %}
|
|
<div class="mb-3">
|
|
<label for="inputText" class="form-label">Wklej swój tekst:</label>
|
|
<textarea
|
|
name="input_text"
|
|
id="inputText"
|
|
class="form-control"
|
|
rows="20"
|
|
placeholder="Wpisz lub wklej tutaj swój tekst"
|
|
required
|
|
></textarea>
|
|
<div class="invalid-feedback">Pole tekstowe nie może być puste.</div>
|
|
</div>
|
|
<div class="d-grid">
|
|
<button type="submit" class="btn btn-primary">Przetwórz tekst</button>
|
|
</div>
|
|
</form>
|
|
|
|
{% if error %}
|
|
<div class="mt-4">
|
|
<h2 class="text-center">Error:</h2>
|
|
<p class="text-center alert alert-danger">{{ error }}</p>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script
|
|
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
|
|
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
</body>
|
|
</html>
|