|
|
|
@ -36,7 +36,7 @@
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label for="asset" class="col-sm-2 control-label">资产<span class="red-fonts">*</span></label> |
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
<select name="asset" data-placeholder="请选择资产" class="chosen-select form-control m-b" multiple tabindex="2"> |
|
|
|
|
<select name="assets" data-placeholder="请选择资产" class="chosen-select form-control m-b" multiple tabindex="2"> |
|
|
|
|
{% for asset in assets %} |
|
|
|
|
<option value="{{ asset.ip }}">{{ asset.ip }}</option> |
|
|
|
|
{% endfor %} |
|
|
|
@ -47,7 +47,7 @@
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label for="assetgroup" class="col-sm-2 control-label">资产组<span class="red-fonts">*</span></label> |
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
<select name="assetgroup" data-placeholder="请选择资产组" class="chosen-select form-control m-b" multiple tabindex="2"> |
|
|
|
|
<select name="asset_groups" data-placeholder="请选择资产组" class="chosen-select form-control m-b" multiple tabindex="2"> |
|
|
|
|
{% for asset_group in asset_groups %} |
|
|
|
|
<option value="{{ asset_group.name }}">{{ asset_group.name }}</option> |
|
|
|
|
{% endfor %} |
|
|
|
@ -58,7 +58,7 @@
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label for="role" class="col-sm-2 control-label">角色<span class="red-fonts">*</span></label> |
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
<select name="role" data-placeholder="请选择角色" class="chosen-select form-control m-b" multiple tabindex="2"> |
|
|
|
|
<select name="roles" data-placeholder="请选择角色" class="chosen-select form-control m-b" multiple tabindex="2"> |
|
|
|
|
{% for role in roles %} |
|
|
|
|
<option value="{{ role.name }}">{{ role.name }}</option> |
|
|
|
|
{% endfor %} |
|
|
|
@ -66,6 +66,29 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="hr-line-dashed"></div> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label for="j_group" class="col-sm-2 control-label">使用密码</label> |
|
|
|
|
<div class="col-sm-1"> |
|
|
|
|
<div class="radio i-checks"> |
|
|
|
|
<label> |
|
|
|
|
<input type="checkbox" value="1" id="use_password" name="use_password"> |
|
|
|
|
</label> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label for="j_group" class="col-sm-2 control-label">使用秘钥</label> |
|
|
|
|
<div class="col-sm-1"> |
|
|
|
|
<div class="radio i-checks"> |
|
|
|
|
<label> |
|
|
|
|
<input type="checkbox" value="1" id="use_publicKey" name="use_publicKey"> |
|
|
|
|
</label> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="hr-line-dashed"></div> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label for="comment" class="col-sm-2 control-label">备注</label> |
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|