Commit f2dcbb91d7bc6e55c8516b24f0ed8e5931272fef

Authored by AntonioTerceiro
1 parent b48ce2ea

ActionItem114: adding relevant information to the e-mail that is sent to the target



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@850 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 21 additions and 1 deletions   Show diff stats
app/models/create_enterprise.rb
@@ -123,7 +123,27 @@ class CreateEnterprise < Task @@ -123,7 +123,27 @@ class CreateEnterprise < Task
123 end 123 end
124 124
125 def target_notification_message 125 def target_notification_message
126 - _('Enterprise "%{enterprise}" just requested to enter %{environment}. You have to approve or reject it through the "Pending Validations" section in your control panel.') % { :enterprise => self.name, :environment => self.environment } 126 + msg = ""
  127 + msg << _("Enterprise \"%{enterprise}\" just requested to enter %{environment}. You have to approve or reject it through the \"Pending Validations\" section in your control panel.\n") % { :enterprise => self.name, :environment => self.environment }
  128 + msg << "\n"
  129 + msg << _("The data provided by the enterprise was the following:\n") << "\n"
  130 +
  131 +
  132 + msg << (_("Name: %s") % self.name) << "\n"
  133 + msg << (_("Acronym: %s") % self.acronym) << "\n"
  134 + msg << (_("Address: %s") % self.address) << "\n"
  135 + msg << (_("Legal form: %s") % self.foundation_year) << "\n"
  136 + msg << (_("Foundation Year: %d") % self.foundation_year) << "\n"
  137 + msg << (_("Economic activity: %s") % self.economic_activity) << "\n"
  138 +
  139 + msg << _("Information about enterprise's management:\n") << self.management_information.to_s << "\n"
  140 +
  141 + msg << (_("Contact phone: %s") % self.contact_phone) << "\n"
  142 + msg << (_("Contact person: %s") % self.contact_person) << "\n"
  143 +
  144 + msg << _('CreateEnterprise|Identifier')
  145 +
  146 + msg
127 end 147 end
128 148
129 end 149 end