-
Notifications
You must be signed in to change notification settings - Fork 4
/
item_edit.php
executable file
·54 lines (52 loc) · 3.12 KB
/
item_edit.php
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<div class="jobboard-plugin">
<h3 class="render-title"><?php _e('Job details', 'jobboard'); ?></h3>
<div class="form-horizontal">
<div class="form-row">
<label><?php _e('Position type', 'jobboard'); ?></label>
<select name="positionType" class="select-box">
<?php foreach(get_jobboard_position_types() as $k => $v) { ?>
<option value="<?php echo $k; ?>" <?php if(@$detail['e_position_type'] == $k) { echo 'selected'; } ?>><?php echo $v; ?></option>
<?php } ?>
</select>
</div>
</div>
<div class="form-row">
<label><?php _e('Num. of positions', 'jobboard'); ?></label>
<input type="text" id="numPositions" class="input-medium" name="numPositions" value="<?php if(@$detail['i_num_positions'] != '') { echo $detail['i_num_positions']; } ?>" />
</div>
<div class="form-row">
<label><?php _e('Salary', 'jobboard'); ?></label>
<input type="text" class="input-large" name="salaryText" value="<?php echo @$detail['s_salary_text']; ?>" />
</div>
<?php foreach(osc_get_locales() as $locale) { ?>
<div class="form-row input-title-wide">
<label style="font-size: 14px!important;"><?php _e('Contract', 'jobboard'); ?></label>
<input type="text" class="input-large" name="contract[<?php echo $locale['pk_c_code']; ?>]" value="<?php echo @$detail['locale'][$locale['pk_c_code']]['s_contract']; ?>" />
</div>
<div class="form-row input-title-wide">
<label style="font-size: 14px!important;"><?php _e('Studies', 'jobboard'); ?></label>
<input type="text" class="input-large" name="studies[<?php echo $locale['pk_c_code']; ?>]" value="<?php echo @$detail['locale'][$locale['pk_c_code']]['s_studies']; ?>" />
</div>
<div class="form-row input-title-wide">
<label style="font-size: 14px!important;"><?php _e('Desired experience', 'jobboard'); ?></label>
<input type="text" class="input-large" name="desired_exp[<?php echo $locale['pk_c_code']; ?>]" value="<?php echo @$detail['locale'][$locale['pk_c_code']]['s_desired_exp']; ?>" />
</div>
<div class="form-row input-description-wide">
<label><?php _e('Minimum requirements', 'jobboard'); ?></label>
<textarea name="min_reqs[<?php echo $locale['pk_c_code']; ?>]" rows="5"><?php echo @$detail['locale'][$locale['pk_c_code']]['s_minimum_requirements']; ?></textarea>
</div>
<div class="form-row input-description-wide">
<label><?php _e('Desired requirements', 'jobboard'); ?></label>
<textarea name="desired_reqs[<?php echo $locale['pk_c_code']; ?>]" rows="5"><?php echo @$detail['locale'][$locale['pk_c_code']]['s_desired_requirements']; ?></textarea>
</div>
<?php } ?>
</div>
</div>
<script type="text/javascript">
$('.jobboard-plugin select').each(function(){
selectUi($(this));
});
tabberAutomatic();
// input numPositions only numeric values
$('input#numPositions').rules("add", {number : true}) ;
</script>