Skip to content

Commit

Permalink
Show code field (#4140)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc authored Nov 14, 2022
1 parent 74acbdc commit 7862c04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/extensions/broadcasting/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ export interface IRRule {

export interface IShowBase {
title: string;
shortcode?: string;
description: string;
planned_duration: number | null;
planned_duration?: number;
}

export type IShow = IShowBase & IBaseRestApiResponse;
Expand Down
7 changes: 7 additions & 0 deletions scripts/extensions/broadcasting/src/shows/manage-shows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ const nameField: IFormField = {
field: nameof<IShow>('title'),
required: true,
};
const shortCode: IFormField = {
label: gettext('Show code'),
type: FormFieldType.plainText,
field: nameof<IShow>('shortcode'),
required: false,
};
const descriptionField: IFormField = {
label: gettext('Description'),
type: FormFieldType.plainText,
Expand All @@ -48,6 +54,7 @@ const formConfig: IFormGroup = {
type: 'inline',
form: [
nameField,
shortCode,
descriptionField,
plannedDurationField,
],
Expand Down

0 comments on commit 7862c04

Please sign in to comment.