change the location of "chpassword" button in /user/list
This commit is contained in:
parent
f9f3a5eec8
commit
6bf26e9d3d
|
@ -166,6 +166,7 @@
|
|||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-white" data-dismiss="modal">Close</button>
|
||||
<a class="btn btn-danger" data-toggle="modal" data-target="#ChpasswordModal" onClick="" id="ChpasswordButton">Change Password</a>
|
||||
<button type="button" class="btn btn-primary" onClick="javascript:sendModifyUser();">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -245,7 +246,7 @@
|
|||
<td>{{ application.number }} beans</td>
|
||||
<td>{{ application.time }}</td>
|
||||
<td>{{ application.reason }}</td>
|
||||
<td><a class="btn btn-xs btn-info" href="/beans/admin/{{ application.id }}/agree/">Agree</a>
|
||||
<td><a class="btn btn-xs btn-info" href="/beans/admin/{{ application.id }}/agree/">Agree</a>
|
||||
<a class="btn btn-xs btn-danger" href="/beans/admin/{{ application.id }}/reject/">Reject</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
@ -279,10 +280,6 @@
|
|||
{
|
||||
str=str + '<a class="btn btn-danger btn-xs" onClick="javascript:setActivateUser(' + row[0] + ');">' + 'Activate' + '</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
str=str + '<a class="btn btn-primary btn-xs" data-toggle="modal" data-target="#ChpasswordModal" onClick="javascript:setFormChpassword(\'' + row[1] + '\');">' + 'Chpassword' + '</a>';
|
||||
}
|
||||
return str;
|
||||
},
|
||||
"targets": 9
|
||||
|
@ -346,6 +343,7 @@
|
|||
$("#mUserGroup").val(result.group);
|
||||
$("#mAuthMethod").val(result.auth_method);
|
||||
$("#mDescription").val(result.description);
|
||||
$("#ChpasswordButton").attr("onClick", "javascript:setFormChpassword(\"" + result.username + "\");");
|
||||
});
|
||||
}
|
||||
function setFormChpassword(arg){
|
||||
|
|
Loading…
Reference in New Issue