47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
|
@{
|
||
|
ViewData["Title"] = "CreateCostItem";
|
||
|
}
|
||
|
|
||
|
<div class="text-center">
|
||
|
<h2 class="display-4">Создание статьи затрат</h2>
|
||
|
</div>
|
||
|
<form method="post">
|
||
|
<div class="row">
|
||
|
<div class="col-4">Название статьи затрат:</div>
|
||
|
<div class="col-8">
|
||
|
<input id="name" type="text" name="name" />
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col-4">Номер счета:</div>
|
||
|
<div class="col-8">
|
||
|
<input id="costnum" type="text" name="costnum" />
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col-4">Затраты:</div>
|
||
|
<div class="col-8">
|
||
|
<input id="price" type="text" name="price" />
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col-4"></div>
|
||
|
<div class="col-8">
|
||
|
<input type="submit" value="Создать" class="btn btn-outline-primary"/>
|
||
|
</div>
|
||
|
</div>
|
||
|
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||
|
</form>
|
||
|
|
||
|
<script>
|
||
|
$('#price').on('price', function () {
|
||
|
check();
|
||
|
}
|
||
|
$('#costnum').on('costnum', function () {
|
||
|
check();
|
||
|
}
|
||
|
function check() {
|
||
|
var price = $('#price').val();
|
||
|
var costnum = $('#costnum').val();
|
||
|
}
|
||
|
</script>
|