Sha256: 65e40067ef0cf11e8f839d07010496f730a32e9872eff6e21f5b38c466ca1b0f

Contents?: true

Size: 1.43 KB

Versions: 284

Compression:

Stored size: 1.43 KB

Contents

<style type='text/css'>
#search_form_wrapper { margin-bottom: 10px; position: absolute; top:0; right: 0; }
</style>

<h1>Offices</h1>

<div id='search_form_wrapper'>
  <form action='/admin/offices' method='get' id='search_form'>    
    <input type='text' name='lo_name_like' placeholder='Name' value="<%= @gen.params['lo_name_like'] %>" style='width: 100px;' />    
    <input type='submit' value='Search' />
  </form>
</div>

<% if @offices.count > 0 %>
  <table class='data' id='agents_table'>
    <tr>
      <%= raw @gen.sortable_table_headings({
          'lo_code' 	=> 'Office Code',
          'lo_name' 	=> 'Name',          
          'lo_email' 	=> 'Email',                                                  
          'lo_phone' 	=> 'Phone',
          'lo_status' => 'Status'
  			})
  		%>
    </tr>
    <% @offices.each do |office| %>
      <tr onclick="window.location='/admin/offices/<%= office.id %>';">
        <td><%= office.lo_code    %></td>
        <td><%= office.lo_name    %></td>      
        <td><%= office.lo_email   %></td>                                               
        <td><%= office.lo_phone   %></td>
        <td><%= office.lo_status  %></td>
      </tr>
    <% end %>
  </table>
  <p><%= raw @gen.generate %></p>
<% else %>
  <p>No offices met your search.</p>
<% end %>

<% content_for :caboose_js do %>
<script type='text/javascript'>
$(document).ready(function() {  
  var modal = new CabooseModal(800);
});
</script>
<% end %>

Version data entries

284 entries across 284 versions & 1 rubygems

Version Path
caboose-rets-0.1.214 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.213 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.212 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.211 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.210 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.209 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.208 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.207 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.206 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.205 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.204 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.203 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.202 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.201 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.200 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.199 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.198 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.197 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.196 app/views/caboose_rets/offices/admin_index.html.erb
caboose-rets-0.1.195 app/views/caboose_rets/offices/admin_index.html.erb