|
23 | 23 | </div> |
24 | 24 | </div> |
25 | 25 | <div class="flex w-full"> |
26 | | - <div class="justify-top flex flex-col items-center pt-3 hidden sm:block"> |
| 26 | + <div class="justify-top flex hidden flex-col items-center pt-3 sm:block"> |
27 | 27 | <div class="size-3 bg-primary-600 m-1 rounded-full" /> |
28 | 28 | <div class="flex justify-center"> |
29 | | - <div class="border-l-primary-600 h-[3.25rem] border-l border-dashed w-[3px]" /> |
| 29 | + <div class="border-l-primary-600 h-[3.25rem] w-[3px] border-l border-dashed" /> |
30 | 30 | </div> |
31 | 31 | <div class="size-3 border-primary-600 m-1 rounded-full border" /> |
32 | 32 | </div> |
33 | 33 | <div class="flex w-full flex-col"> |
34 | | - <div class="text-nowrap flex flex-col sm:flex-row items-baseline justify-between gap-y-1 sm:p-1 sm:pl-3"> |
| 34 | + <div class="text-nowrap flex flex-col items-baseline justify-between gap-y-1 sm:flex-row sm:p-1 sm:pl-3"> |
35 | 35 | <span>Start</span> |
36 | 36 | <div class="w-full sm:w-56"> |
37 | | - <.field class="w-full sm:w-56 atomic-button atomic-button--primary-outline text-gray-900" type="datetime-local" field={@form[:start]} label_class="hidden" error_label_class="hidden" required /> |
| 37 | + <.field class="atomic-button atomic-button--primary-outline w-full text-gray-900 sm:w-56" type="datetime-local" field={@form[:start]} label_class="hidden" error_label_class="hidden" required /> |
38 | 38 | </div> |
39 | 39 | </div> |
40 | | - <div class="text-nowrap flex flex-col sm:flex-row items-baseline justify-between gap-y-1 sm:p-1 sm:pl-3"> |
| 40 | + <div class="text-nowrap flex flex-col items-baseline justify-between gap-y-1 sm:flex-row sm:p-1 sm:pl-3"> |
41 | 41 | <span>End</span> |
42 | 42 | <div class="w-full sm:w-56"> |
43 | | - <.field class="w-full sm:w-56 atomic-button atomic-button--primary-outline text-gray-900" type="datetime-local" field={@form[:finish]} label_class="hidden" error_label_class="hidden" required /> |
| 43 | + <.field class="atomic-button atomic-button--primary-outline w-full text-gray-900 sm:w-56" type="datetime-local" field={@form[:finish]} label_class="hidden" error_label_class="hidden" required /> |
44 | 44 | </div> |
45 | 45 | </div> |
46 | 46 | </div> |
|
49 | 49 | <label for="description_button" class="atomic-label atomic-label--required"> |
50 | 50 | Description |
51 | 51 | </label> |
52 | | - <.button id="description_button" class="lg:w-full flex flex-col items-start px-3 py-3 border-gray-300 rounded-md bg-white text-gray-300 group atomic-button atomic-button--primary-outline focus-within:bg-white" type="button" phx-click="toggle_description_modal" phx-target={@myself}> |
| 52 | + <.button id="description_button" class="group atomic-button atomic-button--primary-outline flex flex-col items-start rounded-md border-gray-300 bg-white px-3 py-3 text-gray-300 focus-within:bg-white lg:w-full" type="button" phx-click="toggle_description_modal" phx-target={@myself}> |
53 | 53 | <%= if not @has_description? do %> |
54 | | - <label class="text-left cursor-pointer text-gray-500"> |
| 54 | + <label class="cursor-pointer text-left text-gray-500"> |
55 | 55 | Add description |
56 | 56 | </label> |
57 | 57 | <% end %> |
|
67 | 67 | autocomplete="off" |
68 | 68 | error_class="text-danger-600 placeholder-danger-700" |
69 | 69 | error_label_class="text-danger-700" |
70 | | - class="text-sm p-0 bg-transparent border-none shadow-none cursor-pointer focus:outline-none focus:ring-0 focus:border-transparent text-gray-900" |
| 70 | + class="cursor-pointer border-none bg-transparent p-0 text-sm text-gray-900 shadow-none focus:border-transparent focus:outline-none focus:ring-0" |
71 | 71 | /> |
72 | 72 | </div> |
73 | 73 | </.button> |
|
86 | 86 | <label for="capacity_button" class="atomic-label atomic-label--required"> |
87 | 87 | Capacity |
88 | 88 | </label> |
89 | | - <.button id="capacity_button" type="button" class="lg:w-full flex flex-col items-start px-3 py-3 border-gray-300 rounded-md bg-white text-gray-300 group atomic-button atomic-button--primary-outline focus-within:bg-white" phx-click="toggle_maximum_entries_modal" phx-target={@myself}> |
| 89 | + <.button id="capacity_button" type="button" class="group atomic-button atomic-button--primary-outline flex flex-col items-start rounded-md border-gray-300 bg-white px-3 py-3 text-gray-300 focus-within:bg-white lg:w-full" phx-click="toggle_maximum_entries_modal" phx-target={@myself}> |
90 | 90 | <%= if @has_max_capacity? do %> |
91 | 91 | <.field |
92 | | - class="text-sm p-0 bg-transparent border-none shadow-none cursor-pointer focus:outline-none focus:ring-0 focus:border-transparent text-gray-900" |
| 92 | + class="cursor-pointer border-none bg-transparent p-0 text-sm text-gray-900 shadow-none focus:border-transparent focus:outline-none focus:ring-0" |
93 | 93 | type="number" |
94 | 94 | field={@form[:maximum_entries]} |
95 | 95 | label="Maximum entries" |
96 | | - placeholder="Choose maximum entries" |
| 96 | + placeholder="Choose maximum capacity" |
97 | 97 | readonly |
98 | 98 | required |
99 | 99 | label_class="hidden" |
|
103 | 103 | /> |
104 | 104 | <% else %> |
105 | 105 | <.field |
106 | | - class="text-sm p-0 bg-transparent border-none shadow-none cursor-pointer focus:outline-none focus:ring-0 focus:border-transparent text-gray-900" |
107 | | - type="number" |
108 | | - field={@form[:maximum_entries]} |
109 | | - label="Maximum entries" |
110 | | - placeholder="Unlimited" |
111 | | - readonly |
112 | | - value="nil" |
113 | | - required |
114 | | - label_class="hidden" |
115 | | - wrapper_class="m-0" |
116 | | - error_class="text-danger-600 placeholder-danger-700" |
117 | | - error_label_class="text-danger-700" |
118 | | - /> |
| 106 | + class="cursor-pointer border-none bg-transparent p-0 text-sm text-gray-900 shadow-none focus:border-transparent focus:outline-none focus:ring-0" |
| 107 | + type="number" |
| 108 | + field={@form[:maximum_entries]} |
| 109 | + label="Maximum entries" |
| 110 | + placeholder="Unlimited" |
| 111 | + value=" " |
| 112 | + readonly |
| 113 | + required |
| 114 | + label_class="hidden" |
| 115 | + wrapper_class="m-0" |
| 116 | + error_class="text-danger-600 placeholder-danger-700" |
| 117 | + error_label_class="text-danger-700" |
| 118 | + /> |
119 | 119 | <% end %> |
120 | 120 | </.button> |
121 | 121 |
|
|
135 | 135 | <.modal :if={@description_modal} id="description-modal" show on_cancel={JS.push("toggle_description_modal", target: @myself)}> |
136 | 136 | <div class="mt-4 flex-grow"> |
137 | 137 | <.field class="\-h-10 resize-none " type="textarea" field={@form[:description]} label="Description" placeholder="Choose description" rows={15} required /> |
138 | | - <div class="w-full flex justify-end"> |
| 138 | + <div class="flex w-full justify-end"> |
139 | 139 | <.button class="text" type="button" phx-click="toggle_description_modal" phx-target={@myself}> |
140 | 140 | <span><%= gettext("Done") %></span> |
141 | 141 | </.button> |
142 | 142 | </div> |
143 | 143 | </div> |
144 | 144 | </.modal> |
145 | 145 | <.modal :if={@maximum_entries_modal} id="maximum_entries_modal" show on_cancel={JS.push("toggle_maximum_entries_modal", target: @myself)}> |
146 | | - <div class="w-full h-full"> |
| 146 | + <div class="h-full w-full"> |
147 | 147 | <div class=""> |
148 | 148 | <%= if @has_max_capacity? do %> |
149 | 149 | <.field class="" type="number" field={@form[:maximum_entries]} placeholder="Choose maximum entries" /> |
150 | 150 | <% else %> |
151 | | - <.field class="" type="number" value="nil" field={@form[:maximum_entries]} placeholder="Unlimited"/> |
| 151 | + <.field class="" type="number" field={@form[:maximum_entries]} value="" placeholder="Unlimited" /> |
152 | 152 | <% end %> |
153 | 153 | </div> |
154 | 154 | <div class="flex gap-3"> |
|
0 commit comments