Sha256: c33591afa6877a55d5a2fb0e6ef995bbf7de2a0e143ffef417728f0e100a1486

Contents?: true

Size: 1.54 KB

Versions: 2

Compression:

Stored size: 1.54 KB

Contents

.contextual
  = icon_link_to :pdf, :format => :pdf
  = icon_link_to :show

%h1= resource.title
.box
  %table{:style => "width: 100%"}
    %tr
      %th= t_attr(:customer, Invoice)
      %td= link_to(full_address(resource.customer.vcard, ', '), resource.customer)
      %th= t_attr(:company, Invoice)
      %td= link_to(full_address(resource.company.vcard, ', '), resource.company)
    %tr
      %th= t_attr(:state, Invoice)
      %td#invoice_state=t resource.state, :scope => 'invoice.state'
    %tr
      %th= t_attr(:duration_from, Invoice)
      %td= l(resource.duration_from) if resource.duration_from
      %th= t_attr(:duration_to, Invoice)
      %td= l(resource.duration_to) if resource.duration_to

.contextual
  = form_tag new_direct_booking_path(:direct_booking => {:reference_id => resource.id, :reference_type => resource_class.base_class}), :method => :get, :remote => true do
    = collection_select :direct_booking, :booking_template_id, BookingTemplate.by_type(resource_class.name.underscore), :id, :title
    = submit_tag t_action('new')

%h3= Account.find_by_code("2050").title
- @direct_account = Account.find_by_code("2050")
#salary_payment_booking_list
  = render 'direct_bookings/list', :reference => resource

%h3= Account.find_by_code("5000").title
- @direct_account = Account.find_by_code("5000")
#salary_payment_booking_list
  = render 'direct_bookings/list', :reference => resource

%h3= Account.find_by_code("5700").title
- @direct_account = Account.find_by_code("5700")
#salary_booking_list
  = render 'direct_bookings/list', :reference => resource

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
bookyt-0.0.1 app/views/salaries/payslip.html.haml
bookyt_salary-0.2.1 app/views/salaries/payslip.html.haml