added default list views for myportal linked cases
This commit is contained in:
@@ -6,7 +6,7 @@ export function Textfield(props) {
|
||||
|
||||
return (
|
||||
<div className="govuk-form-group">
|
||||
<label className="govuk-label govuk-label--m " htmlFor="event-name">
|
||||
<label className="govuk-label " htmlFor="event-name">
|
||||
{props.label}
|
||||
</label>
|
||||
<Field
|
||||
@@ -26,14 +26,14 @@ export function MultiLinefield(props) {
|
||||
return (
|
||||
<div className="govuk-form-group">
|
||||
<h1 className="govuk-label-wrapper">
|
||||
<label
|
||||
className="govuk-label govuk-label--l"
|
||||
htmlFor="more-detail"
|
||||
>
|
||||
<label className="govuk-label" htmlFor="more-detail">
|
||||
{props.label}
|
||||
</label>
|
||||
</h1>
|
||||
<div id="more-detail-hint" className="govuk-hint">
|
||||
<div
|
||||
id="more-detail-hint"
|
||||
className="govuk-hint govuk-!-font-size-14"
|
||||
>
|
||||
Do not include personal or financial information, like your
|
||||
National Insurance number or credit card details.
|
||||
</div>
|
||||
@@ -60,19 +60,16 @@ export function DateField(props) {
|
||||
role="group"
|
||||
aria-describedby="dob-hint"
|
||||
>
|
||||
<legend className="govuk-fieldset__legend govuk-fieldset__legend--s">
|
||||
<legend className="govuk-fieldset__legend govuk-fieldset__legend--s govuk-!-font-weight-regular">
|
||||
<label className="govuk-fieldset__heading">
|
||||
{props.label}
|
||||
</label>
|
||||
</legend>
|
||||
<div id="dob-hint" className="govuk-hint">
|
||||
For example, 31 3 1980
|
||||
</div>
|
||||
<div className="govuk-date-input" id="dob">
|
||||
<div className="govuk-date-input__item">
|
||||
<div className="govuk-form-group">
|
||||
<label
|
||||
className="govuk-label govuk-date-input__label"
|
||||
className="govuk-label govuk-date-input__label govuk-!-font-size-14"
|
||||
htmlFor={props.name + "-day"}
|
||||
>
|
||||
Day
|
||||
@@ -91,7 +88,7 @@ export function DateField(props) {
|
||||
<div className="govuk-date-input__item">
|
||||
<div className="govuk-form-group">
|
||||
<label
|
||||
className="govuk-label govuk-date-input__label"
|
||||
className="govuk-label govuk-date-input__label govuk-!-font-size-14"
|
||||
htmlFor={props.name + "-month"}
|
||||
>
|
||||
Month
|
||||
@@ -110,7 +107,7 @@ export function DateField(props) {
|
||||
<div className="govuk-date-input__item">
|
||||
<div className="govuk-form-group">
|
||||
<label
|
||||
className="govuk-label govuk-date-input__label"
|
||||
className="govuk-label govuk-date-input__label govuk-!-font-size-14"
|
||||
htmlFor={props.name + "-year"}
|
||||
>
|
||||
Year
|
||||
@@ -139,15 +136,15 @@ export function YesNofield(props) {
|
||||
<div className="govuk-form-group">
|
||||
<fieldset
|
||||
className="govuk-fieldset"
|
||||
aria-describedby="changed-name-hint"
|
||||
aria-describedby={props.name + "-hint"}
|
||||
>
|
||||
<legend className="govuk-fieldset__legend govuk-fieldset__legend--s">
|
||||
<label className="govuk-fieldset__heading">
|
||||
<legend className="govuk-fieldset__legend govuk-fieldset__legend--s govuk-!-font-weight-regular">
|
||||
<label className="govuk-fieldset__heading govuk-body-m">
|
||||
{props.label}
|
||||
</label>
|
||||
</legend>
|
||||
|
||||
<div className="govuk-radios govuk-radios--inline">
|
||||
<div className="govuk-radios govuk-radios--inline govuk-radios--small">
|
||||
{Object.keys(yesNo).map((key, index) => (
|
||||
<div
|
||||
className="govuk-radios__item"
|
||||
@@ -236,16 +233,9 @@ export function NumericField(props) {
|
||||
|
||||
return (
|
||||
<div className="govuk-form-group">
|
||||
<label
|
||||
className="govuk-label govuk-label--m"
|
||||
htmlFor="account-number"
|
||||
>
|
||||
<label className="govuk-label" htmlFor="account-number">
|
||||
{props.label}
|
||||
</label>
|
||||
|
||||
<div id="account-number-hint" className="govuk-hint">
|
||||
Must be between 6 and 8 digits long
|
||||
</div>
|
||||
<Field
|
||||
name={props.name}
|
||||
id={props.name}
|
||||
@@ -266,16 +256,9 @@ export function DecimalField(props) {
|
||||
|
||||
return (
|
||||
<div className="govuk-form-group">
|
||||
<label
|
||||
className="govuk-label govuk-label--m"
|
||||
htmlFor="account-number"
|
||||
>
|
||||
<label className="govuk-label" htmlFor="account-number">
|
||||
{props.label}
|
||||
</label>
|
||||
|
||||
<div id="account-number-hint" className="govuk-hint">
|
||||
Must be between 6 and 8 digits long
|
||||
</div>
|
||||
<Field
|
||||
name={props.name}
|
||||
id={props.name}
|
||||
@@ -296,7 +279,7 @@ export function ReadOnlyfield(props) {
|
||||
|
||||
return (
|
||||
<div className="govuk-form-group">
|
||||
<label className="govuk-label govuk-label--m " htmlFor="event-name">
|
||||
<label className="govuk-label " htmlFor="event-name">
|
||||
{props.label}
|
||||
</label>
|
||||
<Field
|
||||
|
||||
Reference in New Issue
Block a user