Skip to content

Commit 4e44f7b

Browse files
committed
Add maxlength attributes to contact form input fields
1 parent f6a09e4 commit 4e44f7b

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

layouts/become-a-partner/single.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
1818
<label for="firstName" class="block text-sm font-medium text-gray-700 mb-2">
1919
{{ i18n "partner_first_name" }} <span class="text-red-500" aria-label="required">*</span>
2020
</label>
21-
<input type="text" id="firstName" name="firstName" x-model="submitData.firstName" class="block input-box w-full" required aria-required="true" @blur="$el.classList.add('show-invalid')">
21+
<input type="text" id="firstName" name="firstName" x-model="submitData.firstName" class="block input-box w-full" maxlength="100" required aria-required="true" @blur="$el.classList.add('show-invalid')">
2222
</div>
2323

2424
<!-- Last Name -->
2525
<div>
2626
<label for="lastName" class="block text-sm font-medium text-gray-700 mb-2">
2727
{{ i18n "partner_last_name" }} <span class="text-red-500" aria-label="required">*</span>
2828
</label>
29-
<input type="text" id="lastName" name="lastName" x-model="submitData.lastName" class="block input-box w-full" required aria-required="true" @blur="$el.classList.add('show-invalid')">
29+
<input type="text" id="lastName" name="lastName" x-model="submitData.lastName" class="block input-box w-full" maxlength="100" required aria-required="true" @blur="$el.classList.add('show-invalid')">
3030
</div>
3131
</div>
3232

@@ -43,15 +43,15 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
4343
<label for="company" class="block text-sm font-medium text-gray-700 mb-2">
4444
{{ i18n "partner_company" }} <span class="text-red-500" aria-label="required">*</span>
4545
</label>
46-
<input type="text" id="company" name="company" x-model="submitData.company" class="block input-box w-full" required aria-required="true" @blur="$el.classList.add('show-invalid')">
46+
<input type="text" id="company" name="company" x-model="submitData.company" class="block input-box w-full" maxlength="200" required aria-required="true" @blur="$el.classList.add('show-invalid')">
4747
</div>
4848

4949
<!-- Company Website -->
5050
<div class="mb-6">
5151
<label for="website" class="block text-sm font-medium text-gray-700 mb-2">
5252
{{ i18n "partner_website" }}
5353
</label>
54-
<input type="url" id="website" name="website" x-model="submitData.website" class="block input-box w-full" placeholder="https://">
54+
<input type="url" id="website" name="website" x-model="submitData.website" class="block input-box w-full" maxlength="200" placeholder="https://">
5555
</div>
5656

5757
<!-- Partnership Type -->
@@ -74,7 +74,7 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
7474
<label for="message" class="block text-sm font-medium text-gray-700 mb-2">
7575
{{ i18n "partner_message" }}
7676
</label>
77-
<textarea id="message" name="message" x-model="submitData.message" rows="4" class="block input-box w-full" placeholder="{{ i18n "partner_message_placeholder" }}"></textarea>
77+
<textarea id="message" name="message" x-model="submitData.message" rows="4" class="block input-box w-full" maxlength="2000" placeholder="{{ i18n "partner_message_placeholder" }}"></textarea>
7878
</div>
7979

8080
<!-- Terms & Privacy Acceptance -->

layouts/book-a-demo/single.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
1818
<label for="firstName" class="block text-sm font-medium text-gray-700 mb-2">
1919
{{ i18n "book_demo_first_name" }} <span class="text-red-500" aria-label="required">*</span>
2020
</label>
21-
<input type="text" id="firstName" name="firstName" x-model="submitData.firstName" class="block input-box w-full" required aria-required="true" @blur="$el.classList.add('show-invalid')">
21+
<input type="text" id="firstName" name="firstName" x-model="submitData.firstName" class="block input-box w-full" maxlength="100" required aria-required="true" @blur="$el.classList.add('show-invalid')">
2222
</div>
2323

2424
<!-- Last Name -->
2525
<div>
2626
<label for="lastName" class="block text-sm font-medium text-gray-700 mb-2">
2727
{{ i18n "book_demo_last_name" }} <span class="text-red-500" aria-label="required">*</span>
2828
</label>
29-
<input type="text" id="lastName" name="lastName" x-model="submitData.lastName" class="block input-box w-full" required aria-required="true" @blur="$el.classList.add('show-invalid')">
29+
<input type="text" id="lastName" name="lastName" x-model="submitData.lastName" class="block input-box w-full" maxlength="100" required aria-required="true" @blur="$el.classList.add('show-invalid')">
3030
</div>
3131
</div>
3232

