Skip to content

Commit

Permalink
[UPD] Add email-pro field in portal organization registrationf form
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphan Sainléger authored and stephansainleger committed May 11, 2022
1 parent 6aa3a3e commit 05e04c8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class PortalOrganizationRegistration(CustomerPortal):
"opening_time",
"discount",
"function",
"email_pro",
"phone_pro",
"message_from_candidate",
]
Expand Down
1 change: 1 addition & 0 deletions lcc_members_portal/models/crm_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Lead(models.Model):

_POSITION_PROFILE_FIELDS = [
"function",
"email_pro",
"phone_pro",
]

Expand Down
11 changes: 8 additions & 3 deletions lcc_members_portal/views/portal_organization_registration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,21 @@
Your position in the organisation
</h4>
<div class="row">
<div t-attf-class="form-group #{error.get('function') and 'o_has_error' or ''} col-xl-6">
<label class="col-form-label" for="function">Job position</label>
<div t-attf-class="form-group #{error.get('email_pro') and 'o_has_error' or ''} col-xl-6">
<label class="col-form-label" for="email_pro">Professional email</label>
<label class="text-danger"> *</label>
<input type="text" name="function" t-attf-class="form-control #{error.get('function') and 'is-invalid' or ''}" t-att-value="function" required="True" />
<input type="email" name="email_pro" t-attf-class="form-control #{error.get('email_pro') and 'is-invalid' or ''}" t-att-value="email_pro" required="True" />
</div>
<div t-attf-class="form-group #{error.get('phone_pro') and 'o_has_error' or ''} col-xl-6">
<label class="col-form-label" for="phone_pro">Professional phone</label>
<label class="text-danger"> *</label>
<input type="text" name="phone_pro" t-attf-class="form-control #{error.get('phone_pro') and 'is-invalid' or ''}" t-att-value="phone_pro" required="True" />
</div>
<div t-attf-class="form-group #{error.get('function') and 'o_has_error' or ''} col-xl-6">
<label class="col-form-label" for="function">Job position</label>
<label class="text-danger"> *</label>
<input type="text" name="function" t-attf-class="form-control #{error.get('function') and 'is-invalid' or ''}" t-att-value="function" required="True" />
</div>
</div>
<h4>
<br />
Expand Down

0 comments on commit 05e04c8

Please sign in to comment.