mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Website: Update deal registration form (#35524)
Closes: https://github.com/fleetdm/fleet/issues/33953 Changes: - Updated the deal registration form to not be locked to a single organization
This commit is contained in:
parent
8246c0a083
commit
f7a6897003
2 changed files with 3 additions and 7 deletions
8
website/assets/js/pages/deals.page.js
vendored
8
website/assets/js/pages/deals.page.js
vendored
|
|
@ -4,9 +4,7 @@ parasails.registerPage('deals', {
|
|||
// ╩╝╚╝╩ ╩ ╩╩ ╩╩═╝ ╚═╝ ╩ ╩ ╩ ╩ ╚═╝
|
||||
data: {
|
||||
// Form data
|
||||
formData: {
|
||||
submittersOrganization: 'CDW',
|
||||
},
|
||||
formData: {},
|
||||
|
||||
// For tracking client-side validation errors in our form.
|
||||
// > Has property set to `true` for each invalid property in `formData`.
|
||||
|
|
@ -54,9 +52,7 @@ parasails.registerPage('deals', {
|
|||
this.showSuccessMessage = false;
|
||||
this.cloudError = '';
|
||||
this.formErrors = {};
|
||||
this.formData = {
|
||||
submittersOrganization: 'CDW',
|
||||
};
|
||||
this.formData = {};
|
||||
await this.forceRender();
|
||||
},
|
||||
|
||||
|
|
|
|||
2
website/views/pages/deals.ejs
vendored
2
website/views/pages/deals.ejs
vendored
|
|
@ -30,7 +30,7 @@
|
|||
</div>
|
||||
<div class="form-group">
|
||||
<label for="submitters-organization">Organization *</label>
|
||||
<input class="form-control" id="submitters-organization" type="text" disabled :class="[formErrors.submittersOrganization ? 'is-invalid' : '']" v-model.trim="formData.submittersOrganization" @input="typeClearOneFormError('submittersOrganization')">
|
||||
<input class="form-control" id="submitters-organization" type="text" :class="[formErrors.submittersOrganization ? 'is-invalid' : '']" v-model.trim="formData.submittersOrganization" @input="typeClearOneFormError('submittersOrganization')">
|
||||
<div class="invalid-feedback" v-if="formErrors.submittersOrganization">Please enter the name of your organization.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue