{% extends "SsoBackendBundle:token:base.html.twig" %}


{% block title %}Location Show{% endblock %}

{% block body %}
    <div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h2>Do you really want to delete this location?</h2>
                </div>
                <div class="modal-body">
                    <p>You are about to delete one token, this procedure is irreversible.</p>
                    <p>Do you want to proceed?</p>
                    <p>We hope that you know what you do!</a>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                    <a href="#" class="btn btn-danger danger">Delete</a>
                </div>
            </div>
        </div>
    </div>
    <h2>Language View</h2>
    <ul class="list-group">
        <li class="list-group-item">
            <div class="labelview">Code</div>
            {{ entity.id }}&nbsp;
        </li>
        <li class="list-group-item">
            <div class="labelview">Name</div>
            {{ entity.name }}&nbsp;
        </li>
    </ul>
    <ul class="record_actions clearfix">
        <li>
            <a class="btn btn-success" href="{{ path('_admin_backend_webservice_language') }}">
                Back to the list
            </a>
        </li>
        {#
        {% if not showApplications %}
            <li>
                <a class="btn btn-success show-applications" data-toggle="button" data-hide-text="Hide Applications" href="{{ path('_admin_backend_webservice_object_language_application_application_show', { 'userId': entity.id }) }}">
                    Show Applications
                </a>
            </li>
        {% endif %}
        #}
        <li>
            <a class="btn btn-primary"
               href="{{ path('_admin_backend_webservice_language_edit', { 'languageCode': entity.id }) }}">
                Edit Location
            </a>
        </li>
        <li>
            <a class="btn btn-danger" data-toggle="modal" data-target="#confirm-delete"
               data-href="{{ path('_admin_backend_webservice_language_delete', { 'languageCode': entity.id}) }}"
               href="#">Delete Location</a>
            {#{ form(delete_form) }#}
        </li>
    </ul>

{% endblock %}