From 5bf414ffb5b4b9cf616c7a13b1c899a0816e8f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E4=B8=96=E5=B3=B0?= <93648765@qq.com> Date: Fri, 23 Sep 2016 20:22:45 +0800 Subject: [PATCH] update add_assets-group --- .../templates/assets/asset_group_create.html | 32 +++---- .../templates/assets/asset_modal_list.html | 89 +++++++++++++++---- apps/assets/views.py | 36 ++++---- 3 files changed, 100 insertions(+), 57 deletions(-) diff --git a/apps/assets/templates/assets/asset_group_create.html b/apps/assets/templates/assets/asset_group_create.html index 0f346b53d..4ae50f068 100644 --- a/apps/assets/templates/assets/asset_group_create.html +++ b/apps/assets/templates/assets/asset_group_create.html @@ -3,8 +3,10 @@ {% load static %} {% load bootstrap %} {% block custom_head_css_js %} - - + + + + {% endblock %} {% block content %}
+ | 资产名称 | @@ -17,28 +19,27 @@||||||
---|---|---|---|---|---|---|---|
- - | + {% if asset.id in group_assets %} ++ {% else %} + | + {% endif %} | {{ asset.hostname }} | {{ asset.ip }} | 虚拟机 | 网络设备 | 微信事业部 |