<% html_title l(:label_ux_toolkit_edit_text_snippet) %>

<div class="contextual">
  <% if @snippet.enabled? %>
    <%= link_to l(:button_ux_toolkit_disable),
                disable_ux_toolkit_text_snippet_path(@snippet),
                method: :post,
                class: 'icon icon-lock' %>
  <% else %>
    <%= link_to l(:button_ux_toolkit_enable),
                enable_ux_toolkit_text_snippet_path(@snippet),
                method: :post,
                class: 'icon icon-unlock' %>
  <% end %>
  <%= link_to l(:button_delete),
              ux_toolkit_text_snippet_path(@snippet),
              method: :delete,
              data: {confirm: l(:text_ux_toolkit_confirm_delete_text_snippet)},
              class: 'icon icon-del' %>
</div>

<h2><%= l(:label_ux_toolkit_edit_text_snippet) %></h2>

<%= render 'form', snippet: @snippet %>
