diff options
Updated job offer edit to follow the current template style
3 files changed, 37 insertions, 30 deletions
| -rw-r--r-- | src/css/prog.css | 12 | ||||
| -rw-r--r-- | src/views/dashboard-login.php | 2 | ||||
| -rw-r--r-- | src/views/edit-offer.php | 53 |
diff --git a/src/css/prog.css b/src/css/prog.css index 32f8aa7..53da8f7 100644 --- a/src/css/prog.css +++ b/src/css/prog.css @@ -1,19 +1,23 @@ -input[type="submit"], input[type="text"], input[type="password"] { +input, textarea, select { background: none; color: black; border: 1px solid black; padding: 0.3em; + margin: 0.5em 0; } -input[type="submit"] { +input, textarea, select { width: 100%; } -input[type="text"], input[type="password"] { - margin: 0.5em 0; +input:not([type="submit"]) { min-width: 15em; } +textarea { + resize: vertical; +} + .centered-form { max-width: fit-content; margin-left: auto; diff --git a/src/views/dashboard-login.php b/src/views/dashboard-login.php index ee5288c..d7bae5e 100644 --- a/src/views/dashboard-login.php +++ b/src/views/dashboard-login.php @@ -10,4 +10,4 @@ ?> <input type="submit" value="Login"> </form> - </div> +</div> diff --git a/src/views/edit-offer.php b/src/views/edit-offer.php index a6d699e..992b08e 100644 --- a/src/views/edit-offer.php +++ b/src/views/edit-offer.php @@ -1,25 +1,28 @@ -<form 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 ?>"> - <br> - <label for="description">Job Description: </label> - <textarea type="text" name="description"><?php echo self::$job->description ?></textarea> - <br> - <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> - <br> - <label for="salary">Salary: </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> -<a href="/Dashboard">< Back to Dashboard</a> +<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> |
