<div class="modal-dialog modal-lg" role="document">
		<div class="modal-content">
			<div class="modal-header">
				<h5 class="modal-title">Détail d'un utilisateur</h5>
				<button type="button" class="btn btn-sm btn-dark close" data-dismiss="modal" aria-label="Close">
				<span aria-hidden="true">&times;</span>
				</button>
			</div>
			<div class="modal-body">
				<table class="table table-sm">
					<tr><td>Nom : </td><td> {{item.GES_Nom}} </td></tr>
					<tr><td>Prénom : </td><td> {{item.GES_Prenom}} </td></tr>
					<tr><td>Site : </td><td> {{item.get_GES_L_Site_display}} </td></tr>
					<tr><td>Service : </td><td> {{item.GES_Service}} </td></tr>
					<tr><td>Fonction : </td><td> {{item.GES_Fonction}} </td></tr>
				</table>

				{% if item.apps %}
				<h4>Liste des applications sélectionné avec le profil</h4>
				<table class="table table-sm">
					<tr>
						<th scope="col">Nom de l'application</th>
						<th scope="col">Login</th>
						<th scope="col">Mot de passe</th>
						<th scope="col">Crée ?</th>
						<th scope="col">Outils</th>
					</tr>
					{% for apps in item.apps %}
						{% if apps.GES_APPLink_Create == True %}
							<tr class="table-success">
						{% else %}
							<tr>
						{% endif %}
							<td> {{apps.GES_APPLink_APP.GESAP_Nom}} </td>
							<td> {{apps.GES_APPLink_Login}} </td>
							<td> {{apps.GES_APPLink_MDP}} </td>
							<td onmouseover="this.style.cursor='pointer';" onclick="bt_switch_app_status({{apps.id}})">{% if apps.GES_APPLink_Create == True %} <span class="text-success"><i class="fas fa-clipboard-check" title="[ Crée ]"></i></span>{% else %}<i class="fas fa-clipboard-list" title="[ A Faire ]"></i> {% endif %}</td>
							<td onmouseover="this.style.cursor='pointer';" onclick="bt_edit_app_info({{apps.id}})"><i class="fas fa-tools"></i></td>
						</tr>
					{% endfor %}
				</table>
				<table class="table table-sm">
				{% for apps in item.apps %}
					{% if apps.GES_APPLink_APP.GESAP_Sup_Nom != "" %}
						<tr>
						<td><b> {{apps.GES_APPLink_APP.GESAP_Nom}} </b></td>
						<td><b> {{apps.GES_APPLink_APP.GESAP_Sup_Nom}} </b></td>
						<td>{% if apps.GES_APPLink_Sup != ""%} {{apps.GES_APPLink_Sup}} {% else %}{% endif %}</td>
						
						</tr>
					{% endif %}
				{% endfor %}
				</table>
				{% endif %}
				<p><i class="fas fa-share-alt"></i> http://srv-gparc.intra.stjacques/user/liste?get_id={{item.id}}</p>
			</div>


		<div class="modal-footer">
			<a class="btn btn-dark" target="_blank" href="{% url 'gest_user_api_user_get_for_send' item.id %}" role="button"><i class="fa fa-print"></i> Pour impression</a>
			<button type="button" class="btn btn-dark" onclick="bt_edit_info({{item.id}})"><i class="far fa-edit"></i> Mise à jour</button>
		</div>
	</div>
</div>