Skip to content

Commit

Permalink
Fix ambiguity in spacetime edit modal form as to what fields were ena…
Browse files Browse the repository at this point in the history
…bled for a given choice of permanent or temporary change
  • Loading branch information
Svetlitski committed Feb 5, 2020
1 parent be61572 commit 0708e49
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions csm_web/frontend/src/components/MentorSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ class SpacetimeEditModal extends React.Component {
type="text"
name="location"
value={location}
autoFocus
/>
</label>
{/* Would use a fieldset to be semantic, but Chrome has a bug where flexbox doesn't work for fieldset */}
Expand Down
20 changes: 16 additions & 4 deletions csm_web/frontend/static/frontend/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -771,12 +771,21 @@ table tbody tr:last-child > td {
}

#spacetime-edit-form #date-of-change-fields input[type="radio"] {
margin-right: 10px;
margin: 0 10px 0 0;
-webkit-appearance: none;
-moz-appearance: none;
padding: 2px 8px;
padding: 0;
width: 16px;
height: 16px;
display: inline-block;
border: 2px solid var(--csm-green);
border-radius: 13px;
border-radius: 8px;
vertical-align: middle;
}

#spacetime-edit-form #date-of-change-fields input[type="radio"][value="true"] {
position: relative;
bottom: 1px;
}

#spacetime-edit-form #date-of-change-fields input[type="radio"]:checked {
Expand Down Expand Up @@ -823,7 +832,10 @@ table tbody tr:last-child > td {
font-size: small;
}


#spacetime-edit-form select:disabled, #spacetime-edit-form input:disabled {
cursor: not-allowed;
background-color: #fafafa;
}

#spacetime-edit-form input[type="submit"] {
margin: auto;
Expand Down

0 comments on commit 0708e49

Please sign in to comment.