Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add maxlength to dealer assistant formfields #300

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions registration/templates/registration/dealer/dealer-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ <h2>Placement Options</h2>
$("#partnerList").empty();
if (item.partnerMax > 0) {
for (var i = item.partnerMin; i <= item.partnerMax; i++) {
var partner = '<div class="partnerGroup"><input type="text" id="name_' + i + '" class="form-control form-control-text" placeholder="Partner Name" />' +
'<input type="email" id="email_' + i + '" class="form-control form-control-text" placeholder="Partner Email" />' +
'<input type="text" id="license_' + i + '" placeholder="Partner Tax License" class="form-control form-control-text" />' +
var partner = '<div class="partnerGroup"><input type="text" id="name_' + i + '" maxlength="400" class="form-control form-control-text" placeholder="Partner Name" />' +
'<input type="email" id="email_' + i + '" maxlength="200" class="form-control form-control-text" placeholder="Partner Email" />' +
'<input type="text" id="license_' + i + '" maxlength="50" placeholder="Partner Tax License" class="form-control form-control-text" />' +
'<label><input type="checkbox" id="tempLicense_' + i + '" class="partnerLicense" /> This partner needs a temporary license.</label></div>'
$("#partnerList").append(partner);
if (i != item.partnerMax) {
Expand Down