Commit 3acac84750652f4737431845cf830619d1be9dcf
1 parent
c8b1aabb
Exists in
master
and in
22 other branches
ActionItem6: Adding partial 'form'
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@215 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
27 additions
and
27 deletions
Show diff stats
... | ... | @@ -0,0 +1,26 @@ |
1 | +<p><label for="name"><%= _('Name') %></label><br/> | |
2 | +<%= text_field 'enterprise', 'name', 'size' => 20 %></p> | |
3 | + | |
4 | +<p><label for="address"><%= _('Address') %></label><br/> | |
5 | +<%= text_field 'enterprise', 'address', 'size' => 50 %></p> | |
6 | + | |
7 | +<p><label for="contact_phone"><%= _('Contact Phone') %></label><br/> | |
8 | +<%= text_field 'enterprise', 'contact_phone', 'size' => 20 %></p> | |
9 | + | |
10 | +<p><label for="contact_person"><%= _('Contact Person') %></label><br/> | |
11 | +<%= text_field 'enterprise', 'contact_person', 'size' => 20 %></p> | |
12 | + | |
13 | +<p><label for="acronym"><%= _('Acronym') %></label><br/> | |
14 | +<%= text_field 'enterprise', 'acronym', 'size' => 20 %></p> | |
15 | + | |
16 | +<p><label for="foundation_year"><%= _('Foundation Year') %></label><br/> | |
17 | +<%= text_field 'enterprise', 'foundation_year', 'size' => 20 %></p> | |
18 | + | |
19 | +<p><label for="legal_form"><%= _('Legal Form') %></label><br/> | |
20 | +<%= text_field 'enterprise', 'legal_form', 'size' => 20 %></p> | |
21 | + | |
22 | +<p><label for="economic_activity"><%= _('Economic Activity') %></label><br/> | |
23 | +<%= text_field 'enterprise', 'economic_activity', 'size' => 20 %></p> | |
24 | + | |
25 | +<p><label for="management_information"><%= _('Management Information') %></label><br/> | |
26 | +<%= text_area 'enterprise', 'management_information', 'cols' => 40, 'rows' => 20 %></p> | ... | ... |
app/views/enterprise/register_form.rhtml
... | ... | @@ -3,33 +3,7 @@ |
3 | 3 | <h2><%= _('Register enterprise') %></h2> |
4 | 4 | |
5 | 5 | <% form_tag :action => 'register' do %> |
6 | -<p><label for="name"><%= _('Name') %></label><br/> | |
7 | -<%= text_field 'enterprise', 'name', 'size' => 20 %></p> | |
8 | - | |
9 | -<p><label for="address"><%= _('Address') %></label><br/> | |
10 | -<%= text_field 'enterprise', 'address', 'size' => 50 %></p> | |
11 | - | |
12 | -<p><label for="contact_phone"><%= _('Contact Phone') %></label><br/> | |
13 | -<%= text_field 'enterprise', 'contact_phone', 'size' => 20 %></p> | |
14 | - | |
15 | -<p><label for="contact_person"><%= _('Contact Person') %></label><br/> | |
16 | -<%= text_field 'enterprise', 'contact_person', 'size' => 20 %></p> | |
17 | - | |
18 | -<p><label for="acronym"><%= _('Acronym') %></label><br/> | |
19 | -<%= text_field 'enterprise', 'acronym', 'size' => 20 %></p> | |
20 | - | |
21 | -<p><label for="foundation_year"><%= _('Foundation Year') %></label><br/> | |
22 | -<%= text_field 'enterprise', 'foundation_year', 'size' => 20 %></p> | |
23 | - | |
24 | -<p><label for="legal_form"><%= _('Legal Form') %></label><br/> | |
25 | -<%= text_field 'enterprise', 'legal_form', 'size' => 20 %></p> | |
26 | - | |
27 | -<p><label for="economic_activity"><%= _('Economic Activity') %></label><br/> | |
28 | -<%= text_field 'enterprise', 'economic_activity', 'size' => 20 %></p> | |
29 | - | |
30 | -<p><label for="management_information"><%= _('Management Information') %></label><br/> | |
31 | -<%= text_area 'enterprise', 'management_information', 'cols' => 40, 'rows' => 20 %></p> | |
32 | - | |
6 | + <%= render :partial => 'form' %> | |
33 | 7 | <p><%= submit_tag _('Register') %> |
34 | 8 | <%= link_to _('Cancel'), :action => 'index' %></p> |
35 | 9 | <% end %> | ... | ... |