対象年の表記を yyyy年 にした

This commit is contained in:
shibafu 2019-08-04 01:33:54 +09:00
parent 3c2fec21a0
commit ab46117138
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ const monthlyTermSelector = document.getElementById('monthly-term');
for (let year = monthlyTermFrom.getFullYear(); year <= new Date().getFullYear(); year++) {
const opt = document.createElement('option');
opt.setAttribute('value', year);
opt.textContent = year;
opt.textContent = `${year}`;
monthlyTermSelector.insertBefore(opt, monthlyTermSelector.firstChild);
}
if (monthlyTermSelector.children.length) {

View File

@ -19,7 +19,7 @@
<div class="col-12 col-lg-6 d-flex align-items-center">
<h5 class="my-0">月間チェックイン回数</h5>
</div>
<div class="col-12 col-lg-6">
<div class="col-12 col-lg-6 mt-2 mt-lg-0">
<select id="monthly-term" class="form-control"></select>
</div>
</div>