Skip to content

Instantly share code, notes, and snippets.

@paulcredmond
Created March 6, 2015 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulcredmond/d5389ea5f462656f09ec to your computer and use it in GitHub Desktop.
Save paulcredmond/d5389ea5f462656f09ec to your computer and use it in GitHub Desktop.
<h2>Account - Profile</h2>
{if logged_in AND segment_3 == "success"}
<h3>Online CV</h3>
<p>Your profile has been updated!</p>
{if:elseif logged_in}
{exp:zoo_visitor:update_form return="account/cv/success"}
<p>Welcome {candidate_first_name} | <a href="{path=logout}">Logout</a>.</p>
<p>
<a class="btn btn-default" href="account/email">Change email</a> <a class="btn btn-default" href="account/password">Change password</a>
</p>
<fieldset>
<legend>My information</legend>
<p>
<label for="candidate_title">{label:candidate_title}</label>
<select name="candidate_title" id="candidate_title">
{options:candidate_title}
<option value="{option_value}">{option_value}</option>
{/options:candidate_title}
</select>
</p>
<p>
<label for="candidate_first_name">{label:candidate_first_name}:</label>
<input type="text" name="candidate_first_name" id="candidate_first_name" value="{candidate_first_name}" />
</p>
<p>
<label for="candidate_last_name">{label:candidate_last_name}:</label>
<input type="text" name="candidate_last_name" id="candidate_last_name" value="{candidate_last_name}" />
</p>
<p>
<label for="candidate_address_1">{label:candidate_address_1}:</label>
<input type="text" name="candidate_address_1" id="candidate_address_1" value="{candidate_address_1}" />
</p>
<p>
<label for="candidate_address_2">{label:candidate_address_2}:</label>
<input type="text" name="candidate_address_2" id="candidate_address_2" value="{candidate_address_2}" />
</p>
<p>
<label for="candidate_address_3">{label:candidate_address_3}:</label>
<input type="text" name="candidate_address_3" id="candidate_address_3" value="{candidate_address_3}" />
</p>
<p>
<label for="candidate_address_4">{label:candidate_address_4}:</label>
<input type="text" name="candidate_address_4" id="candidate_address_4" value="{candidate_address_4}" />
</p>
<p>
<label for="candidate_town_city">{label:candidate_town_city}:</label>
<input type="text" name="candidate_town_city" id="candidate_town_city" value="{candidate_town_city}" />
</p>
<p>
<label for="candidate_state_region">{label:candidate_state_region}:</label>
<input type="text" name="candidate_state_region" id="candidate_state_region" value="{candidate_state_region}" />
</p>
<p>
<label for="candidate_postal_zip_code">{label:candidate_postal_zip_code}:</label>
<input type="text" name="candidate_postal_zip_code" id="candidate_postal_zip_code" value="{candidate_postal_zip_code}" />
</p>
<p>
<label for="candidate_country">{label:candidate_country}</label>
<select name="candidate_country" id="candidate_country">
{options:candidate_country}
<option value="{option_value}">{option_value}</option>
{/options:candidate_country}
</select>
</p>
<p>
<label for="candidate_other_county">{label:candidate_other_county}:</label>
<input type="text" name="candidate_other_county" id="candidate_other_county" value="{candidate_other_county}" />
</p>
<p>
<label for="candidate_phone">{label:candidate_phone}:</label>
<input type="tel" name="candidate_phone" id="candidate_phone" value="{candidate_phone}" />
</p>
</fieldset>
<fieldset>
<legend>My CV</legend>
<p>
<label for="{candidate_skype}">{label:candidate_skype}:</label>
<input type="text" name="{candidate_skype}" id="{candidate_skype}" value="{if candidate_skype}{candidate_skype}{/if}" />
</p>
<p>
<label for="{candidate_comms_provider}">{label:candidate_comms_provider}:</label>
<input type="text" name="{candidate_comms_provider}" id="{candidate_comms_provider}" value="{if candidate_comms_provider}{candidate_comms_provider}{/if}" />
</p>
<p>
<label for="{candidate_comms_id}">{label:candidate_comms_id}:</label>
<input type="text" name="{candidate_comms_id}" id="{candidate_comms_id}" value="{if candidate_comms_id}{candidate_comms_id}{/if}" />
</p>
<p>
<label for="{candidate_employment}">{label:candidate_employment}:</label>
<input type="text" name="{candidate_employment}" id="{candidate_employment}" value="{if candidate_employment}{candidate_employment}{/if}" />
</p>
<p>
<label for="candidate_salary_expectation">{label:candidate_salary_expectation}</label>
<select name="candidate_salary_expectation" id="candidate_salary_expectation">
{options:candidate_salary_expectation}
<option value="{option_value}">{option_value}</option>
{/options:candidate_salary_expectation}
</select>
</p>
<p>
<label for="{candidate_educational_background}">{label:candidate_educational_background}:</label>
<textarea name="{candidate_educational_background}" id="{candidate_educational_background}" cols="30" rows="10" value="{if candidate_educational_background}{candidate_educational_background}{/if}"></textarea>
</p>
<p>
<label for="{candidate_skills}">{label:candidate_skills}:</label>
<textarea name="{candidate_skills}" id="{candidate_skills}" cols="30" rows="10" value="{if candidate_skills}{candidate_skills}{/if}"></textarea>
</p>
</fieldset>
<p>
<input class="form-submit btn btn-primary" type="submit" value="Update profile" />
</p>
{/exp:zoo_visitor:update_form}
{if:else}
{!-- Redirect to sign in/register --}
{redirect='account' status_code="301"}
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment