Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
use disabled instead of readonly in update pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingadonis committed Mar 12, 2024
1 parent 4e6640e commit b09eab2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

<div class="col">
<div class="mb-3"><label class="form-label" for="email"><strong>Mã khách hàng</strong></label>
<input class="form-control" type="email" id="email" placeholder="${requestScope.cus.code}" name="email" readonly="">
<input class="form-control" type="email" id="email" placeholder="${requestScope.cus.code}" name="email" disabled>
</div>
</div>

Expand All @@ -61,7 +61,7 @@
</div>

<div class="mb-3"><label class="form-label" for="country"><strong>Email</strong></label>
<input class="form-control" type="text" id="country" placeholder="${requestScope.cus.email}" name="country" readonly="">
<input class="form-control" type="text" id="country" placeholder="${requestScope.cus.email}" name="country" disabled>
</div>

<button class="btn btn-primary btn-sm" type="button">
Expand Down
14 changes: 7 additions & 7 deletions src/main/webapp/view/jsp/management/order/update-order.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -73,35 +73,35 @@
<div class="col">
<div class="mb-3">
<label class="form-label" for="username"><strong>Mã đơn hàng</strong></label>
<input class="form-control" type="text" id="username" value ="${requestScope.ord.code}" name="username" readonly="">
<input class="form-control" type="text" id="username" value ="${requestScope.ord.code}" name="username" disabled>
</div>
</div>

<div class="col">
<div class="mb-3">
<label class="form-label" for="email"><strong>Ngày tạo</strong></label>
<input class="form-control" type="email" id="createAt" value ="${requestScope.ord.createdAt}" name="email" readonly="">
<input class="form-control" type="email" id="createAt" value ="${requestScope.ord.createdAt}" name="email" disabled>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="mb-3">
<label class="form-label" for="username"><strong>Khách hàng</strong></label>
<input class="form-control" type="text" value ="${requestScope.ord.customer.name}" readonly="">
<input class="form-control" type="text" value ="${requestScope.ord.customer.name}" disabled>
</div>
</div>
<div class="col">
<div class="mb-3">
<label class="form-label" for="email"><strong>Nhân viên phụ trách</strong></label>
<input class="form-control" type="email" id="email-1" value = "${requestScope.ord.employee.fullName}" name="email" readonly="">
<input class="form-control" type="email" id="email-1" value = "${requestScope.ord.employee.fullName}" name="email" disabled>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="mb-3"><label class="form-label" for="username"><strong>Tổng tiền</strong></label>
<input class="form-control price" type ="text" value ="${requestScope.ord.total}" readonly="">
<input class="form-control price" type ="text" value ="${requestScope.ord.total}" disabled>
</div>
</div>

Expand All @@ -111,10 +111,10 @@
<c:choose>

<c:when test="${requestScope.ord.status == 'DONE'}">
<input class="form-control" type="email" id="email-2" value="Đã xong" name="email" readonly="">
<input class="form-control" type="email" id="email-2" value="Đã xong" name="email" disabled>
</c:when>
<c:when test="${requestScope.ord.status == 'CANCELLED'}">
<input class="form-control" type="email" id="email-2" value="Đã hủy" name="email" readonly="">
<input class="form-control" type="email" id="email-2" value="Đã hủy" name="email" disabled>
</c:when>
<c:otherwise>
<select class="form-control" name="status">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<label class="form-label" for="username">
<strong>Mã sản phẩm</strong>
</label>
<input class="form-control" type="text" id="username" value="${requestScope.pro.code}" name="username" readonly="" >
<input class="form-control" type="text" id="username" value="${requestScope.pro.code}" name="username" disabled >
</div>
</div>
<div class="col">
Expand All @@ -66,7 +66,7 @@
<label class="form-label" for="username">
<strong>Phân loại</strong>
</label>
<input class="form-control" id="cat" value="${requestScope.cat.name}" name="cat" readonly="" >
<input class="form-control" id="cat" value="${requestScope.cat.name}" name="cat" disabled >
</div>
</div>
<div class="col">
Expand Down

0 comments on commit b09eab2

Please sign in to comment.