Commit 3a1fbaf90df8f0b9a9bcceef604ba730c63e5bbb

Authored by Álvaro Fernando Matos de Souza
1 parent 72da7728
Exists in master and in 79 other branches add_sisp_to_chef, add_super_archives_plugin, api_for_colab, automates_core_packing, backup_not_prod, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, colab_widgets_settings, design_validation, dev_env_minimal, disable_email_dev, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_edit_software_with_another_license, fix_get_license_info, fix_gitlab_assets_permission, fix_list_style_inside_article, fix_list_style_on_folder_elements, fix_members_pagination, fix_merge_request_url, fix_models_translations, fix_no_license, fix_software_api, fix_software_block_migration, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, fix_superarchives_imports, fix_sym_links_noosfero, focus_search_field_theme, gov-user-refactoring, gov-user-refactoring-rails4, header_fix, institution_modal_on_rating, kalibro-conf-refactoring, kalibro-processor-package, lxc_settings, margin_fix, mezuro_cookbook, prezento, refactor_download_block, refactor_software_communities, refactor_software_for_sisp, register_page, release-process, release-process-v2, remove-unused-images, remove_broken_theme, remove_secondary_email_from_user, remove_sisp_buttons, removing_super_archives_email, review_message, scope2method, signals_user_noosfero, sisp_catalog_header, sisp_colab_config, sisp_dev, sisp_dev_master, sisp_simple_version, software_as_organization, software_catalog_style_fix, software_communities_html_refactor, software_infos_api, spb_minimal_env, spb_to_rails4, spec_refactor, stable-4.1, stable-4.2, stable-4.x, temp_soft_comm_refactoring, theme_header, theme_javascript_refactory, thread_dropdown, thread_page, update_search_by_categories, update_software_api, update_softwares_boxes

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 %>
... ...