mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-13 05:21:50 +00:00
convert all names to lowercase
This commit is contained in:
parent
635e4c0f9f
commit
2317fddeac
2 changed files with 2 additions and 2 deletions
|
@ -392,7 +392,7 @@ def create():
|
||||||
pools=pools,
|
pools=pools,
|
||||||
templates=templates)
|
templates=templates)
|
||||||
elif request.method == 'POST':
|
elif request.method == 'POST':
|
||||||
name = request.form['name']
|
name = request.form['name'].lower()
|
||||||
cores = request.form['cores']
|
cores = request.form['cores']
|
||||||
memory = request.form['mem']
|
memory = request.form['mem']
|
||||||
template = request.form['template']
|
template = request.form['template']
|
||||||
|
|
|
@ -386,7 +386,7 @@ $("#renew-vm").click(function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#create-vm").click(function(){
|
$("#create-vm").click(function(){
|
||||||
const name = document.getElementById('name').value;
|
const name = document.getElementById('name').value.toLowerCase();
|
||||||
const cores = document.getElementById('cores').value;
|
const cores = document.getElementById('cores').value;
|
||||||
const mem = document.getElementById('mem').value;
|
const mem = document.getElementById('mem').value;
|
||||||
const template = document.getElementById('template').value;
|
const template = document.getElementById('template').value;
|
||||||
|
|
Loading…
Reference in a new issue