diff --git a/src/components/forms/summit-form.js b/src/components/forms/summit-form.js index 3f0772bda..b4c6f4c74 100644 --- a/src/components/forms/summit-form.js +++ b/src/components/forms/summit-form.js @@ -57,6 +57,7 @@ class SummitForm extends React.Component { this.handleAttributeTypeEdit = this.handleAttributeTypeEdit.bind(this); this.handleNewAttributeType = this.handleNewAttributeType.bind(this); this.getHelpUsersOptionLabel = this.getHelpUsersOptionLabel.bind(this); + this.handleSampleNumber = this.handleSampleNumber.bind(this); } componentDidUpdate(prevProps, prevState, snapshot) { @@ -304,6 +305,11 @@ class SummitForm extends React.Component { this.props.generateEncryptionKey(); } + handleSampleNumber(type) { + const {entity} = this.state; + return `${type}_${entity.registration_slug_prefix}_662A968F26820246192380`.trim().toUpperCase().replace(" ", "_"); + } + render() { const {entity, showSection, regLiteMarketingSettings, printAppMarketingSettings, regFeedMetadataListSettings} = this.state; const {timezones, onSPlanDelete, onAttributeTypeDelete, onRegFeedMetadataDelete} = this.props; @@ -393,7 +399,32 @@ class SummitForm extends React.Component { onChange={this.handleChange} /> +
+ + 0} + onChange={this.handleChange} + /> +
+ {entity.registration_slug_prefix && +
+
+ +
+ {this.handleSampleNumber("order")} +
+
+ +
+ {this.handleSampleNumber("ticket")} +
+
+ }
diff --git a/src/i18n/en.json b/src/i18n/en.json index 223ba217d..d9669e135 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -283,6 +283,9 @@ "external_summit_id": "External Id", "max_submission_allowed_per_user": "Max. Submissions per User", "slug": "Slug", + "registration_slug": "Registration Slug", + "sample_order_qr_prefix": "Sample Order Number", + "sample_ticket_qr_prefix": "Sample Ticket Number", "link": "Event Page Link", "registration_link": "Registration Link", "registration_disclaimer_content": "Disclaimer", diff --git a/src/reducers/summits/current-summit-reducer.js b/src/reducers/summits/current-summit-reducer.js index a6fa45978..78d96c0dd 100644 --- a/src/reducers/summits/current-summit-reducer.js +++ b/src/reducers/summits/current-summit-reducer.js @@ -73,6 +73,7 @@ export const DEFAULT_ENTITY = { registration_link: '', registration_disclaimer_content: '', registration_disclaimer_mandatory: false, + registration_slug_prefix: '', schedule_event_detail_url: '', schedule_page_url: '', schedule_start_date: 0,