freezer app completed
This commit is contained in:
58
resources/views/components/form.blade.php
Normal file
58
resources/views/components/form.blade.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<form {{ $attributes }}>
|
||||
@csrf
|
||||
<div class="p-4">
|
||||
<div>
|
||||
<label for="name"
|
||||
class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">
|
||||
Nome
|
||||
</label>
|
||||
<input required type="text" id="name" name="name"
|
||||
class="bg-gray-50 border border-gray-300
|
||||
text-gray-900 text-sm rounded-lg focus:ring-blue-500
|
||||
focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700
|
||||
dark:border-gray-600 dark:placeholder-gray-400 dark:text-white
|
||||
dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
||||
</div>
|
||||
<div>
|
||||
<label for="description"
|
||||
class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">
|
||||
Descrizione
|
||||
</label>
|
||||
<input type="text" id="description" name="description"
|
||||
class="bg-gray-50 border border-gray-300
|
||||
text-gray-900 text-sm rounded-lg focus:ring-blue-500
|
||||
focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700
|
||||
dark:border-gray-600 dark:placeholder-gray-400 dark:text-white
|
||||
dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
||||
</div>
|
||||
<div>
|
||||
<label for="in_date"
|
||||
class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">
|
||||
Data inserimento
|
||||
</label>
|
||||
<input required type="date" id="in_date" name="in_date"
|
||||
class="bg-gray-50 border border-gray-300
|
||||
text-gray-900 text-sm rounded-lg focus:ring-blue-500
|
||||
focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700
|
||||
dark:border-gray-600 dark:placeholder-gray-400 dark:text-white
|
||||
dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
||||
</div>
|
||||
<div>
|
||||
<label for="quantity"
|
||||
class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">
|
||||
Quantitá
|
||||
</label>
|
||||
<input required type="number" id="quantity" name="quantity"
|
||||
class="bg-gray-50 border border-gray-300
|
||||
text-gray-900 text-sm rounded-lg focus:ring-blue-500
|
||||
focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700
|
||||
dark:border-gray-600 dark:placeholder-gray-400 dark:text-white
|
||||
dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
||||
</div>
|
||||
<input type="submit" value="Aggiungi"
|
||||
class="mt-4 text-white bg-sky-700 hover:bg-sky-800
|
||||
focus:ring-4 focus:outline-none focus:ring-sky-300
|
||||
font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5
|
||||
text-center dark:bg-sky-600 dark:hover:bg-sky-700 dark:focus:ring-sky-800">
|
||||
</div>
|
||||
</form>
|
||||
Reference in New Issue
Block a user