Last active
August 29, 2015 13:55
-
-
Save joelbrewer/8713762 to your computer and use it in GitHub Desktop.
new project 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 New Project | |
= form_for @project do |f| | |
= render 'shared/error_messages', object: f.object | |
%div | |
= f.label :title | |
= f.text_field :title | |
%div | |
= f.label :contact_name | |
= f.text_field :contact_name | |
%div | |
= f.label :email_address | |
= f.text_field :email_address | |
%div | |
= f.label :phone_number | |
= f.text_field :phone_number | |
%div | |
= f.label :description | |
= f.text_field :description | |
%div | |
= f.label :category | |
= collection_select(:project, :category, ProjectCategory.all, :key_name, :pluralized_name, prompt: true) | |
%div | |
= f.label :sub_category | |
= collection_select(:project, :sub_category, ProjectSubCategory.all, :key_name, :description, prompt: true) | |
= f.submit "Create Project" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment