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

Commit

Permalink
Merge branch 'sprint/5' into task/6/tmc
Browse files Browse the repository at this point in the history
  • Loading branch information
dani832m committed Jan 6, 2020
2 parents 781fb80 + 80ffd19 commit 6b49cc7
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 @@ -462,7 +462,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,8 +252,16 @@ function EditScooter(props) {
<Form className="form" onSubmit={handleSubmit}>
<FormGroup>
<InputGroup>
<InputGroupAddon addonType="prepend">
<InputGroupText
className="inputGroupTextStyles"
style={{ minWidth: '8.7rem' }}
>
Enhedsnummer
</InputGroupText>
</InputGroupAddon>
<Input
className="inputStyles"
className="inputStylesEditScooter"
type="text"
name="itemNo"
id="scooterItemNo"
Expand Down Expand Up @@ -283,7 +291,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 @@ -292,8 +300,16 @@ function EditScooter(props) {
</FormGroup>
<FormGroup>
<InputGroup>
<InputGroupAddon addonType="prepend">
<InputGroupText
className="inputGroupTextStyles"
style={{ minWidth: '8.7rem' }}
>
Enhedsnavn
</InputGroupText>
</InputGroupAddon>
<Input
className="inputStyles"
className="inputStylesEditScooter"
type="text"
name="name"
id="scooterName"
Expand Down Expand Up @@ -323,7 +339,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 @@ -332,8 +348,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 @@ -364,7 +388,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 @@ -378,8 +402,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 @@ -407,7 +439,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 @@ -417,8 +449,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 @@ -446,7 +486,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 @@ -456,8 +496,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 @@ -485,7 +533,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,8 +159,16 @@ function EditSparepart(props) {
<Form className="form" onSubmit={handleSubmit}>
<FormGroup>
<InputGroup>
<InputGroupAddon addonType="prepend">
<InputGroupText
className="inputGroupTextStyles"
style={{ minWidth: '8.7rem' }}
>
Enhedsnummer
</InputGroupText>
</InputGroupAddon>
<Input
className="inputStyles"
className="inputStylesEditSparepart"
type="text"
name="itemNo"
id="sparepartItemNo"
Expand Down Expand Up @@ -190,7 +198,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 @@ -199,8 +207,16 @@ function EditSparepart(props) {
</FormGroup>
<FormGroup>
<InputGroup>
<InputGroupAddon addonType="prepend">
<InputGroupText
className="inputGroupTextStyles"
style={{ minWidth: '8.7rem' }}
>
Enhedsnavn
</InputGroupText>
</InputGroupAddon>
<Input
className="inputStyles"
className="inputStylesEditSparepart"
type="text"
name="name"
id="sparepartName"
Expand Down Expand Up @@ -230,7 +246,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 @@ -239,8 +255,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 @@ -271,7 +295,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 6b49cc7

Please sign in to comment.