Add maxlength to all inputs
Because the children broke things with it.
This commit is contained in:
parent
d464a5fbd0
commit
f6f54da305
5 changed files with 11 additions and 2 deletions
|
|
@ -232,7 +232,7 @@ class AddressOrReportInput extends HTMLElement {
|
||||||
|
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-text"><i class="fas fa-search"></i></span>
|
<span class="input-group-text"><i class="fas fa-search"></i></span>
|
||||||
<input type="text" class="form-control form-control-lg" id="addressSearch" name="address" placeholder="${placeholder}">
|
<input type="text" class="form-control form-control-lg" id="addressSearch" maxlength="200" name="address" placeholder="${placeholder}">
|
||||||
<div id="suggestions" class="suggestions-container list-group"></div>
|
<div id="suggestions" class="suggestions-container list-group"></div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@ class AddressInput extends HTMLElement {
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<label for="addressInput" class="form-label">Enter address</label>
|
<label for="addressInput" class="form-label">Enter address</label>
|
||||||
<input type="text" class="form-control" id="address" name="address" placeholder="${placeholder}">
|
<input class="form-control" id="address" maxlength="200" name="address" placeholder="${placeholder}" type="text">
|
||||||
<div id="suggestions" class="suggestions-container list-group"></div>
|
<div id="suggestions" class="suggestions-container list-group"></div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -517,6 +517,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
<textarea
|
<textarea
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="additionalInfo"
|
id="additionalInfo"
|
||||||
|
maxlength="2048"
|
||||||
name="additional-info"
|
name="additional-info"
|
||||||
rows="4"
|
rows="4"
|
||||||
placeholder="Additional details about the mosquito issue..."
|
placeholder="Additional details about the mosquito issue..."
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="name"
|
id="name"
|
||||||
|
maxlength="100"
|
||||||
name="name"
|
name="name"
|
||||||
placeholder="Adam Smith"
|
placeholder="Adam Smith"
|
||||||
/>
|
/>
|
||||||
|
|
@ -91,6 +92,7 @@
|
||||||
type="email"
|
type="email"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="email"
|
id="email"
|
||||||
|
maxlength="200"
|
||||||
name="email"
|
name="email"
|
||||||
placeholder="your@email.com"
|
placeholder="your@email.com"
|
||||||
/>
|
/>
|
||||||
|
|
@ -119,6 +121,7 @@
|
||||||
type="tel"
|
type="tel"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="phone"
|
id="phone"
|
||||||
|
maxlength="100"
|
||||||
name="phone"
|
name="phone"
|
||||||
placeholder="(123) 456-7890"
|
placeholder="(123) 456-7890"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -205,6 +205,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
<textarea
|
<textarea
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="comments"
|
id="comments"
|
||||||
|
maxlength="2048"
|
||||||
name="comments"
|
name="comments"
|
||||||
rows="4"
|
rows="4"
|
||||||
placeholder="Example: The house appears to be vacant. There is algae growth in the pool. I've noticed increased mosquito activity in the evenings."
|
placeholder="Example: The house appears to be vacant. There is algae growth in the pool. I've noticed increased mosquito activity in the evenings."
|
||||||
|
|
@ -375,6 +376,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
<textarea
|
<textarea
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="access-comments"
|
id="access-comments"
|
||||||
|
maxlength="1024"
|
||||||
name="access-comments"
|
name="access-comments"
|
||||||
rows="3"
|
rows="3"
|
||||||
placeholder="Example: The pool is in the backyard, which can be accessed through a side gate on the right side of the house."
|
placeholder="Example: The pool is in the backyard, which can be accessed through a side gate on the right side of the house."
|
||||||
|
|
@ -464,6 +466,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="owner-name"
|
id="owner-name"
|
||||||
|
maxlength="100"
|
||||||
name="owner-name"
|
name="owner-name"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -473,6 +476,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
type="tel"
|
type="tel"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="owner-phone"
|
id="owner-phone"
|
||||||
|
maxlength="50"
|
||||||
name="owner-phone"
|
name="owner-phone"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -482,6 +486,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
type="email"
|
type="email"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="owner-email"
|
id="owner-email"
|
||||||
|
maxlength="100"
|
||||||
name="owner-email"
|
name="owner-email"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue