Skip to content

Commit

Permalink
validate font class names
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Sep 18, 2023
1 parent 4f95337 commit 515067b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion public-typescript/adminTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
</div>
</div>
<div class="control is-expanded">
<input class="input" name="fontAwesomeIconClass-className" form="${formId}" list="datalist--iconClasses-${fontAwesomeIconClasses[0]}" aria-label="Font Awesome Class Name" maxlength="43" required />
<input class="input" name="fontAwesomeIconClass-className" form="${formId}" list="datalist--iconClasses-${fontAwesomeIconClasses[0]}" aria-label="Font Awesome Class Name"
pattern="^[a-z0-9-]+$" maxlength="43" required />
</div>
<div class="control">
<span class="button is-static">
Expand Down
3 changes: 2 additions & 1 deletion public-typescript/adminTables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ declare const cityssm: cityssmGlobal
</div>
</div>
<div class="control is-expanded">
<input class="input" name="fontAwesomeIconClass-className" form="${formId}" list="datalist--iconClasses-${fontAwesomeIconClasses[0]}" aria-label="Font Awesome Class Name" maxlength="43" required />
<input class="input" name="fontAwesomeIconClass-className" form="${formId}" list="datalist--iconClasses-${fontAwesomeIconClasses[0]}" aria-label="Font Awesome Class Name"
pattern="^[a-z0-9-]+$" maxlength="43" required />
</div>
<div class="control">
<span class="button is-static">
Expand Down
2 changes: 1 addition & 1 deletion public/javascripts/adminTables.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 515067b

Please sign in to comment.