<table class="table table-hover">
	<thead class="thead-dark">
		<tr>
			<th scope="col">&nbsp;</th>
			<th scope="col">Site</th>
			<th scope="col" >Service</th>
			<th scope="col" >Nom NETBIOS</th>
			<th scope="col">Utilisateur</th>
			<th scope="col">Adresse IP</th>
			<th scope="col">Commentaires</th>
			<th scope="col">&nbsp;</th>
		</tr>
	</thead>
	<tbody>
		{% for item in data_query %}
			{% if item.PIC_L_Statut == "PREPROD" %}
				<tr class="table-success">
			{% elif item.PIC_L_Statut == "EN STOCK" %}
				<tr class="table-info">
			{% elif item.PIC_L_Statut == "HS" %}
				<tr class="table-warning">
			{% elif item.PIC_L_Statut == "ADEPROD" %}
				<tr class="table-danger">
			{% else%}
				<tr>
			{% endif %}
				<td>
					{% if item.PIC_L_Chassi_Type == "PC" %}
						<i class="fas fa-hdd" title="[PC]"></i>
					{% elif item.PIC_L_Chassi_Type == "CL" %}
						<i class="fas fa-network-wired" title="[CL]"></i>
					{% elif item.PIC_L_Chassi_Type == "PORTABLE" %}
						<i class="fas fa-laptop" title="[PORTABLE]"></i>
					{% elif item.PIC_L_Chassi_Type == "PANEL-PC" %}
						<i class="fas fa-tablet-alt" title="[PANEL-PC]"></i>
					{% elif item.PIC_L_Chassi_Type == "IMP" %}
						<i class="fas fa-print" title="[IMP]"></i>
					{% endif %}
					
					{% if item.PIC_Office == True %}<i class="fas fa-mail-bulk" title="[Poste avec Office]"></i>{% endif %}
					
					{% if item.accessoir %}
						[
						{% for accessoir in item.accessoir %}
							{% if accessoir.Accessory_on_list is True %}
								{% if accessoir.Accessory_N_slugify == "double-ecrans"%}
									<span title="[{{accessoir.Accessory_Nom}}]">
										<i class="{{accessoir.Accessory_icone}}"></i>
										<i class="{{accessoir.Accessory_icone}}"></i>
									</span>
								{% else %}
									<i class="{{accessoir.Accessory_icone}}" title="[{{accessoir.Accessory_Nom}}]"></i>
								{% endif %}
							{% endif %}
						{% endfor %}
						]
					{% endif %}
				</td>
				<td>{% if item.PIC_L_Site != none %}{{item.get_PIC_L_Site_display}}{% else %}&nbsp;{% endif %}</td>
				<td>{% if item.PIC_L_Service != none %}{{item.PIC_L_Service}}{% else %}&nbsp;{% endif %}</td>

				<td>
					{% if item.PIC_Nom_netbios != none %}<span onmouseover="this.style.cursor='pointer';" onclick="bt_get_user_info({{item.id}})">{{item.PIC_Nom_netbios}}</span>{% if item.PIC_L_Chassi_Type != "IMP" and item.PIC_L_Chassi_Type != "CL" %}&nbsp;{% endif %}{% else %}&nbsp;{% endif %}
					{% if item.PIC_with_Snow == True %}<i class="fas fa-snowflake" title="[SYNC with Snow]"></i>{% endif %}
					{% if item.PIC_is_for_Cadre == True %}<i class="fas fa-user-tag" title="[Poste de cadre ou RUS]"></i>{% endif %}
					{% if item.PIC_Deg == 1 %} <i class="fas fa-anchor" title="[Poste avec procédure Dégradé]"></i> {% endif %}
				</td>
				<td>{% if item.PIC_Utilisateur != none %}<span onmouseover="this.style.cursor='pointer';" onclick="bt_get_user_info({{item.id}})">{{item.PIC_Utilisateur}}{% if item.PIC_Utilisateur != item.PIC_Utilisateur_Fq and item.PIC_Utilisateur_Fq != none %} - {{item.PIC_Utilisateur_Fq}} (Fq){% endif %}</span>{% else %}&nbsp;{% endif %}</td>
				<td>{% if item.PIC_Adresse_IP != none %}{{item.PIC_Adresse_IP}}{% else %}&nbsp;{% endif %}</td>
				<td>{% if item.PIC_Commentaires != none %}{{item.PIC_Commentaires}}{% else %}&nbsp;{% endif %}</td>
				<td onmouseover="this.style.cursor='pointer';">
					{% if item.PIC_L_Chassi_Type == "IMP" and item.PIC_Adresse_IP != none %}<a href="http://{{item.PIC_Adresse_IP}}" class="text-reset" target="_blank" title="[Web admin]"><i class="fas fa-external-link-alt"></i></a>&nbsp;{% endif %}
					<i class="fas fa-search-plus" onclick="bt_get_user_info({{item.id}})" title="[Détail]"></i>&nbsp;
					<i class="far fa-edit" onclick="bt_edit_user_info({{item.id}})" title="[Modifier]"></i>&nbsp;
					<i class="fas fa-tasks" onclick="bt_edit_user_statut({{item.id}})" title="[Option supplémentaire]"></i>&nbsp;
				</td>
			</tr>
		{% endfor %}
	</tbody>
</table>