Commit ed3a39a5354921b0f6cc4ceb6221d72e4feb8bbc

Authored by DanielaFeitosa
1 parent a748494a

ActionItem6: Adding views for enterprise


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@173 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/enterprise/choose_validation_entity_or_net.rhtml 0 → 100644
... ... @@ -0,0 +1,6 @@
  1 +<h2><%= _('Choose validation entity or net') %></h2>
  2 +
  3 +list of entities or nets
  4 +
  5 +<p><%= link_to _('Register'), :action => 'create', :enterprise => @enterprise %>
  6 +<%= link_to _('Back'), :action => 'register_form' %> </p>
... ...
app/views/enterprise/register.rhtml 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +<h2><%= _('Information') %></h2>
  2 +
  3 +Informatio about how to proceed
  4 +
  5 +<p><%= link_to 'Next page', :action => 'register_form' %></p>
... ...
app/views/enterprise/register_form.rhtml 0 → 100644
... ... @@ -0,0 +1,36 @@
  1 +
  2 +<%= error_messages_for 'enterprise' %>
  3 +
  4 +<h2><%= _('Register enterprise') %></h2>
  5 +
  6 +<% form_tag :action => 'choose_validation_entity_or_net' do %>
  7 +<p><label for="name"><%= _('Name') %></label><br/>
  8 +<%= text_field 'enterprise', 'name', 'size' => 20 %></p>
  9 +
  10 +<p><label for="address"><%= _('Address') %></label><br/>
  11 +<%= text_field 'enterprise', 'address', 'size' => 50 %></p>
  12 +
  13 +<p><label for="contact_phone"><%= _('Contact Phone') %></label><br/>
  14 +<%= text_field 'enterprise', 'contact_phone', 'size' => 20 %></p>
  15 +
  16 +<p><label for="contact_person"><%= _('Contact Person') %></label><br/>
  17 +<%= text_field 'enterprise', 'contact_person', 'size' => 20 %></p>
  18 +
  19 +<p><label for="acronym"><%= _('Acronym') %></label><br/>
  20 +<%= text_field 'enterprise', 'acronym', 'size' => 20 %></p>
  21 +
  22 +<p><label for="foundation_year"><%= _('Foundation Year') %></label><br/>
  23 +<%= text_field 'enterprise', 'foundation_year', 'size' => 20 %></p>
  24 +
  25 +<p><label for="legal_form"><%= _('Legal Form') %></label><br/>
  26 +<%= text_field 'enterprise', 'legal_form', 'size' => 20 %></p>
  27 +
  28 +<p><label for="economic_activity"><%= _('Economic Activity') %></label><br/>
  29 +<%= text_field 'enterprise', 'economic_activity', 'size' => 20 %></p>
  30 +
  31 +<p><label for="management_information"><%= _('Management Information') %></label><br/>
  32 +<%= text_area 'enterprise', 'management_information', 'cols' => 40, 'rows' => 20 %></p>
  33 +
  34 +<p><%= submit_tag 'Send' %>
  35 +<%= link_to 'Cancel', :action => 'register' %></p>
  36 +<% end %>
... ...