Compare commits
2 Commits
fe528fdd04
...
176b2b33a4
Author | SHA1 | Date | |
---|---|---|---|
176b2b33a4 | |||
7e5b2538b0 |
@ -23,7 +23,7 @@
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Номер счёта для зачисления:</div>
|
||||
<div class="col-8">
|
||||
<select id="accountPayeeId" name="accountPayeeId" class="form-control" asp-items="@(new SelectList( @ViewBag.Accounts, "Id", "AccountNumber"))">
|
||||
<select id="accountPayeeId" name="accountPayeeId" class="form-control" asp-items="@(new SelectList( @ViewBag.Accounts, "Id", "AccountNumber"))" required>
|
||||
<option disabled selected>Выберите счёт</option>
|
||||
</select>
|
||||
</div>
|
||||
|
@ -23,7 +23,7 @@
|
||||
<div class="row mb-4">
|
||||
<div class="col-4">Номер счёта для снятия:</div>
|
||||
<div class="col-8">
|
||||
<select id="accountId" name="accountId" class="form-control" asp-items="@(new SelectList( @ViewBag.Accounts, "Id", "AccountNumber"))">
|
||||
<select id="accountId" name="accountId" class="form-control" asp-items="@(new SelectList( @ViewBag.Accounts, "Id", "AccountNumber"))" required>
|
||||
<option disabled selected>Выберите счёт</option>
|
||||
</select>
|
||||
</div>
|
||||
|
@ -15,19 +15,19 @@
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Номер счёта:</div>
|
||||
<div class="col-8">
|
||||
<input type="text" id="accountNumber" class="form-control" name="accountNumber" />
|
||||
<input type="text" id="accountNumber" class="form-control" name="accountNumber" required/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Пароль:</div>
|
||||
<div class="col-8">
|
||||
<input type="text" id="password" class="form-control" name="password" />
|
||||
<input type="text" id="password" class="form-control" name="password" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Баланс:</div>
|
||||
<div class="col-8">
|
||||
<input type="text" id="balance" class="form-control" name="balance" />
|
||||
<input type="number" id="balance" class="form-control" name="balance" value=0 required min=0/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
@ -36,4 +36,19 @@
|
||||
<input type="submit" value="Создать" class="form-control" class="btn btn-dark" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function createNum(len) {
|
||||
chrs = '0123456789';
|
||||
var str = '';
|
||||
for (var i = 0; i < len; i++) {
|
||||
var pos = Math.floor(Math.random() * chrs.length);
|
||||
str += chrs.substring(pos, pos + 1);
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
document.getElementById("accountNumber").value = createNum(16);
|
||||
document.getElementById("cvc").value = createNum(4);
|
||||
</script>
|
@ -19,13 +19,13 @@
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Дата начала периода:</div>
|
||||
<div class="col-8">
|
||||
<input id="dateFrom" name="dateFrom" class="form-control" type="date" />
|
||||
<input id="dateFrom" name="dateFrom" class="form-control" type="date" required/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Дата конца периода:</div>
|
||||
<div class="col-8">
|
||||
<input id="dateTo" name="dateTo" class="form-control" type="date" />
|
||||
<input id="dateTo" name="dateTo" class="form-control" type="date" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
|
@ -25,7 +25,7 @@
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Сумма перевода:</div>
|
||||
<div class="col-8">
|
||||
<input type="text" id="sumMoneyTransfer" class="form-control" name="sumMoneyTransfer" />
|
||||
<input type="number" id="sumMoneyTransfer" class="form-control" name="sumMoneyTransfer" required min=1 value=1/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
|
@ -15,22 +15,41 @@
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Номер карты:</div>
|
||||
<div class="col-8">
|
||||
<input type="text" class="form-control" name="number" />
|
||||
<input type="text" class="form-control" name="number" id="number" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">CVC:</div>
|
||||
<div class="col-8">
|
||||
<input type="text" class="form-control" name="cvc" />
|
||||
<input type="text" class="form-control" name="cvc" id="cvc" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Срок действия:</div>
|
||||
<div class="col-8">
|
||||
<input type="date" class="form-control" name="period" />
|
||||
<input type="date" class="form-control" name="period" id="period" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<input type="submit" value="Создание" style="width: 100%" class="btn btn-warning" />
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
|
||||
|
||||
<script>
|
||||
function createNum(len) {
|
||||
chrs = '0123456789';
|
||||
var str = '';
|
||||
for (var i = 0; i < len; i++) {
|
||||
var pos = Math.floor(Math.random() * chrs.length);
|
||||
str += chrs.substring(pos, pos + 1);
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
document.getElementById("number").value = createNum(16);
|
||||
document.getElementById("cvc").value = createNum(3);
|
||||
let year = new Date();
|
||||
year.setFullYear(year.getFullYear() + 5)
|
||||
document.getElementById("period").valueAsDate = new Date(year);
|
||||
</script>
|
@ -15,7 +15,7 @@
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Cумма операции:</div>
|
||||
<div class="col-8">
|
||||
<input type="number" class="form-control" name="sum" />
|
||||
<input type="number" class="form-control" name="sum" required autofocus/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
|
@ -15,7 +15,7 @@
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Cумма операции:</div>
|
||||
<div class="col-8">
|
||||
<input type="number" name="sum" class="form-control" />
|
||||
<input type="number" name="sum" class="form-control" required autofocus />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
|
@ -14,13 +14,13 @@
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Дата начала периода:</div>
|
||||
<div class="col-8">
|
||||
<input id="dateFrom" name="dateFrom" class="form-control" type="date" />
|
||||
<input id="dateFrom" name="dateFrom" class="form-control" type="date" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-4">Дата конца периода:</div>
|
||||
<div class="col-8">
|
||||
<input id="dateTo" name="dateTo" class="form-control" type="date" />
|
||||
<input id="dateTo" name="dateTo" class="form-control" type="date" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
Loading…
Reference in New Issue
Block a user