Commit 3a1fbaf90df8f0b9a9bcceef604ba730c63e5bbb

Authored by Álvaro Fernando Matos de Souza
1 parent 72da7728

Refactoring gov_user views

Signed-off-by: Álvaro Fernando <alvarofernandoms@gmail.com>
Signed-off-by: ArthurJahn <stutrzbecher@gmail.com>
views/comments_extra_field.html.erb
1   -<div id="input_institution_comments" class="animated slideInDown">
  1 +<div id="input_institution_comments">
2 2 <%= label_tag "input_institution", _("Organization name or Enterprise name")%>
3 3 <span class="star-tooltip" title="Órgão ou Empresa que você representa e utiliza o software"></span>
4 4 <input type="text" id="input_institution">
... ...
views/gov_user_plugin/_institution.html.erb
... ... @@ -24,10 +24,7 @@
24 24  
25 25 <div>
26 26 <%= labelled_form_for :community, :url => {:action=>"new_institution"}, :html => { :multipart => true, :id=>"institution_form" } do |f| %>
27   - <div class="fields-required">
28   - <span class="errorExplanation"><%= required_fields_message %></span>
29   - </div>
30   - <br/>
  27 + <%= required_fields_message %>
31 28 <%= hidden_field_tag "edit_institution_page", false %>
32 29 <%= fields_for :institutions do |inst| %>
33 30 <span class=''>
... ... @@ -114,7 +111,6 @@
114 111 <% end %>
115 112 </div>
116 113 </span>
117   - <br />
118 114  
119 115 <% if @url_token == "create_institution_admin" %>
120 116 <%= submit_button :save, _('Save') %>
... ...
views/gov_user_plugin_myprofile/edit_institution.html.erb
... ... @@ -23,7 +23,6 @@
23 23 <div class="fields-required">
24 24 <span class="errorExplanation"><%= _("All fields with (*) are mandatory") %></span>
25 25 </div>
26   - <br/>
27 26 <%= labelled_form_for :community,:html => { :multipart => true, :id=>"institution_form" } do |f| %>
28 27 <%= hidden_field_tag "edit_institution_page", true %>
29 28 <%= fields_for :institutions do |inst| %>
... ... @@ -111,7 +110,6 @@
111 110 <% end %>
112 111 </div>
113 112 </span>
114   - <br />
115 113  
116 114 <%= submit_button :save, _('Save') %>
117 115 <% end %>
... ...