cirandas.net

ref: master

app/views/region_validators/region.html.erb


<%= _('Validators for region %s') % @region.name %>

<%= _('Current validators') %>

    <% for validator in @region.validators %>
  • <%= link_to_homepage validator.name, validator %> <%= link_to _('Remove validation rights'), { :action => 'remove', :id => @region.id, :validator_id => validator }, :method => 'post' %>
  • <% end %>

<%= _('Add new validators') %>

<%= help _('First search organizations by their name, then use the buttons in the search result to add them as validators for this region. ') %>

<%= form_tag({}, { :method => 'get' }) do %> <%= text_field_tag :search, nil, :id => 'search_validator' %> <%= button_bar do %> <%= submit_button('search', _('Search')) %> <% end %> <% end %> <%= observe_field 'search_validator', :url => { :action => 'search', :id => @region.id }, :with => 'search', :frequency => 1, :update => 'search_results' %>
<%= render :partial => 'search' %>