Skip to content

Commit 47657e4

Browse files
authored
Merge pull request #1149 from itflow-org/modal-maxlength
Modal maxlength
2 parents 5567dfe + 6d9de98 commit 47657e4

File tree

108 files changed

+407
-409
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+407
-409
lines changed

modals/account_add_modal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div class="input-group-prepend">
1919
<span class="input-group-text"><i class="fa fa-fw fa-piggy-bank"></i></span>
2020
</div>
21-
<input type="text" class="form-control" name="name" placeholder="Account name" required autofocus>
21+
<input type="text" class="form-control" name="name" placeholder="Account name" maxlength="200" required autofocus>
2222
</div>
2323
</div>
2424

modals/account_edit_modal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="input-group-prepend">
1818
<span class="input-group-text"><i class="fa fa-fw fa-piggy-bank"></i></span>
1919
</div>
20-
<input type="text" class="form-control" name="name" value="<?php echo $account_name; ?>" placeholder="Account name" required>
20+
<input type="text" class="form-control" name="name" maxlength="200" value="<?php echo $account_name; ?>" required>
2121
</div>
2222
</div>
2323

modals/admin_api_key_add_modal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<div class="input-group-prepend">
3838
<span class="input-group-text"><i class="fa fa-fw fa-sticky-note"></i></span>
3939
</div>
40-
<input type="text" class="form-control" name="name" placeholder="Key Name" required autofocus>
40+
<input type="text" class="form-control" name="name" placeholder="Key Name" maxlength="255" required autofocus>
4141
</div>
4242
</div>
4343

modals/admin_category_add_modal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div class="input-group-prepend">
1919
<span class="input-group-text"><i class="fa fa-fw fa-list-ul"></i></span>
2020
</div>
21-
<input type="text" class="form-control" name="name" placeholder="Category name" required autofocus>
21+
<input type="text" class="form-control" name="name" placeholder="Category name" maxlength="200" required autofocus>
2222
</div>
2323
</div>
2424

modals/admin_category_edit_modal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div class="input-group-prepend">
1919
<span class="input-group-text"><i class="fa fa-fw fa-list-ul"></i></span>
2020
</div>
21-
<input type="text" class="form-control" name="name" value="<?php echo $category_name; ?>" required>
21+
<input type="text" class="form-control" name="name" maxlength="200" value="<?php echo $category_name; ?>" required>
2222
</div>
2323
</div>
2424

modals/admin_custom_link_add_modal.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="input-group-prepend">
1818
<span class="input-group-text"><i class="fa fa-fw fa-list-ul"></i></span>
1919
</div>
20-
<input type="text" class="form-control" name="name" placeholder="Link name" required autofocus>
20+
<input type="text" class="form-control" name="name" placeholder="Link name" maxlength="200" required autofocus>
2121
</div>
2222
</div>
2323
@@ -37,7 +37,7 @@
3737
<div class="input-group-prepend">
3838
<span class="input-group-text"><i class="fa fa-fw fa-external-link-alt"></i></span>
3939
</div>
40-
<input type="text" class="form-control" name="uri" placeholder="Enter Link" required>
40+
<input type="text" class="form-control" name="uri" placeholder="Enter Link" maxlength="500" required>
4141
<div class="input-group-append">
4242
<div class="input-group-text">
4343
<input type="checkbox" name="new_tab" value="1">
@@ -52,7 +52,7 @@
5252
<div class="input-group-prepend">
5353
<span class="input-group-text"><i class="fa fa-fw fa-image"></i></span>
5454
</div>
55-
<input type="text" class="form-control" name="icon" placeholder="Icon ex handshake">
55+
<input type="text" class="form-control" name="icon" placeholder="Icon ex handshake" maxlength="200">
5656
</div>
5757
</div>
5858

modals/admin_custom_link_edit_modal.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="input-group-prepend">
2020
<span class="input-group-text"><i class="fa fa-fw fa-list-ul"></i></span>
2121
</div>
22-
<input type="text" class="form-control" name="name" value="<?php echo $custom_link_name; ?>" required>
22+
<input type="text" class="form-control" name="name" value="<?php echo $custom_link_name; ?>" maxlength="200" required>
2323
</div>
2424
</div>
2525

@@ -39,7 +39,7 @@
3939
<div class="input-group-prepend">
4040
<span class="input-group-text"><i class="fa fa-fw fa-external-link-alt"></i></span>
4141
</div>
42-
<input type="text" class="form-control" name="uri" placeholder="Enter Link" value="<?php echo $custom_link_uri; ?>" required>
42+
<input type="text" class="form-control" name="uri" placeholder="Enter Link" maxlength="500" value="<?php echo $custom_link_uri; ?>" required>
4343
<div class="input-group-append">
4444
<div class="input-group-text">
4545
<input type="checkbox" name="new_tab" value="1" <?php if ($custom_link_new_tab == 1) { echo "checked"; } ?>>
@@ -54,7 +54,7 @@
5454
<div class="input-group-prepend">
5555
<span class="input-group-text"><i class="fa fa-fw fa-image"></i></span>
5656
</div>
57-
<input type="text" class="form-control" name="icon" placeholder="Icon ex handshake" value="<?php echo $custom_link_icon; ?>">
57+
<input type="text" class="form-control" name="icon" placeholder="Icon ex handshake" maxlength="200" value="<?php echo $custom_link_icon; ?>">
5858
</div>
5959
</div>
6060

modals/admin_document_template_add_modal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div class="modal-body bg-white">
1212

1313
<div class="form-group">
14-
<input type="text" class="form-control" name="name" placeholder="Template name">
14+
<input type="text" class="form-control" name="name" placeholder="Template name" maxlength="200">
1515
</div>
1616

1717
<?php if ($config_ai_enable == 1) { ?>

modals/admin_document_template_edit_modal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div class="modal-body bg-white">
1313

1414
<div class="form-group">
15-
<input type="text" class="form-control" name="name" value="<?php echo $document_name; ?>" placeholder="Name" required>
15+
<input type="text" class="form-control" name="name" maxlength="200" value="<?php echo $document_name; ?>" placeholder="Name" required>
1616
</div>
1717

1818
<div class="form-group">

modals/admin_project_template_add_modal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div class="input-group-prepend">
1717
<span class="input-group-text"><i class="fa fa-fw fa-project-diagram"></i></span>
1818
</div>
19-
<input type="text" class="form-control" name="name" placeholder="Project Template Name" required autofocus>
19+
<input type="text" class="form-control" name="name" placeholder="Project Template Name" maxlength="255" required autofocus>
2020
</div>
2121
</div>
2222

0 commit comments

Comments
 (0)