app/views/spina/admin/resources/edit.html.erb in spina-2.8.1 vs app/views/spina/admin/resources/edit.html.erb in spina-2.9.0

- old
+ new

@@ -1,7 +1,9 @@ <%= render Spina::UserInterface::HeaderComponent.new do |header| %> <% header.actions do %> + <%= render Spina::UserInterface::TranslationsComponent.new(@resource, label: @locale.upcase) %> + <%= button_tag type: :submit, form: dom_id(@resource), class: 'btn btn-primary', data: {controller: "button", action: "button#loading", loading_message: t('spina.ui.saving')} do %> <%= heroicon('check', style: :solid, class: 'w-5 h-5 mr-1 -ml-2') %> <%=t 'spina.ui.save_changes' %> <% end %> <% end %> @@ -34,10 +36,13 @@ <div class="text-gray-600 text-sm"><%=t 'spina.resources.settings_description' %></div> </div> <div class="col-span-2"> <%= f.label :slug, class: 'font-medium text-sm text-gray-700 block' %> - <%= render Spina::Forms::TextFieldComponent.new(f, :slug) %> + + <% Mobility.with_locale(@locale) do %> + <%= render Spina::Forms::TextFieldComponent.new(f, :slug) %> + <% end %> <div class="mt-5"> <%= f.label :view_template, class: 'font-medium text-sm text-gray-700 block' %> <% options = options_for_select(current_theme.view_templates.map { |template| [template[:title], template[:name]] }, @resource.view_template) %> \ No newline at end of file