Page 1 of 1

Changing Default Fields

Posted: 21 Nov 2014, 21:45
by ds1
Is it possible to change the type on job orders current H (Hire), C2H (Contract to Hire), C (Contract),FL (Freelance) to PERMANENT AND CONTRACT and if so is there anything else that depends on them.
Also on the Candidates: Log Activity page add to the regarding dropdown to: AVAILABILITY, GENERAL, JOB & UPDATE and lastly removing meeting and other from activity type.

I was going to edit the db fields however am not sure where these fields are located .

Thank you in advance !!

Re: Changing Default Fields

Posted: 22 Nov 2014, 16:45
by RussH
Hi, sure you can change them just as you describe, they're also used in html when generating some of the front-end code.

Just change the backend db, and then you can either search your local installation for the strings, or look in the opencats github repository. it'll take a little time, but won't be complex.

Re: Changing Default Fields

Posted: 02 Dec 2014, 17:32
by ds1
Thanks for that Russ, Could you point me in the right direction of where i need to change the html code, i have tried searching the .js but with out success.

Re: Changing Default Fields

Posted: 02 Dec 2014, 18:15
by RussH
ds1 wrote:Thanks for that Russ, Could you point me in the right direction of where i need to change the html code, i have tried searching the .js but with out success.

hiya - simplest if you search in the github repo - it'll show you the three locations it finds. Of course it won't search the SQL db entries for you - but am sure you can update them easily

If you go here it'll show you the search results for 'C2H' https://github.com/opencats/OpenCATS/se ... =%E2%9C%93

cats-0.9.2/modules/joborders/Edit.tpl
<option value="C2H">C2H (Contract to Hire)</option>
<option value="FL">FL (Freelance)</option>
<?php elseif ($this->data['type'] == 'C2H'): ?>

cats-0.9.2/modules/joborders/Add.tpl
<option value="H" <?php if(isset($this->jobOrderSourceRS['type']) && $this->jobOrderSourceRS['type'] == 'H') echo('selected'); ?>>H (Hire)</option>
<option value="C2H" <?php if(isset($this->jobOrderSourceRS['type']) && $this->jobOrderSourceRS['type'] == 'C2H') echo('selected'); ?>>C2H (Contract to Hire)</option>
<option value="C2H" <?php if(isset($this->jobOrderSourceRS['type']) && $this->jobOrderSourceRS['type'] == 'C2H') echo('selected'); ?>>C2H (Contract to Hire)</option>

cats-0.9.2/lib/JobOrders.php
break;
case 'H';
return 'Hire';
break;
case 'C2H';