@@ -43,7 +43,7 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
4343
<label for="company" class="block text-sm font-medium text-gray-700 mb-2">
4444
{{ i18n "book_demo_company" }}
4545
</label>
46-
<input type="text" id="company" name="company" x-model="submitData.company" class="block input-box w-full">
46+
<input type="text" id="company" name="company" x-model="submitData.company" class="block input-box w-full" maxlength="200">
4747
</div>
4848

4949
<!-- What do you want to learn? -->
@@ -113,7 +113,7 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
113113
<label for="message" class="block text-sm font-medium text-gray-700 mb-2">
114114
{{ i18n "book_demo_message" }}
115115
</label>
116-
<textarea id="message" name="message" x-model="submitData.message" rows="4" class="block input-box w-full" placeholder="{{ i18n "book_demo_message_placeholder" }}"></textarea>
116+
<textarea id="message" name="message" x-model="submitData.message" rows="4" class="block input-box w-full" maxlength="2000" placeholder="{{ i18n "book_demo_message_placeholder" }}"></textarea>
117117
</div>
118118

119119
<!-- Terms & Privacy Acceptance -->

layouts/contact-sales/single.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
1818
<label for="firstName" class="block text-sm font-medium text-gray-700 mb-2">
1919
{{ i18n "contact_sales_first_name" }} <span class="text-red-500" aria-label="required">*</span>
2020
</label>
21-
<input type="text" id="firstName" name="firstName" x-model="submitData.firstName" class="block input-box w-full" required aria-required="true" @blur="$el.classList.add('show-invalid')">
21+
<input type="text" id="firstName" name="firstName" x-model="submitData.firstName" class="block input-box w-full" maxlength="100" required aria-required="true" @blur="$el.classList.add('show-invalid')">
2222
</div>
2323

2424
<!-- Last Name -->
2525
<div>
2626
<label for="lastName" class="block text-sm font-medium text-gray-700 mb-2">
2727
{{ i18n "contact_sales_last_name" }} <span class="text-red-500" aria-label="required">*</span>
2828
</label>
29-
<input type="text" id="lastName" name="lastName" x-model="submitData.lastName" class="block input-box w-full" required aria-required="true" @blur="$el.classList.add('show-invalid')">
29+
<input type="text" id="lastName" name="lastName" x-model="submitData.lastName" class="block input-box w-full" maxlength="100" required aria-required="true" @blur="$el.classList.add('show-invalid')">
3030
</div>
3131
</div>
3232

@@ -43,7 +43,7 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
4343
<label for="website" class="block text-sm font-medium text-gray-700 mb-2">
4444
{{ i18n "contact_sales_website" }}
4545
</label>
46-
<input type="url" id="website" name="website" x-model="submitData.website" class="block input-box w-full" placeholder="https://">
46+
<input type="url" id="website" name="website" x-model="submitData.website" class="block input-box w-full" maxlength="200" placeholder="https://">
4747
</div>
4848

4949
<!-- Topic Dropdown -->
@@ -65,7 +65,7 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
6565
<label for="message" class="block text-sm font-medium text-gray-700 mb-2">
6666
{{ i18n "contact_sales_message" }}
6767
</label>
68-
<textarea id="message" name="message" x-model="submitData.message" rows="4" class="block input-box w-full" placeholder="{{ i18n "contact_sales_message_placeholder" }}"></textarea>
68+
<textarea id="message" name="message" x-model="submitData.message" rows="4" class="block input-box w-full" maxlength="2000" placeholder="{{ i18n "contact_sales_message_placeholder" }}"></textarea>
6969
</div>
7070

7171
<!-- Terms & Privacy Acceptance -->

layouts/hub-managed/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ <h2 class="font-h2 mb-6">
178178
<i class="fas fa-plus-circle"></i>
179179
{{ i18n "hub_managed_step_4_message_add" }}
180180
</a>
181-
<textarea x-show="submitData.message != null" id="message" rows="3" maxlength="400" class="input-box text-sm w-full max-w-xs" placeholder="{{ i18n "hub_managed_step_4_message_add_placeholder" }}" x-model="submitData.message" x-cloak></textarea>
181+
<textarea x-show="submitData.message != null" id="message" rows="3" maxlength="2000" class="input-box text-sm w-full max-w-xs" placeholder="{{ i18n "hub_managed_step_4_message_add_placeholder" }}" x-model="submitData.message" x-cloak></textarea>
182182
</li>
183183
</ul>
184184
<p class="font-p text-sm mb-2">

0 commit comments

Comments
 (0)