Sha256: 0c95aaa6e014dd2b1310e815b4f5c76cde5aaacc1ce9155021e351a3e46f6662

Contents?: true

Size: 1.36 KB

Versions: 12

Compression:

Stored size: 1.36 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">
            
            <div class="border border-gray-300 rounded-md bg-white">
              <%= render Spina::Pages::PageSelectComponent.new("navigation_item[page_id]", @pages, include_blank: t("spina.navigations.choose_page"), disabled: @navigation.navigation_items.pluck(:page_id)) %>
            </div>
            
          </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

12 entries across 12 versions & 1 rubygems

Version Path
spina-2.15.1 app/views/spina/admin/navigation_items/_form.html.erb
spina-2.15.0 app/views/spina/admin/navigation_items/_form.html.erb
spina-2.14.0 app/views/spina/admin/navigation_items/_form.html.erb
spina-2.13.1 app/views/spina/admin/navigation_items/_form.html.erb
spina-2.13.0 app/views/spina/admin/navigation_items/_form.html.erb
spina-2.12.0 app/views/spina/admin/navigation_items/_form.html.erb
spina-2.11.0 app/views/spina/admin/navigation_items/_form.html.erb
spina-2.10.0 app/views/spina/admin/navigation_items/_form.html.erb
spina-2.9.1 app/views/spina/admin/navigation_items/_form.html.erb
spina-2.9.0 app/views/spina/admin/navigation_items/_form.html.erb
spina-2.8.1 app/views/spina/admin/navigation_items/_form.html.erb
spina-2.8.0 app/views/spina/admin/navigation_items/_form.html.erb