From de00280f345260d08c48cd50a0c1fd8639c7cac5 Mon Sep 17 00:00:00 2001 From: David Carlos Date: Tue, 14 Oct 2014 13:44:51 +0000 Subject: [PATCH] correcoes_aderencia: Adds intitutions create button in edit view. --- views/person_editor_extras.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/views/person_editor_extras.html.erb b/views/person_editor_extras.html.erb index 3b319b4..8b0f87b 100644 --- a/views/person_editor_extras.html.erb +++ b/views/person_editor_extras.html.erb @@ -19,6 +19,9 @@ <%= content_tag(:div, _("No institution found"), :id=>"institution_empty_ajax_message", :class=>"errorExplanation hide-field") %> <%= link_to(_("Add new institution"), "#", :class=>'button with-text icon-add', :id => 'add_new_institution') %> + <%= link_to(_("Create new institution"), "#", :id=>"create_institution_link", :class=>'button with-text icon-add') %> + <%= content_tag("ul", "",:class=>"institutions_added") %> + <%= content_tag(:div, "", :id=>"institution_dialog") %> <%= hidden_field_tag("user[institution_ids][]", "", :class => 'user_institutions') %> <%= hidden_field_tag("institution_selected", "") %> @@ -36,4 +39,4 @@ <%= hidden_field_tag("full_name_error", _("Should begin with a capital letter and no special characters")) %> <%= hidden_field_tag("email_error", _("Email should have the following format: name@host.br")) %> <%= hidden_field_tag("site_error", _("Site should have a valid format: http://name.hosts")) %> -
<%= _("If you work in a public agency use your government e-Mail") %>
\ No newline at end of file +
<%= _("If you work in a public agency use your government e-Mail") %>
-- libgit2 0.21.2