Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] - Admin page #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions src/components/admin.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React from 'react';

const Admin = () => (
<div>
<h1>Admin Page</h1>
<form action="">
<label htmlFor="title">Title</label>
<input id="title" type="text"/>
<label htmlFor="tagline">Tagline</label>
<input id="tagline" type="text"/>
<label htmlFor="description">Description</label>
<input id="description" type="text"/>
<label htmlFor="imageUrl">Image url</label>
<input id="imageUrl" type="text"/>
<label htmlFor="degree">Degree</label>
<input id="degree" type="text"/>
<label htmlFor="grade_bagrut">Bagrut Grade</label>
<input id="grade_bagrut" type="text"/>
<label htmlFor="grade_psychometric">Psychometric Grade</label>
<input id="grade_psychometric" type="text"/>
<label htmlFor="universities">Universities</label>
<input id="universities" type="text"/>
<label htmlFor="salary_start">Starting Salary</label>
<input id="salary_start" type="text"/>
<label htmlFor="salary_ten_year">Ten Year Salary</label>
<input id="salary_ten_year" type="text"/>
<button>Submit</button>
</form>
</div>
);

export default Admin;
3 changes: 2 additions & 1 deletion src/router.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Career from './containers/career.jsx';
import Detail from './containers/detail.jsx';
import List from './containers/list.jsx';
import Help from './components/help.jsx';

import Admin from './components/admin.jsx';

const Routes = () => (
<BrowserRouter>
Expand All @@ -15,6 +15,7 @@ const Routes = () => (
<Route path='/career/:title' exact component={Detail} />
<Route path='/list' exact component={List} />
<Route path='/help' exact component={Help} />
<Route path='/admin' exact component={Admin} />
</Switch>
</BrowserRouter>
);
Expand Down