webdev.camp/app/views/resumes/progress.html.haml

33 lines
1.0 KiB
Plaintext

- if @resume.percent == 100
- if current_user.application
.callout.alert.alert-default.margin-top-50.margin-bottom-50
.row
.col-md-8.col-sm-8
%h4
Your Application has been submitted, see it
= link_to "here" , application_path
- else
.callout.alert.alert-default.margin-top-50.margin-bottom-50
.row
.col-md-8.col-sm-8
%h4
You can now apply for specific dates.
.col-md-4.col-sm-4.text-right
= link_to "APPLY" , application_path , class: "btn btn-primary"
- else
%h4.margin-top-50
Tell us about yourself and why you want to become a developer.
%p
Click on the fields to edit.
While editing, clicking outside the box cancels.
.progress
.progress-bar{ "aria-valuemax" => "100",
"aria-valuemin" => "0",
"aria-valuenow" => "#{@resume.percent}",
:role => "progressbar",
:style => "width: #{@resume.percent}%; min-width: 2em;"}
=@resume.percent
\%