Created
August 1, 2013 08:10
-
-
Save kmelkon/6129407 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="content pull-left"> | |
<h2><%= @company.name %></h2> | |
<%= link_to "edit company", edit_company_path %> | |
<div class="margin-bottom"> | |
<% for phone in @company.phone_numbers %> | |
<li><%= phone.number %> (<%= phone.place %>)</li> | |
<% end %> | |
</div> | |
<ul class="nav nav-tabs margin-top" id="company-tab"> | |
<li class="active"><a href="#go-to-contacts" data-toggle="tab">Contacts</a></li> | |
<li><a href="#go-to-deals" data-toggle="tab">Deals</a></li> | |
<!-- <li> <%= link_to 'Deals', new_company_deal_path(@company), 'data-toggle' => 'tab'%></li> --> | |
<li><a href="#activities" data-toggle="tab">Activities</a></li> | |
</ul> | |
<div class="tab-content"> | |
<div class="tab-pane active in" id="go-to-contacts"> | |
<div> | |
<button class="btn btn-small btn-info" type="button">Select All</button> | |
<button class="btn btn-small btn-info" type="button">Delete</button> | |
<%= link_to "Add a person to this company", href="#new-contact-form", :class=>"pull-right inline"%> | |
</div> | |
<div class="x"> | |
<% for contact in @company.contacts %> | |
<div class="contact-card"> | |
<ul> | |
<%= link_to(company_contact_path(@company,contact)) do %> | |
<li><%= contact.first_name %> <%= contact.last_name %></li> | |
<% end %> | |
<li><%= contact.email %></li> | |
<% for phone in contact.phone_numbers %> | |
<li><%= phone.number %> (<%= phone.place %>)</li> | |
<% end %> | |
</ul> | |
</div> | |
<%= cycle('','<div class="clearfix"></div>'.html_safe, :name=>"clearfix") %> | |
<% end %> | |
</div> | |
</div> | |
<div class="tab-pane fade" id="go-to-deals"> | |
<div class="deals-wrapper"> | |
<% for deal in @company.deals %> | |
<div class="deal"> | |
<ul> | |
<li><%= deal.value %></li> | |
<li><%= deal.background %></li> | |
</ul> | |
</div> | |
<% end %> | |
</div> | |
<div class="hide"> | |
<div id="new-deal-form" > | |
<%= render 'deals/new_deal' %> | |
</div> | |
</div> | |
<div> | |
<% if @company.deals.blank? %> | |
<%= link_to "Add a deal", href="#new-deal-form", class: "pull-right inline" %> | |
<% else %> | |
<%= render 'deals/new_deal' %> | |
<% end %> | |
</div> | |
</div> | |
</div> | |
<!-- <div> | |
<button class="btn btn-small btn-info" type="button">Select All</button> | |
<button class="btn btn-small btn-info" type="button">Delete</button> | |
<%= link_to "Add a person to this company", href="#new-contact-form", :class=>"pull-right inline"%> | |
</div> --> | |
<div class="hide"> | |
<div id="new-contact-form"> | |
<%= render :partial => "contacts/newcontactform", :locals => {:contact => Contact.new} %> | |
</div> | |
</div> | |
</div> | |
<div class="sidebar pull-right"> | |
<div class="well sidebar-width margin-right"> | |
<%= link_to "Add a task", new_company_task_path(@company), :class=>'toggle' %> | |
<%= render "tasks/addtask" %> | |
<div id="tasklist"> | |
<%= render "tasks/tasklist", :current_task=>@tasks %> | |
</div> | |
</div> | |
</div> | |
<div class="clearfix"></div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment