Website: add class identifiers to website forms. (#11234)

Changes:
- Added custom classes to the sandbox and license dispenser login forms
- Added a custom class to the license dispenser update profile form


cc: @DrewBakerfdm
This commit is contained in:
Eric 2023-04-18 14:31:16 -05:00 committed by GitHub
parent 73ff1ffdf5
commit e6e3a51927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -131,7 +131,7 @@
<div class="modal-header">
<h3 class="modal-title text-left">Edit your details?</h3>
</div>
<ajax-form action="updateProfile" :syncing.sync="syncing" :cloud-error.sync="cloudError" :form-data="formData" :form-rules="formRules" :form-errors.sync="formErrors" @submitted="submittedUpdateProfileForm()">
<ajax-form action="updateProfile" class="customers-update-profile" :syncing.sync="syncing" :cloud-error.sync="cloudError" :form-data="formData" :form-rules="formRules" :form-errors.sync="formErrors" @submitted="submittedUpdateProfileForm()">
<div class="modal-body">
<div class="form-group">
<label for="organization">Organization</label>

View File

@ -11,7 +11,7 @@
<div purpose="customer-portal-form" class="d-flex flex-row justify-content-between">
<div class="order-first flex-grow-1">
<div class="card card-body">
<ajax-form action="login" :syncing.sync="syncing" :cloud-error.sync="cloudError" :form-data="formData" :form-rules="formRules" :form-errors.sync="formErrors" @submitted="submittedForm()">
<ajax-form class="customers-login" action="login" :syncing.sync="syncing" :cloud-error.sync="cloudError" :form-data="formData" :form-rules="formRules" :form-errors.sync="formErrors" @submitted="submittedForm()">
<div class="form-group">
<label for="email">Email</label>
<span style="float: right" class="text-right small" v-if="showCustomerLogin"><a href="/customers/register">Create an account</a></span>

View File

@ -9,7 +9,7 @@
The fastest way to test Fleet. Get up and running in minutes. Ready for production deployments? <a href="https://fleetdm.com/docs/deploying">Learn how to deploy Fleet</a>.
</p>
<div class="pt-3">
<ajax-form action="login" :syncing.sync="syncing" :cloud-error.sync="cloudError" :form-errors.sync="formErrors" :form-data="formData" :form-rules="formRules" @submitted="submittedLoginForm()" >
<ajax-form action="login" class="sandbox-login" :syncing.sync="syncing" :cloud-error.sync="cloudError" :form-errors.sync="formErrors" :form-data="formData" :form-rules="formRules" @submitted="submittedLoginForm()" >
<div class="form-group mb-3">
<input id="emailAddress" type="text" class="form-control d-flex w-100" :class="[formErrors.emailAddress ? 'is-invalid' : '']" v-model.trim="formData.emailAddress" placeholder="Email">
<div class="invalid-feedback mt-2">This doesnt appear to be a valid email address</div>