Sha256: b4cc65e73dee3268bdb3fb4bad101f08efd6873ac640d34e1d1162972a0d805a
Contents?: true
Size: 1.26 KB
Versions: 15
Compression:
Stored size: 1.26 KB
Contents
<%= turbo_frame_tag dom_id(@navigation_item, :form) do %> <%= form_with model: @navigation_item, url: spina.admin_navigation_navigation_items_path(@navigation), data: {turbo_frame: "_top", action: "turbo:submit-end->modal#close"} do |f| %> <%= f.hidden_field :parent_id %> <div class="px-4 pt-5 pb-4 sm:p-6 sm:pb-4"> <div class="sm:flex sm:items-start"> <div class="w-full"> <h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-headline"> <%=t 'spina.navigations.add_menu_item' %> </h3> <div class="mt-3"> <%= f.select :page_id, @pages.map{|page| [page.menu_title, page.id]}, {disabled: @navigation.navigation_items.pluck(:page_id), include_blank: t('spina.navigations.choose_page')}, class: 'form-select w-full' %> </div> </div> </div> </div> <div class="px-4 pb-5 py-3 sm:px-6 sm:flex sm:flex-row-reverse"> <button type="submit" class="btn btn-primary w-full sm:w-auto sm:ml-2"> <%=t 'spina.navigations.add_menu_item' %> </button> <button type="button" class="btn btn-default w-full sm:w-auto mt-2 sm:mt-0" data-action="modal#close"> <%=t 'spina.ui.cancel' %> </button> </div> <% end %> <% end %>
Version data entries
15 entries across 15 versions & 1 rubygems