Created
October 24, 2014 04:43
-
-
Save tinnguyenz/a77a8846be2c48244aea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%legend.clearfix | |
.section= t('clientsheet.financial_statement') | |
= link_to "Valider", "javascript://", :class => "button medium", :id => "fs-validate" | |
.dot-bar | |
.fs-inner | |
%span.error{:style => "color: red;font-size: 12px;margin-left: -85px;"}= object.errors[:financial_statements] | |
= nested_form_for(object, :url => project_financial_statement_path(object.project), :html => {:class => "simple_form", :id => "financial-statement-form"}) do |f| | |
= hidden_field_tag :target, target | |
= hidden_field_tag :target_id, object.id | |
= f.hidden_field :dummy, :value => false | |
.input.clearfix | |
= f.label :name, t("project.projects.name"), :class => "project" | |
= f.text_field :name, :class => "project" | |
.input.clearfix | |
= f.label :service_id, t("servicesheet.provider"), :class => "project" | |
= f.select :service_id, options_for_service(object), :class => "project" | |
.input.clearfix | |
%span.icon.icon-status.icon-info | |
%span.instruction | |
= I18n.t("project.projects.add_service_provider_instruction") | |
= mail_to(I18n.t("project.projects.add_service_provider_responsible")) | |
= f.simple_fields_for :financial_statements do |fs| | |
= render :partial => "project/pgi_service_sheets/financial_statement_fields", | |
:locals => {:financial_statements => f.object.financial_statements, :f => fs} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment