{% load staticfiles %}
<tr class="nullData">
	<td colspan="6">暂无数据</td>
</tr>
  {% for line2 in equip_list %}
  <tr 	{% if line2.equip_user != None %} class="selectedColor"{% else %} class="" {% endif %}>
      <td>
        {% if line2.equip_user != None %}
          <!-- <input type="checkbox" checked="checked" class="check" onclick="checkAllSelect()" value={{line2.equip_id}} name="check_box_list"> -->
          <!-- <div style="position:relative">
              <label class="my_protocol">
                  <input type="checkbox" checked="checked" class="check" onclick="checkAllSelect()" value={{line2.equip_id}} name="check_box_list">
                  <span></span>
              </label>
          </div> -->
            <input type="checkbox" checked class="check" name="check_box_list" value={{line2.equip_id}} onclick="checkAllSelect()" lay-skin="primary" lay-filter="check"> 
        {% else %}
          <!-- <div style="position:relative">
              <label class="my_protocol">
                  <input type="checkbox" class="check" onclick="checkAllSelect()" value={{line2.equip_id}} name="check_box_list">
                  <span></span>
              </label>
          </div> -->
          <input type="checkbox" class="check" name="check_box_list" value={{line2.equip_id}} onclick="checkAllSelect()" lay-skin="primary" lay-filter="check"> 
          
        {% endif %}
      </td>
      <td class="itemId">{{ line2.equip_id }}</td>
      <td>{% if line2.equip_name == "" %} 无 {% else %} {{line2.equip_name}} {% endif %}</td>
      <td>
        {% if line2.equip_type_id == 5 %}
          气象设备
        {% elif line2.equip_type_id == 2 %}
          杀虫灯设备
        {% elif line2.equip_type_id == 3 %}
          测报灯设备
        {% elif line2.equip_type_id == 6 %}
          监控设备
        {% elif line2.equip_type_id == 7 %}
          孢子仪设备
        {% else %}
          其他
        {% endif %}
      </td>
      <td>{{ line2.equip_add_time }}</td>
      <td>
        {% if line2.equip_user == None %}
          无
        {% else %}
          {{ line2.equip_user.username }}
        {% endif %}
      </td>
  </tr>
  {% endfor %}
  
  <tr style="display:none">
    <td><input type="text" id="total_nums" value={{nums}}></td>
    <td><input type="text" name="equip_ids" value={{equip_ids}}></td>
  </tr>	