- content_for :sublayout_title, 'Naming'

= semantic_form_for @service, url: admin_service_path(@service) do |form|
  = render partial: 'api/services/forms/naming', locals: { form: form }
  = form.buttons do
    = form.commit_button

- if can?(:destroy, @service)
  hr
  h3
    ' Service deletion

  p
    ' Deleting this service will
    strong> irreversibly destroy
    ' all applications, application plans, metrics, pricing rules, features, service plans and subscriptions of this service. Therefore all authorization and reporting calls for this service will no longer be valid. If you want to go ahead, please contact us at

  p
    = delete_service_link(@service, label: "I understand the consequences, proceed to delete '#{h(@service.name)}' service")
