Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #60 from Team-Tukka/task/1/dal
Browse files Browse the repository at this point in the history
Task 1, 2, 3: Tooltips vises korrekt i Firefox, der er tilføjet DKK ud for alle priserne i produktlisten og InputGroupAddon er tilføjet til felterne under EditScooter- og EditSparepart-komponenterne.
  • Loading branch information
Matttuu committed Jan 6, 2020
2 parents 01fa344 + 837c654 commit 80ffd19
Show file tree
Hide file tree
Showing 9 changed files with 138 additions and 34 deletions.
14 changes: 7 additions & 7 deletions src/components/addNewScooter/AddNewScooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function AddNewScooter() {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du elscooterens enhedsnummer. Fx AK-3761.
Expand Down Expand Up @@ -259,7 +259,7 @@ function AddNewScooter() {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du elscooterens navn. Fx HS-855 Hvid.
Expand Down Expand Up @@ -298,7 +298,7 @@ function AddNewScooter() {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du elscooterens pris uden moms i DKK. Fx 22999,95.
Expand Down Expand Up @@ -341,7 +341,7 @@ function AddNewScooter() {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du den unikke kode, der identificerer enheden. En
Expand Down Expand Up @@ -380,7 +380,7 @@ function AddNewScooter() {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du de ord, der kan identificere enheden. Ordene
Expand Down Expand Up @@ -419,7 +419,7 @@ function AddNewScooter() {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du elscooterens mærke. Fx C.T.M.
Expand Down Expand Up @@ -460,7 +460,7 @@ function AddNewScooter() {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du en fyldestgørende beskrivelse af enheden. Max 200
Expand Down
6 changes: 3 additions & 3 deletions src/components/addNewSparepart/AddNewSparepart.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function AddNewSparepart() {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du reservedelens enhedsnummer. Fx HL-372761.
Expand Down Expand Up @@ -175,7 +175,7 @@ function AddNewSparepart() {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du reservedelens enhedsnavn. Fx Armlæn Højre.
Expand Down Expand Up @@ -214,7 +214,7 @@ function AddNewSparepart() {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du reservedelens pris uden moms i DKK. Fx 99,95.
Expand Down
2 changes: 1 addition & 1 deletion src/components/addNewUser/AddNewUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function AddNewUser() {
toggle={toggleAdminRole}
style={{
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Bemærk! Hvis du checker af i dette felt, så bliver brugeren
Expand Down
16 changes: 16 additions & 0 deletions src/components/editScooter/EditScooter.css
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
@import url('../../assets/css/globalStyles.css');

.inputGroupTextStyles {
margin-bottom: 0.5rem;
color: #1a1a1a !important;
background-color: #f8f8f8 !important;
border: 1px #f0f6ea solid !important;
border-radius: 0.4rem 0 0 0.4rem !important;
box-shadow: 1px 1px 2px #ececec;
}

.inputStylesEditScooter {
border: 1px #f0f6ea solid !important;
border-radius: 0 0.4rem 0.4rem 0 !important;
box-shadow: 1px 1px 2px #ececec;
margin-bottom: 0.5rem;
}
74 changes: 61 additions & 13 deletions src/components/editScooter/EditScooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,17 @@ function EditScooter(props) {
<Form className="form" onSubmit={handleSubmit}>
<FormGroup>
<InputGroup>
<InputGroupAddon addonType="prepend">
<InputGroupText
className="inputGroupTextStyles"
style={{ minWidth: '8.7rem' }}
>
Enhedsnummer
</InputGroupText>
</InputGroupAddon>
<Input
required
className="inputStyles"
className="inputStylesEditScooter"
type="text"
name="itemNo"
id="scooterItemNo"
Expand Down Expand Up @@ -284,7 +292,7 @@ function EditScooter(props) {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du elscooterens enhedsnummer. Fx AK-3761.
Expand All @@ -293,9 +301,17 @@ function EditScooter(props) {
</FormGroup>
<FormGroup>
<InputGroup>
<InputGroupAddon addonType="prepend">
<InputGroupText
className="inputGroupTextStyles"
style={{ minWidth: '8.7rem' }}
>
Enhedsnavn
</InputGroupText>
</InputGroupAddon>
<Input
required
className="inputStyles"
className="inputStylesEditScooter"
type="text"
name="name"
id="scooterName"
Expand Down Expand Up @@ -325,7 +341,7 @@ function EditScooter(props) {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du elscooterens navn. Fx HS-855 Hvid.
Expand All @@ -334,8 +350,16 @@ function EditScooter(props) {
</FormGroup>
<FormGroup>
<InputGroup>
<InputGroupAddon addonType="prepend">
<InputGroupText
className="inputGroupTextStyles"
style={{ minWidth: '8.7rem' }}
>
Pris uden moms
</InputGroupText>
</InputGroupAddon>
<Input
className="inputStyles"
className="inputStylesEditScooter"
type="number"
step={0.01}
name="price"
Expand Down Expand Up @@ -366,7 +390,7 @@ function EditScooter(props) {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du elscooterens pris uden moms i DKK. Fx 22999,95.
Expand All @@ -380,8 +404,16 @@ function EditScooter(props) {
</FormGroup>
<FormGroup>
<InputGroup>
<InputGroupAddon addonType="prepend">
<InputGroupText
className="inputGroupTextStyles"
style={{ minWidth: '8.7rem' }}
>
SKU
</InputGroupText>
</InputGroupAddon>
<Input
className="inputStyles"
className="inputStylesEditScooter"
type="text"
name="sku"
id="scooterSku"
Expand Down Expand Up @@ -409,7 +441,7 @@ function EditScooter(props) {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du den unikke kode, der identificerer enheden. En
Expand All @@ -419,8 +451,16 @@ function EditScooter(props) {
</FormGroup>
<FormGroup>
<InputGroup>
<InputGroupAddon addonType="prepend">
<InputGroupText
className="inputGroupTextStyles"
style={{ minWidth: '8.7rem' }}
>
Tags
</InputGroupText>
</InputGroupAddon>
<Input
className="inputStyles"
className="inputStylesEditScooter"
type="text"
name="tags"
id="scooterTags"
Expand Down Expand Up @@ -448,7 +488,7 @@ function EditScooter(props) {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du de ord, der kan identificere enheden. Ordene
Expand All @@ -458,8 +498,16 @@ function EditScooter(props) {
</FormGroup>
<FormGroup>
<InputGroup>
<InputGroupAddon addonType="prepend">
<InputGroupText
className="inputGroupTextStyles"
style={{ minWidth: '8.7rem' }}
>
Mærke
</InputGroupText>
</InputGroupAddon>
<Input
className="inputStyles"
className="inputStylesEditScooter"
type="text"
name="brand"
id="scooterBrand"
Expand Down Expand Up @@ -487,7 +535,7 @@ function EditScooter(props) {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du elscooterens mærke. Fx C.T.M.
Expand Down Expand Up @@ -528,7 +576,7 @@ function EditScooter(props) {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du en fyldestgørende beskrivelse af enheden. Max 200
Expand Down
16 changes: 16 additions & 0 deletions src/components/editSparepart/EditSparepart.css
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
@import url('../../assets/css/globalStyles.css');

.inputGroupTextStyles {
margin-bottom: 0.5rem;
color: #1a1a1a !important;
background-color: #f8f8f8 !important;
border: 1px #f0f6ea solid !important;
border-radius: 0.4rem 0 0 0.4rem !important;
box-shadow: 1px 1px 2px #ececec;
}

.inputStylesEditSparepart {
border: 1px #f0f6ea solid !important;
border-radius: 0 0.4rem 0.4rem 0 !important;
box-shadow: 1px 1px 2px #ececec;
margin-bottom: 0.5rem;
}
36 changes: 30 additions & 6 deletions src/components/editSparepart/EditSparepart.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,17 @@ function EditSparepart(props) {
<Form className="form" onSubmit={handleSubmit}>
<FormGroup>
<InputGroup>
<InputGroupAddon addonType="prepend">
<InputGroupText
className="inputGroupTextStyles"
style={{ minWidth: '8.7rem' }}
>
Enhedsnummer
</InputGroupText>
</InputGroupAddon>
<Input
required
className="inputStyles"
className="inputStylesEditSparepart"
type="text"
name="itemNo"
id="sparepartItemNo"
Expand Down Expand Up @@ -191,7 +199,7 @@ function EditSparepart(props) {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du reservedelens enhedsnummer. Fx HL-372761.
Expand All @@ -200,9 +208,17 @@ function EditSparepart(props) {
</FormGroup>
<FormGroup>
<InputGroup>
<InputGroupAddon addonType="prepend">
<InputGroupText
className="inputGroupTextStyles"
style={{ minWidth: '8.7rem' }}
>
Enhedsnavn
</InputGroupText>
</InputGroupAddon>
<Input
required
className="inputStyles"
className="inputStylesEditSparepart"
type="text"
name="name"
id="sparepartName"
Expand Down Expand Up @@ -232,7 +248,7 @@ function EditSparepart(props) {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du reservedelens enhedsnavn. Fx Armlæn Højre.
Expand All @@ -241,8 +257,16 @@ function EditSparepart(props) {
</FormGroup>
<FormGroup>
<InputGroup>
<InputGroupAddon addonType="prepend">
<InputGroupText
className="inputGroupTextStyles"
style={{ minWidth: '8.7rem' }}
>
Pris uden moms
</InputGroupText>
</InputGroupAddon>
<Input
className="inputStyles"
className="inputStylesEditSparepart"
type="number"
step={0.01}
name="price"
Expand Down Expand Up @@ -273,7 +297,7 @@ function EditSparepart(props) {
style={{
padding: '0.5rem',
whiteSpace: 'nowrap',
minWidth: 'fit-content'
minWidth: 'min-content'
}}
>
Her indtaster du reservedelens pris uden moms i DKK. Fx 99,95.
Expand Down
Loading

0 comments on commit 80ffd19

Please sign in to comment.