%= error_messages_for @label %>
<%= t("txt.views.labels.edit.header") %> <%=h @label.value %>
<% if @association_objects_in_editing_mode.present? %>
<% if @association_objects_in_editing_mode[:label_relations].present? %>
<%= t("txt.common.referenced_labels") %>
<% @association_objects_in_editing_mode[:label_relations].each do |label_relation| %>
<%= label_relation.type.demodulize + ': ' + link_to(label_relation.range.value, label_path(:published => 0, :id => label_relation.range)) + user_and_phone_number(t("txt.common.editor"), label_relation.range.locking_user.name, label_relation.range.locking_user.telephone_number) %>
<% end %>
<% end %>
<% end %>
<%= render :partial => "labels/base_data" %>
<%= content_for :sub_navigation do %>
- <%= link_to t('txt.views.navigation.back_to_preview'), label_path(:published => 0, :id => @label), :class => 'back' %>
<% end %>