Sha256: 82aec3d99a25c365691bb0584c45de83cc0d1937b814fb7b84f76a810955cf7a
Contents?: true
Size: 1.66 KB
Versions: 4
Compression:
Stored size: 1.66 KB
Contents
<%= resource_form_for interaction, as: :interaction, method: :post, url: "", html: {class: "flex flex-col space-y-6 px-4 py-2"} do |f| %> <h2 class="mb-4 text-xl font-bold text-gray-900 dark:text-gray-200"><%= interactive_action.name.to_s.titleize %></h2> <% if f.object.errors.present? %> <div class="flex p-4 px-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400" role="alert"> <svg class="shrink-0 inline w-4 h-4 me-3 mt-[2px]" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"> <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/> </svg> <div> <span class="font-medium"><%= f.error_notification %></span> <ul class="mt-1.5 list-disc list-inside"> <% f.object.errors.full_messages.each do |message| %> <li><%= f.error_notification message: message %></li> <% end %> </ul> </div> </div> <% end %> <div> <% interactive_action.inputs.values.each do |input| %> <%= render input.with(form: f, record: interaction) %> <% end %> </div> <div class="flex justify-end space-x-2"> <%# TODO: move this into its own component %> <div class="flex"> <button type="submit" name="commit" class="inline-flex items-center px-4 py-2 bg-primary-600 text-white rounded-s-md hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-primary-500" > Submit </button> </div> </div> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems