Created
January 26, 2012 18:20
-
-
Save andrebras/1684175 to your computer and use it in GitHub Desktop.
HAML and simple_form
This file contains 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
%h1= content_for :title, DocumentRequest.model_name.human | |
.fieldset | |
= simple_form_for @document_request, :validation => true do |f| | |
= f.input :ExternalDocument | |
= f.input :project_code, disabled: true | |
= f.input :company_name, disabled: true | |
= f.input :comercial_entity_name, disabled: true | |
= f.input :Requested, as: :boolean | |
= f.input :Performed, as: :boolean | |
= f.input :RequestDate, as: :date | |
= f.input :PerformeDate, as: :date | |
= f.input :PrevisionalDate, as: :date | |
= f.input :Local | |
= f.input :City | |
= f.input :PostalCode | |
= f.input :Fax | |
= f.input :Phone | |
= f.input :Email | |
= f.input :Notes, as: :text | |
%p | |
= f.button :submit | |
= link_to 'Cancel', :back |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment