diff --git a/app/views/categories/edit.html.erb b/app/views/categories/edit.html.erb index 949ec06..c364556 100644 --- a/app/views/categories/edit.html.erb +++ b/app/views/categories/edit.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, "Kategorie bearbeiten" %> +<% content_for :title, @category.name %> <% content_for :top_bar_actions do %> <%= link_to "javascript:history.back()", class: "py-2 px-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 flex items-center gap-1.5 shadow-sm transition" do %> diff --git a/app/views/items/edit.html.erb b/app/views/items/edit.html.erb index e8a828f..f47cb4c 100644 --- a/app/views/items/edit.html.erb +++ b/app/views/items/edit.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, "Artikel bearbeiten" %> +<% content_for :title, @item.name %> <% content_for :top_bar_actions do %> diff --git a/app/views/rooms/edit.html.erb b/app/views/rooms/edit.html.erb index c406838..2da9f07 100644 --- a/app/views/rooms/edit.html.erb +++ b/app/views/rooms/edit.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, "Raum bearbeiten: #{@room.name}" %> +<% content_for :title, "#{@room.name}" %> <% content_for :top_bar_actions do %> <%= link_to "javascript:history.back()", class: "py-2 px-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 flex items-center gap-1.5 shadow-sm transition" do %>