No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

69 líneas
2.2KB

  1. @extends('layout')
  2. @includes('includes/small-feature')
  3. <div class="container mx-auto px-8 py-8 md:py-16">
  4. <h1 class="text-3xl font-bold">
  5. Add a location
  6. </h1>
  7. <form
  8. method="post"
  9. action="{{ $createAction }}"
  10. class="flex flex-col w-full space-y-4 max-w-xl my-4"
  11. >
  12. @if(session()->has('create_location_errors'))
  13. <ol class="list-disc text-red-500">
  14. @foreach(session('create_location_errors') as $field => $errors)
  15. @foreach($errors as $error)
  16. <li>{{ $error }}</li>
  17. @endforeach
  18. @endforeach
  19. </ol>
  20. @endif
  21. <input type="hidden" name="csrf" value="{{ $csrf }}" />
  22. <label for="code" class="flex flex-col w-full">
  23. <span class="flex">Code:</span>
  24. <input
  25. id="code"
  26. name="code"
  27. type="text"
  28. class="bg-gray-50 rounded-lg p-2 text-gray-900"
  29. placeholder="A1-01"
  30. />
  31. </label>
  32. <label for="name" class="flex flex-col w-full">
  33. <span class="flex">Name:</span>
  34. <input
  35. id="name"
  36. name="name"
  37. type="text"
  38. class="bg-gray-50 rounded-lg p-2 text-gray-900"
  39. placeholder="Aisle A, Shelf 1"
  40. />
  41. </label>
  42. <label for="description" class="flex flex-col w-full">
  43. <span class="flex">Description:</span>
  44. <input
  45. id="description"
  46. name="description"
  47. type="text"
  48. class="bg-gray-50 rounded-lg p-2 text-gray-900"
  49. />
  50. </label>
  51. <label for="capacity" class="flex flex-col w-full">
  52. <span class="flex">Capacity (optional):</span>
  53. <input
  54. id="capacity"
  55. name="capacity"
  56. type="number"
  57. class="bg-gray-50 rounded-lg p-2 text-gray-900"
  58. placeholder="100"
  59. />
  60. </label>
  61. <button
  62. type="submit"
  63. class="bg-indigo-500 rounded-lg p-2 text-white"
  64. >
  65. Add location
  66. </button>
  67. </form>
  68. </div>

Powered by TurnKey Linux.