Skip to content

Commit

Permalink
Merge 946424e into fbba5f2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayur Dhamanwala committed Jan 15, 2019
2 parents fbba5f2 + 946424e commit de88602
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
8 changes: 4 additions & 4 deletions client/components/Events/RecurringRulesInput/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ export class RecurringRulesInput extends React.Component {
const interval = get(schedule, 'recurring_rule.interval');

return (
<div>
<div className="recurring-rules">
<Row noPadding>
<div className="flex-grid">
{!onlyUpdateRepetitions && <Label row text={gettext('Every')} noMinWidth padding/>}
{!onlyUpdateRepetitions && <LineInput {...this.props} isSelect={true} readOnly={readOnly}
noMargin={frequency === 'WEEKLY'}
noMargin={true}
className="form__row form__row--max-width-35">
<Select
field="dates.recurring_rule.interval"
Expand Down Expand Up @@ -95,7 +95,7 @@ export class RecurringRulesInput extends React.Component {
padding
marginLeft={!onlyUpdateRepetitions} />
<LineInput {...this.props} isSelect={true} readOnly={readOnly}
noMargin={frequency === 'WEEKLY'}
noMargin={true}
className="form__row form__row--max-width-80">
<Select
field="dates.recurring_rule.endRepeatMode"
Expand Down Expand Up @@ -123,7 +123,7 @@ export class RecurringRulesInput extends React.Component {
{endRepeatMode === 'count' &&
<div className="form__row form__row--flex">
<LineInput {...this.props} readOnly={readOnly}
noMargin={frequency === 'WEEKLY'}
noMargin={true}
invalid={!!get(errors, 'count')}
message={get(errors, 'count', '')} >
<Input
Expand Down
9 changes: 9 additions & 0 deletions client/components/Events/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,13 @@

.sd-line-input__input--related-item-link {
margin-right: 0.6rem;
}

.recurring-rules {
.sd-line-input {
&--no-margin {
margin-top: 0;
margin-bottom: 0;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export class UpdateTimeComponent extends React.Component {
<FormRow
flex={true}
noPadding={true}
halfWidth={true}
invalid={!!get(this.state, 'errors._startTime')}
>
<Label text={gettext('From')} row={true}/>
Expand All @@ -174,7 +175,7 @@ export class UpdateTimeComponent extends React.Component {
/>
</FormRow>

<FormRow flex={true}>
<FormRow flex={true} halfWidth={true}>
<Label
text={gettext('To')}
row={true}
Expand Down
5 changes: 4 additions & 1 deletion client/components/UI/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ export const ICON_COLORS = {
DEFAULT: false,
};

export const TOOLTIPS = {postedState: gettext('Posted')};
export const TOOLTIPS = {
postedState: gettext('Posted'),
notForPublication: gettext('Not For Publication'),
};

0 comments on commit de88602

Please sign in to comment.