From 3acac84750652f4737431845cf830619d1be9dcf Mon Sep 17 00:00:00 2001 From: DanielaFeitosa Date: Mon, 30 Jul 2007 20:03:33 +0000 Subject: [PATCH] ActionItem6: Adding partial 'form' --- app/views/enterprise/_form.rhtml | 26 ++++++++++++++++++++++++++ app/views/enterprise/register_form.rhtml | 28 +--------------------------- 2 files changed, 27 insertions(+), 27 deletions(-) create mode 100644 app/views/enterprise/_form.rhtml diff --git a/app/views/enterprise/_form.rhtml b/app/views/enterprise/_form.rhtml new file mode 100644 index 0000000..cb90225 --- /dev/null +++ b/app/views/enterprise/_form.rhtml @@ -0,0 +1,26 @@ +


+<%= text_field 'enterprise', 'name', 'size' => 20 %>

+ +


+<%= text_field 'enterprise', 'address', 'size' => 50 %>

+ +


+<%= text_field 'enterprise', 'contact_phone', 'size' => 20 %>

+ +


+<%= text_field 'enterprise', 'contact_person', 'size' => 20 %>

+ +


+<%= text_field 'enterprise', 'acronym', 'size' => 20 %>

+ +


+<%= text_field 'enterprise', 'foundation_year', 'size' => 20 %>

+ +


+<%= text_field 'enterprise', 'legal_form', 'size' => 20 %>

+ +


+<%= text_field 'enterprise', 'economic_activity', 'size' => 20 %>

+ +


+<%= text_area 'enterprise', 'management_information', 'cols' => 40, 'rows' => 20 %>

diff --git a/app/views/enterprise/register_form.rhtml b/app/views/enterprise/register_form.rhtml index eecc05f..5e8c563 100644 --- a/app/views/enterprise/register_form.rhtml +++ b/app/views/enterprise/register_form.rhtml @@ -3,33 +3,7 @@

<%= _('Register enterprise') %>

<% form_tag :action => 'register' do %> -


-<%= text_field 'enterprise', 'name', 'size' => 20 %>

- -


-<%= text_field 'enterprise', 'address', 'size' => 50 %>

- -


-<%= text_field 'enterprise', 'contact_phone', 'size' => 20 %>

- -


-<%= text_field 'enterprise', 'contact_person', 'size' => 20 %>

- -


-<%= text_field 'enterprise', 'acronym', 'size' => 20 %>

- -


-<%= text_field 'enterprise', 'foundation_year', 'size' => 20 %>

- -


-<%= text_field 'enterprise', 'legal_form', 'size' => 20 %>

- -


-<%= text_field 'enterprise', 'economic_activity', 'size' => 20 %>

- -


-<%= text_area 'enterprise', 'management_information', 'cols' => 40, 'rows' => 20 %>

- + <%= render :partial => 'form' %>

<%= submit_tag _('Register') %> <%= link_to _('Cancel'), :action => 'index' %>

<% end %> -- libgit2 0.21.2