cirandas.net

ref: master

plugins/networks/views/networks_plugin_network/join.html.erb


<% if @enterprise.present? %> <%= form_tag params.merge(enterprise_id: @enterprise), onsubmit: 'return networks.join.confirm(this)' do %> <%= t('views.network.join.confirm', enterprise: content_tag('strong', @enterprise.short_name), network: content_tag('strong', profile.short_name), ) %> <%= submit_tag t('views.network.join.submit_yes'), class: 'action-button' %> <%= link_to_function t('views.network.join.submit_no'), 'noosfero.modal.close()' %> <% end %> <% else %> <%= t('views.network.join.choose', network: content_tag('strong', profile.short_name)) %>
    <% @enterprises.each do |enterprise| %>
  • <%= link_to_function enterprise.short_name, 'networks.join.choose(this)', 'data-id' => enterprise.id %>
  • <% end %>
<% end %>
<%= javascript_tag do %> networks.join.url = <%= url_for(params).to_json %> <% end %>