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