Add Listing Page
From Smart Job Board help
Add Listing is the page where the user redirected if clicks on Post Job / Post Resume link.
On that page the user enters information about Job / Resume he wants to post.
- Modifying “Enter Job / Resume information” title
On the Add Listing page under the top menu you can see the title Enter Job Information or Enter Resume Information
To edit this title you need to edit the input_form.tpl
The path is:
Admin Panel -> Templates -> Edit Templates -> Classifieds -> input_form.tpl
In the input_form.tpl code you need to find the following:
Code:
{if $GLOBALS.current_user.group.id=="Employer"}
<div class="headerText">[[Enter Job Information]]</div>
{else}
<div class="headerText">[[Enter Your Resume Information]]</div>
{/if}
Explanation:
The input_form.tpl template is used for all listing types.
Therefore in the foregoing part of the code you can see the condition:
{if $GLOBALS.current_user.group.id=="Employer"}
- i.e. if the user posting this job belongs to Employer User Group,
<div class="headerText">[[Enter Job Information]]</div>
Then “Enter Job Information” title will be displayed.
{else}
Otherwise (if it is not Employer User Group user)
<div class="headerText">[[Enter Your Resume Information]]</div>
“Enter Your Resume Information” title will be displayed.
If you have another User Groups created in the system besides default Employer and Job Seeker User Groups (e.g. Recruiter and FreeLancer) and you want different titles to be displayed for them on the Add Listing page, then in this case in the input_form.tpl it should be defined the following way:
{if $GLOBALS.current_user.group.id=="Employer"} <div class="headerText">[[Enter Job Information]]</div>
{elseif $GLOBALS.current_user.group.id=="Recruiter"}
<div class="headerText">[[Enter Job Information for Recruiter]]</div>
{elseif $GLOBALS.current_user.group.id=="FreeLancer"}
<div class="headerText">Enter Job Information for FreeLancer</div> {else} <div class="headerText">[[Enter Your Resume Information]]</div> {/if}
Note: Make sure to use ID of the User Group in templates code (not Caption),
like {if $GLOBALS.current_user.group.id=="JobSeeker"}
except those cases when it is a text, like "headerText">Dear Job Seeker,
please, enter Your Resume Information
- Adding a notice
If you need to add a notice under the add listing page title – you can make it the following way:
{if $GLOBALS.current_user.group.id=="Employer"}
<div class="headerText">[[Enter Job Information]]</div>
<p>[[notice text]]</u….</p>
{else}
- Remove/hide ‘Add pictures’ function from the add_listing page
If it is needed to make the ‘Add pictures’ option not accessible for users when they post Job / Resume – you need to edit the input_form.tpl (Edit Templates -> classifieds -> input_form.tpl)
In the template code you need to find the following part:
<input type="submit" name="action_add_pictures" value="Add Pictures:raw" class="button" />
1) To completely remove this option - you just need to delete this part of the code.
2) To temporarily hide the ‘add pictures’ option form the add_listing page – you need to comment-out this part of the code, like shown below:
{*<input type="submit" name="action_add_pictures" value="Add Pictures:raw" class="button" />*}
- Below you can see how to make ‘Add pictures’ option available for only one specific User Group (e.g. make it accessible for Job Seekers only):
{if $GLOBALS.current_user.group.id=="JobSeeker"}
<input type="submit" name="action_add_pictures" value="Add Pictures:raw" class="button" />
{else}
You don’t have permissions to add pictures (or leave this line empty)
{/if}
- Add listing form
The add listing form display is defined in theinput_form_default.tpl template (Edit Templates -> Classifieds -> input_form_default.tpl)
Add notice to a field
It is possible to add a notice to a certain if needed (e.g. add a notice to the ‘Country’ field when users posing jobs)
In the referred above template you need to find the following part of the code:
{else}
<tr>
<td valign="top" width="20%">$form field.caption</td>
<td valign="top">{if $form_field.is_required} <font color="red">*</font>{/if} </td>
<td>{input property=$form_field.id}</td>
</tr>
{/if}
{/foreach}
Then (without modifying this code) you need to insert the following <u>before that code:
{elseif $listing.type.id == "Job" && $form_field.id =='Country' OR $listing_type_id == "Job" && $form_field.id =='Country '}
<tr>
<td valign="top" width="20%">$form field.caption<br/>[['''''Your Notice!!''''']]</td>
<td valign="top">{if $form_field.is_required} <font color="red">*</font>{/if} </td>
<td>{input property=$form_field.id }</td>
</tr>
Explanation:
{elseif $listing.type.id == "Job" && $form_field.id =='Country' OR $listing_type_id == "Job" && $form_field.id =='Country '}
- Here we define:
if the present listing is ‘Job’ and also if there is “Country” field
Note: make sure to use the ID of a field, not the Caption.
<td valign="top" width="20%">$form field.caption<br/>Your Notice!</td>
- This is the first column which displays fields names (Country, State, etc).
<td valign="top">{if $form_field.is_required} <font color="red">*</font>{/if} </td>
- This is the second column which displays the red asterisk;
Note: red asterisk sign should be added to a field if this field is required to be filled; otherwise the red asterisk should not be used.
<td>{input property=$form_field.id }</td>
- This column defines the display of field values (in this example it is the list of Countries)
So the original code was:
<td valign="top" width="20%">$form field.caption </td>
And below there is a notice added:
<td valign="top" width="20%">$form field.caption<br/>Your notice!!</td>
I.e. after the code defining “Country” field you need to put <br/> (which means the line break) and after we insert the desired text of the future Notice.
For example: “If your country if not in the list, please contact us”
