Summary Files Commits Branches @commit @diff @stats
path: root / src / views / edit-offer.php
blob: b1961d64cd40fe0e6d5c5149e9aee1f5705bf2e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div class="job-card">
	<form class="centered-form blocky-form-items" method="post">
		<input type="hidden" name="id" value="<?php echo self::$job->id?>">

		<label for="title">Job Title</label>
		<input type="text" name="title" value="<?php echo self::$job->title ?>">

		<label for="description">Job Description</label>
		<textarea type="text" name="description"><?php echo self::$job->description ?></textarea>

		<label for="company">Company</label>
		<select name="company" selected="<?php echo self::$job->companyId ?>">
			<?php 
				foreach(self::$companies as $company) {
					echo "<option value=\"{$company->id}\"";
					echo (self::$job->companyId == $company->id ? 'selected' : '') . ">{$company->name}</option>";
				}
			?>
		</select>

		<label for="salary">Salary (lev/month)</label>
		<input type="number" name="salary" min="1" placeholder="1" value="<?php echo self::$job->salary ?>">

		<br>
		<input type="hidden" name="_method" value="put">
		<input type="submit" value="Update">
	</form>
</div>