Skip to content

Commit

Permalink
Added job status search form items
Browse files Browse the repository at this point in the history
  • Loading branch information
davewalker5 committed Oct 31, 2023
1 parent da7d151 commit d0e9f73
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
34 changes: 33 additions & 1 deletion src/music-catalogue-ui/components/jobStatusReport.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,45 @@
import { useCallback, useState } from "react";
import React, { useCallback, useState } from "react";
import styles from "./jobStatusReport.module.css";
import "react-datepicker/dist/react-datepicker.css";

const JobStatusReport = ({ navigate, logout }) => {
const [startDate, setStartDate] = useState(new Date());
const [endDate, setEndDate] = useState(new Date());

return (
<>
<div className="row mb-2 pageTitle">
<h5 className="themeFontColor text-center">Job Status Report</h5>
</div>
<div className={styles.reportFormContainer}>
<div className={styles.reportForm}>
<div class="row" align="center">
<div class="mt-3">
<div class="d-inline-flex align-items-center">
<label className={styles.reportFormLabel}>From</label>
<input
class="form-control mt-1"
placeholder="Start date"
name="start"
selected={startDate}
onChange={(date) => setStartDate(date)}
/>
</div>
<div class="d-inline-flex align-items-center">
<label className={styles.reportFormLabel}>To</label>
<input
class="form-control mt-1"
placeholder="End date"
name="end"
selected={endDate}
onChange={(date) => setEndDate(date)}
/>
</div>
<button className="btn btn-primary">Search</button>
</div>
</div>
</div>
</div>
</>
);
};
Expand Down
22 changes: 22 additions & 0 deletions src/music-catalogue-ui/components/jobStatusReport.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.reportFormContainer {
display: flex;
justify-content: center;
align-items: center;
}

.reportForm {
width: 100vw;
padding-top: 20px;
padding-bottom: 20px;
}

.reportFormLabel {
font-size: 14px;
font-weight: 600;
color: rgb(34, 34, 34);
}

.reportForm * input {
margin-left: 20px;
margin-right: 20px;
}

0 comments on commit d0e9f73

Please sign in to comment.