Skip to content

@YOUConsulting /Index.html.erb secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Render of image_tag
<label>
<%= render_profile_image(form_data.by_name("PROFILE_PIC"), "Profile picture","Profile picture") %>
</label>
def render_profile_image(field, alt, title)
image_tag(Base64::decode64(field_value), :alt => "profile_pic",:id => "profile_pic")
end
<div class="twelve columns">
<%= render_flashes %>
<div class="row">
<!-- Big page title -->
<% if @job %>
<h2 class="headingBig"> <%= t("apply.index.heading", :name => @job.header) %></h2>
<% else %>
<h2 class="headingBig">Je solliciteert voor Junior HR partner</h2>
<% end %>
<div class="sidebar wide">
<h2 class="headingMedium"><%= t("apply.index.about_this_job") %></h2>
<div class="border">
<ul class="jobDetails clearfix">
<%= render_job_detail_li_item(@job, "end_date") {|date| l(date)}%>
<%= render_job_detail_li_item(@job, "reference")%>
<%= render_job_detail_li_item(@job, "type")%>
<%= render_job_detail_li_item(@job, "employment_fraction")%>
<%= render_job_detail_li_item(@job, "country")%>
<%= render_job_detail_li_item(@job, "salary")%>
<li>
<h3><%= t("jobs.show.sidebar.contact") %></h3>
<p><%= @job.person %><br /><%= mail_to @job.email %><br /><%= @job.phone%></p>
</li>
</ul>
</div>
</div> <!-- /.sidebar.right -->
</div>
<div class="row">
<div class="twelve columns">
<%= form_tag job_apply_index_path(@job.sap_id), :class => "apply", :multipart => true do %>
<%#
#
# Personal Info
#
%>
<%= render_numbered_header(t("apply.create.heading.personal_info")) %>
<div class="collapsable">
<% if @user.personal_info.errors.any? %>
<div id="errorExplanation">
<div id="errorTitle">
<h2><%= t("validation_header", :errors => pluralize(@user.personal_info.errors.count, "error")) %></h2>
</div>
<ul>
<% @user.personal_info.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<fieldset>
<%= render :partial => "personal_info", :locals => {:form_data => @user.personal_info_form} %>
</fieldset>
</div>
</div>
<div id="quickSignin" style="display: none;">
<div id="wrap">
<h1><%= t :header, :scope => [:quick_sign_in, :index] %></h1>
<%= form_for(User.new, :url => user_session_path(:format => :html), :html => {:id => "myform"}, :remote => true) do |f| %>
<label>
<%= f.label :email %>
<%= f.text_field :email %>
</label>
<label>
<%= f.label :password %>
<%= f.password_field :password %>
</label>
<%= f.submit t("account.sign_in"), :class => "nice small blue button" %>
<%= f.submit t("account.cancel"), :class => "nice small red button", :id => "cancelBtn" %>
<% end %>
</div>
</div>
<% unless current_user or session[:box_shown] or session[:atoken] %>
<% session[:box_shown] = 1 %>
<script>
/* Lightbox (RVG, 30-08-2012) */
$(document).ready(function() {
// Closes the form after cancel.
$("#cancelBtn").bind('click', function(e) {
e.preventDefault();
$.fancybox.close();
});
$('#myform').bind('ajax:success', function(evt, data, status, xhr){
location.reload();
});
$('#myform').bind('ajax:error', function(evt, data, status, xhr){
$.fancybox.close();
});
$.fancybox.open([
{
href : '#quickSignin'
}
], {
type : 'inline',
padding : 10,
minHeight : 350,
afterClose: function(){
}
});
});
</script>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.