placeholder

pull/7/merge
ibuler 2015-05-25 18:35:32 +08:00
parent 1952d1ca23
commit ce99bf2266
2 changed files with 1 additions and 2 deletions

View File

@ -381,7 +381,6 @@ def sudo_edit(request):
else:
user_group_id = request.POST.get('user_group_id', '')
users_runas = request.POST.get('runas') if request.POST.get('runas') else 'root'
print users_runas
asset_groups_select = request.POST.getlist('asset_groups_select')
cmd_groups_select = request.POST.getlist('cmd_groups_select')
comment = request.POST.get('comment', '')

View File

@ -78,7 +78,7 @@
<div class="form-group">
<label for="group_type" class="col-sm-2 control-label">命令<span class="red-fonts">*</span></label>
<div class="col-sm-8">
<textarea id='cmd' name='cmd' class="form-control" rows="10" placeholder="命令">{{ cmd }}</textarea>
<textarea id='cmd' name='cmd' class="form-control" rows="10" placeholder="/bin/su">{{ cmd }}</textarea>
<span class="help-block m-b-none">
输入命令一行一个,请写绝对路径如: /bin/su所有是ALL排除su是 !/bin/su
</span>