bookyt 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/images/16x16/add.png +0 -0
- data/app/assets/images/16x16/alert.png +0 -0
- data/app/assets/images/16x16/combolink.png +0 -0
- data/app/assets/images/16x16/copy.png +0 -0
- data/app/assets/images/16x16/delete.png +0 -0
- data/app/assets/images/16x16/edit.png +0 -0
- data/app/assets/images/16x16/filter.png +0 -0
- data/app/assets/images/16x16/index.png +0 -0
- data/app/assets/images/16x16/notice.png +0 -0
- data/app/assets/images/16x16/pdf.png +0 -0
- data/app/assets/images/16x16/print.png +0 -0
- data/app/assets/images/16x16/show.png +0 -0
- data/app/assets/images/22x22/arrow-right.png +0 -0
- data/app/assets/images/22x22/edit.png +0 -0
- data/app/assets/images/22x22/insert_booking.png +0 -0
- data/app/assets/images/22x22/remove.png +0 -0
- data/app/assets/images/32x32/edit.png +0 -0
- data/app/assets/images/32x32/remove.png +0 -0
- data/app/assets/images/48x48/accounting.png +0 -0
- data/app/assets/images/48x48/basic_claims_data.png +0 -0
- data/app/assets/images/48x48/contacts.png +0 -0
- data/app/assets/images/48x48/invoicing.png +0 -0
- data/app/assets/images/48x48/nav_users.png +0 -0
- data/app/assets/images/48x48/settings.png +0 -0
- data/app/assets/images/48x48/store.png +0 -0
- data/app/assets/images/button_bg.png +0 -0
- data/app/assets/images/crystal-icons/16x16/filter.png +0 -0
- data/app/assets/images/down.png +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/flavour-extended/48x48/invoice.png +0 -0
- data/app/assets/images/free-business-desktop-icons/48x48/business.png +0 -0
- data/app/assets/images/gnome-web-icons/48x48/Gnome-X-Office-Address-Book-48.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_75_759fcf_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_85_aeb9cf_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_gloss-wave_55_aeb9cf_500x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_inset-hard_100_759fcf_1x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_inset-hard_100_f6f6f6_1x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_217bc0_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_469bdd_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_6da8d5_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_d8e7f3_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_f9bd01_256x240.png +0 -0
- data/app/assets/images/jquery/tooltip/black_arrow.png +0 -0
- data/app/assets/images/letter-logo.alpha.png +0 -0
- data/app/assets/images/letter-logo.big.png +0 -0
- data/app/assets/images/letter-logo.orig.png +0 -0
- data/app/assets/images/letter-logo.png +0 -0
- data/app/assets/images/loading.gif +0 -0
- data/app/assets/images/logo.png +0 -0
- data/app/assets/images/oxygen-icons/16x16/application-pdf.png +0 -0
- data/app/assets/images/oxygen-icons/16x16/document-preview.png +0 -0
- data/app/assets/images/oxygen-icons/16x16/document-print.png +0 -0
- data/app/assets/images/oxygen-icons/16x16/edit-copy.png +0 -0
- data/app/assets/images/oxygen-icons/16x16/go-next.png +0 -0
- data/app/assets/images/oxygen-icons/16x16/mail-mark-notjunk.png +0 -0
- data/app/assets/images/oxygen-icons/16x16/status_unknown.png +0 -0
- data/app/assets/images/oxygen-icons/48x48/system-users.png +0 -0
- data/app/assets/images/rails.png +0 -0
- data/app/assets/images/up.png +0 -0
- data/app/assets/javascripts/application.js +49 -0
- data/app/assets/javascripts/cyt.js +86 -0
- data/app/assets/javascripts/jquery-ui.js +11437 -0
- data/app/assets/javascripts/jquery.dirtyform.js +242 -0
- data/app/assets/javascripts/jquery.form.js +785 -0
- data/app/assets/javascripts/jquery.js +8936 -0
- data/app/assets/javascripts/jquery.meio.mask.js +683 -0
- data/app/assets/javascripts/jquery.remotipart.js +46 -0
- data/app/assets/javascripts/jquery.ui.combobox.js +77 -0
- data/app/assets/javascripts/jquery_ujs.js +316 -0
- data/app/assets/javascripts/nested_form.js +51 -0
- data/app/assets/javascripts/tooltip.js +343 -0
- data/app/assets/stylesheets/.gitkeep +0 -0
- data/app/assets/stylesheets/ie.scss +16 -0
- data/app/assets/stylesheets/ie6.scss +4 -0
- data/app/assets/stylesheets/partials/_base.sass +39 -0
- data/app/assets/stylesheets/partials/_content.sass +60 -0
- data/app/assets/stylesheets/partials/_jquery.sass +2 -0
- data/app/assets/stylesheets/partials/_layout.sass +21 -0
- data/app/assets/stylesheets/partials/_sidebar.sass +5 -0
- data/app/assets/stylesheets/partials/content/_accounting.sass +41 -0
- data/app/assets/stylesheets/partials/content/_ajax_indicator.sass +28 -0
- data/app/assets/stylesheets/partials/content/_app.sass +43 -0
- data/app/assets/stylesheets/partials/content/_combobox.sass +8 -0
- data/app/assets/stylesheets/partials/content/_cyt.sass +200 -0
- data/app/assets/stylesheets/partials/content/_fancy_buttons.sass +10 -0
- data/app/assets/stylesheets/partials/content/_flash_errors.sass +46 -0
- data/app/assets/stylesheets/partials/content/_form_view.sass +20 -0
- data/app/assets/stylesheets/partials/content/_icons.sass +35 -0
- data/app/assets/stylesheets/partials/content/_invoice.sass +6 -0
- data/app/assets/stylesheets/partials/content/_overview.sass +40 -0
- data/app/assets/stylesheets/partials/content/_pagination.sass +61 -0
- data/app/assets/stylesheets/partials/content/_person.sass +5 -0
- data/app/assets/stylesheets/partials/content/_scaffold.sass +67 -0
- data/app/assets/stylesheets/partials/content/_table_list.sass +26 -0
- data/app/assets/stylesheets/partials/content/formtastic/_formtastic.sass +201 -0
- data/app/assets/stylesheets/partials/content/formtastic/_formtastic_cyt.sass +90 -0
- data/app/assets/stylesheets/partials/formtastic/_custom_fields.sass +2 -0
- data/app/assets/stylesheets/partials/formtastic/_formtastic_base.sass +652 -0
- data/app/assets/stylesheets/partials/jquery/_jquery_ui.sass +1461 -0
- data/app/assets/stylesheets/partials/jquery/_tooltip.sass +21 -0
- data/app/assets/stylesheets/partials/layout/_header.sass +29 -0
- data/app/assets/stylesheets/partials/layout/_navigation.sass +2 -0
- data/app/assets/stylesheets/partials/layout/navigation/_main.sass +34 -0
- data/app/assets/stylesheets/partials/layout/navigation/_sidebar.sass +18 -0
- data/app/assets/stylesheets/partials/print/_app.sass +21 -0
- data/app/assets/stylesheets/partials/print/_layout.sass +24 -0
- data/app/assets/stylesheets/print.scss +5 -0
- data/app/assets/stylesheets/screen.scss +12 -0
- data/app/controllers/account_types_controller.rb +2 -0
- data/app/controllers/accounts_controller.rb +30 -0
- data/app/controllers/application_controller.rb +12 -0
- data/app/controllers/attachments_controller.rb +15 -0
- data/app/controllers/authorized_controller.rb +24 -0
- data/app/controllers/bank_accounts_controller.rb +2 -0
- data/app/controllers/booking_imports_controller.rb +2 -0
- data/app/controllers/booking_templates_controller.rb +8 -0
- data/app/controllers/bookings_controller.rb +64 -0
- data/app/controllers/charge_booking_templates_controller.rb +2 -0
- data/app/controllers/charge_rates_controller.rb +2 -0
- data/app/controllers/companies_controller.rb +8 -0
- data/app/controllers/credit_invoices_controller.rb +29 -0
- data/app/controllers/customers_controller.rb +12 -0
- data/app/controllers/debit_invoices_controller.rb +43 -0
- data/app/controllers/direct_bookings_controller.rb +17 -0
- data/app/controllers/employees_controller.rb +3 -0
- data/app/controllers/employments_controller.rb +2 -0
- data/app/controllers/invoices_controller.rb +21 -0
- data/app/controllers/notes_controller.rb +34 -0
- data/app/controllers/overview_controller.rb +6 -0
- data/app/controllers/people_controller.rb +13 -0
- data/app/controllers/salaries_controller.rb +46 -0
- data/app/controllers/tenants_controller.rb +39 -0
- data/app/controllers/users_controller.rb +26 -0
- data/app/helpers/application_helper.rb +52 -0
- data/app/helpers/booking_helper.rb +10 -0
- data/app/helpers/booking_template_helper.rb +17 -0
- data/app/helpers/charge_rate_helper.rb +5 -0
- data/app/helpers/invoice_helper.rb +9 -0
- data/app/helpers/vat_rate_helper.rb +10 -0
- data/app/inputs/combobox_input.rb +23 -0
- data/app/inputs/date_field_input.rb +5 -0
- data/app/inputs/hour_field_input.rb +5 -0
- data/app/models/ability.rb +34 -0
- data/app/models/attachment.rb +13 -0
- data/app/models/booking_import.rb +8 -0
- data/app/models/booking_import_observer.rb +7 -0
- data/app/models/booking_reference.rb +4 -0
- data/app/models/booking_template.rb +92 -0
- data/app/models/charge_booking_template.rb +57 -0
- data/app/models/charge_rate.rb +30 -0
- data/app/models/civil_status.rb +5 -0
- data/app/models/company.rb +5 -0
- data/app/models/credit_invoice.rb +32 -0
- data/app/models/customer.rb +4 -0
- data/app/models/debit_invoice.rb +24 -0
- data/app/models/employee.rb +6 -0
- data/app/models/employment.rb +28 -0
- data/app/models/invoice.rb +145 -0
- data/app/models/line_item.rb +22 -0
- data/app/models/note.rb +8 -0
- data/app/models/person.rb +65 -0
- data/app/models/product.rb +2 -0
- data/app/models/profit.rb +9 -0
- data/app/models/religion.rb +5 -0
- data/app/models/role.rb +9 -0
- data/app/models/salary.rb +93 -0
- data/app/models/tenant.rb +43 -0
- data/app/models/user.rb +44 -0
- data/app/models/vat_rate.rb +11 -0
- data/app/uploaders/attachment_uploader.rb +12 -0
- data/app/views/account_types/_account_type.html.haml +6 -0
- data/app/views/account_types/_form.html.haml +7 -0
- data/app/views/account_types/_list.html.haml +7 -0
- data/app/views/account_types/index.html.haml +6 -0
- data/app/views/account_types/show.html.haml +6 -0
- data/app/views/accounts/_account.html.haml +12 -0
- data/app/views/accounts/_booking_item.html.haml +15 -0
- data/app/views/accounts/_booking_list.html.haml +19 -0
- data/app/views/accounts/_booking_list_footer.html.haml +2 -0
- data/app/views/accounts/_booking_list_header.html.haml +8 -0
- data/app/views/accounts/_booking_list_paginate.html.haml +5 -0
- data/app/views/accounts/_booking_list_saldo.html.haml +8 -0
- data/app/views/accounts/_booking_list_turnover.html.haml +9 -0
- data/app/views/accounts/_carry_booking.html.haml +9 -0
- data/app/views/accounts/_form.html.haml +10 -0
- data/app/views/accounts/_list_footer.html.haml +2 -0
- data/app/views/accounts/_list_header.html.haml +5 -0
- data/app/views/accounts/index.html.haml +8 -0
- data/app/views/accounts/show.html.haml +10 -0
- data/app/views/application/_form.html.haml +7 -0
- data/app/views/application/_list.html.haml +15 -0
- data/app/views/application/_search_form.html.haml +5 -0
- data/app/views/application/_show.html.haml +2 -0
- data/app/views/application/create.js.erb +3 -0
- data/app/views/application/destroy.js.erb +2 -0
- data/app/views/application/edit.html.haml +5 -0
- data/app/views/application/edit.js.erb +3 -0
- data/app/views/application/index.html.haml +7 -0
- data/app/views/application/new.html.haml +5 -0
- data/app/views/application/new.js.erb +3 -0
- data/app/views/application/show.html.haml +5 -0
- data/app/views/application/update.js.erb +3 -0
- data/app/views/attachments/_attachment.html.haml +5 -0
- data/app/views/attachments/_form.html.haml +15 -0
- data/app/views/attachments/_list.html.haml +6 -0
- data/app/views/bank_accounts/_bank_account.html.haml +1 -0
- data/app/views/booking_imports/_booking_import.html.haml +5 -0
- data/app/views/booking_imports/_form.html.haml +6 -0
- data/app/views/booking_imports/_list.html.haml +7 -0
- data/app/views/booking_imports/create.js.erb +4 -0
- data/app/views/booking_imports/index.html.haml +6 -0
- data/app/views/booking_imports/show.html.haml +6 -0
- data/app/views/booking_templates/_booking_template.html.haml +16 -0
- data/app/views/booking_templates/_form.html.haml +12 -0
- data/app/views/booking_templates/_list.html.haml +10 -0
- data/app/views/booking_templates/index.html.haml +6 -0
- data/app/views/bookings/_booking.html.haml +17 -0
- data/app/views/bookings/_form.html.haml +14 -0
- data/app/views/bookings/_list.html.haml +11 -0
- data/app/views/bookings/_new_form.html.haml +8 -0
- data/app/views/bookings/_sidebar.html.haml +7 -0
- data/app/views/bookings/_simple_form.html.haml +12 -0
- data/app/views/bookings/index.html.haml +9 -0
- data/app/views/bookings/new.html.haml +8 -0
- data/app/views/bookings/select.html.haml +11 -0
- data/app/views/bookings/show.html.haml +27 -0
- data/app/views/bookings/simple_edit.html.haml +4 -0
- data/app/views/charge_booking_templates/_charge_booking_template.html.haml +15 -0
- data/app/views/charge_booking_templates/_form.html.haml +12 -0
- data/app/views/charge_booking_templates/_list.html.haml +10 -0
- data/app/views/charge_rates/_form.html.haml +14 -0
- data/app/views/companies/_company.html.haml +5 -0
- data/app/views/companies/_form.html.haml +8 -0
- data/app/views/companies/_list.html.haml +6 -0
- data/app/views/companies/index.html.haml +6 -0
- data/app/views/companies/show.html.haml +27 -0
- data/app/views/credit_invoices/_credit_invoice.html.haml +9 -0
- data/app/views/credit_invoices/_form.html.haml +41 -0
- data/app/views/credit_invoices/_list.html.haml +20 -0
- data/app/views/credit_invoices/index.html.haml +7 -0
- data/app/views/credit_invoices/show.html.haml +56 -0
- data/app/views/customers/_customer.html.haml +5 -0
- data/app/views/customers/_form.html.haml +8 -0
- data/app/views/customers/_list.html.haml +6 -0
- data/app/views/customers/index.html.haml +6 -0
- data/app/views/customers/show.html.haml +22 -0
- data/app/views/debit_invoices/_debit_invoice.html.haml +9 -0
- data/app/views/debit_invoices/_form.html.haml +38 -0
- data/app/views/debit_invoices/_invoice_body.html.haml +8 -0
- data/app/views/debit_invoices/_invoice_info.html.haml +10 -0
- data/app/views/debit_invoices/_invoice_parties.html.haml +9 -0
- data/app/views/debit_invoices/_list.html.haml +21 -0
- data/app/views/debit_invoices/index.html.haml +7 -0
- data/app/views/debit_invoices/letter.html.haml +9 -0
- data/app/views/debit_invoices/letter.pdf.prawn +57 -0
- data/app/views/debit_invoices/show.html.haml +56 -0
- data/app/views/devise/confirmations/new.html.haml +10 -0
- data/app/views/devise/mailer/confirmation_instructions.html.haml +6 -0
- data/app/views/devise/mailer/reset_password_instructions.html.haml +10 -0
- data/app/views/devise/mailer/unlock_instructions.html.haml +8 -0
- data/app/views/devise/passwords/edit.html.haml +15 -0
- data/app/views/devise/passwords/new.html.haml +11 -0
- data/app/views/devise/sessions/new.html.haml +13 -0
- data/app/views/devise/shared/_links.haml +15 -0
- data/app/views/devise/unlocks/new.html.haml +11 -0
- data/app/views/direct_bookings/_form.html.haml +12 -0
- data/app/views/direct_bookings/_item.html.haml +17 -0
- data/app/views/direct_bookings/_list.html.haml +10 -0
- data/app/views/direct_bookings/_list_footer.html.haml +6 -0
- data/app/views/direct_bookings/_show.html.haml +3 -0
- data/app/views/direct_bookings/_show_all.html.haml +8 -0
- data/app/views/direct_bookings/list.js.erb +2 -0
- data/app/views/direct_bookings/new.js.erb +2 -0
- data/app/views/employees/_employee.html.haml +5 -0
- data/app/views/employees/_form.html.haml +19 -0
- data/app/views/employees/_list.html.haml +6 -0
- data/app/views/employees/index.html.haml +6 -0
- data/app/views/employees/show.html.haml +31 -0
- data/app/views/employments/_employment.html.haml +10 -0
- data/app/views/employments/_form.html.haml +24 -0
- data/app/views/employments/_list.html.haml +11 -0
- data/app/views/employments/_show.html.haml +9 -0
- data/app/views/employments/index.html.haml +5 -0
- data/app/views/invoices/_form.html.haml +13 -0
- data/app/views/invoices/_invoice.html.haml +7 -0
- data/app/views/invoices/_list.html.haml +20 -0
- data/app/views/invoices/_sidebar.html.haml +11 -0
- data/app/views/invoices/index.html.haml +17 -0
- data/app/views/invoices/show.html.haml +56 -0
- data/app/views/layouts/_flash_new.html.haml +1 -0
- data/app/views/layouts/_list_item_actions_for.html.haml +3 -0
- data/app/views/layouts/application.html.haml +46 -0
- data/app/views/line_items/_form.html.haml +6 -0
- data/app/views/line_items/_line_item.html.haml +7 -0
- data/app/views/line_items/_list_footer.html.haml +7 -0
- data/app/views/notes/_form.html.haml +10 -0
- data/app/views/notes/_list.html.haml +15 -0
- data/app/views/notes/index.html.haml +9 -0
- data/app/views/notes/show.html.haml +12 -0
- data/app/views/overview/index.html.haml +14 -0
- data/app/views/people/_form.html.haml +8 -0
- data/app/views/people/_list.html.haml +7 -0
- data/app/views/people/_person.html.haml +6 -0
- data/app/views/people/_show.html.haml +6 -0
- data/app/views/people/show.html.haml +21 -0
- data/app/views/persons/_civil.html.haml +5 -0
- data/app/views/persons/_show.html.haml +6 -0
- data/app/views/salaries/_form.html.haml +14 -0
- data/app/views/salaries/_list.html.haml +12 -0
- data/app/views/salaries/_salary.html.haml +10 -0
- data/app/views/salaries/_salary_certificate.html.haml +25 -0
- data/app/views/salaries/payslip.html.haml +40 -0
- data/app/views/salaries/show.html.haml +30 -0
- data/app/views/salaries/statistics.html.haml +6 -0
- data/app/views/tenants/_account.html.haml +7 -0
- data/app/views/tenants/_account_group_sheet.html.haml +8 -0
- data/app/views/tenants/_form.html.haml +17 -0
- data/app/views/tenants/_list.html.haml +7 -0
- data/app/views/tenants/_tenant.html.haml +7 -0
- data/app/views/tenants/balance_sheet.html.haml +43 -0
- data/app/views/tenants/index.html.haml +6 -0
- data/app/views/tenants/new.js.erb +1 -0
- data/app/views/tenants/profit_sheet.html.haml +26 -0
- data/app/views/tenants/show.html.haml +18 -0
- data/app/views/users/_demo.de-CH.html.haml +7 -0
- data/app/views/users/_demo.de.html.haml +7 -0
- data/app/views/users/_demo.html.haml +7 -0
- data/app/views/users/_form.html.haml +17 -0
- data/app/views/users/_list.html.haml +9 -0
- data/app/views/users/_show.html.haml +13 -0
- data/app/views/users/_user.html.haml +7 -0
- data/app/views/users/index.html.haml +6 -0
- data/app/views/users/new.js.erb +1 -0
- data/app/views/users/show.html.haml +14 -0
- data/lib/acts_as_csv.rb +113 -0
- data/lib/bookyt/engine.rb +18 -0
- data/lib/bookyt/version.rb +3 -0
- data/lib/float.rb +17 -0
- data/lib/pagination_list_link_renderer.rb +63 -0
- data/lib/parse_date.rb +27 -0
- data/lib/prawn/letter_document.rb +136 -0
- data/lib/raiffeisen_importer.rb +15 -0
- data/lib/recipes/bookyt.rb +15 -0
- data/lib/simple_navigation/renderer/list.rb +20 -0
- data/lib/simple_navigation/renderer/overview.rb +46 -0
- data/lib/sqlite3_extensions.rb +45 -0
- data/lib/tasks/.gitkeep +0 -0
- data/lib/tasks/bookyt.rake +15 -0
- data/lib/tasks/cucumber.rake +53 -0
- data/lib/tasks/environment_seeds.rake +7 -0
- data/lib/tasks/users.rake +46 -0
- metadata +423 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
.contextual
|
2
|
+
= icon_link_to :print, {:action => :letter, :format => :pdf}, {:target => '_blank'} if resource.is_a?(DebitInvoice)
|
3
|
+
= contextual_links_for
|
4
|
+
%h1= resource
|
5
|
+
|
6
|
+
.box
|
7
|
+
%table{:style => "width: 100%"}
|
8
|
+
%tr
|
9
|
+
%th= t_attr(:customer, Invoice)
|
10
|
+
%td= link_to(full_address(resource.customer.vcard, ', '), resource.customer)
|
11
|
+
%th= t_attr(:company, Invoice)
|
12
|
+
%td= link_to(full_address(resource.company.vcard, ', '), resource.company)
|
13
|
+
%tr
|
14
|
+
%th= t_attr(:balance_account, Invoice)
|
15
|
+
%td= link_to resource.balance_account, resource.balance_account if resource.balance_account
|
16
|
+
%th= t_attr(:profit_account, Invoice)
|
17
|
+
%td= link_to resource.profit_account, resource.profit_account if resource.balance_account
|
18
|
+
%tr
|
19
|
+
%th= t_attr(:state, Invoice)
|
20
|
+
%td#invoice_state=t resource.state, :scope => 'invoice.state'
|
21
|
+
%tr
|
22
|
+
%th= t_attr(:value_date, Invoice)
|
23
|
+
%td= l(resource.value_date) if resource.value_date
|
24
|
+
%th= t_attr(:due_date, Invoice)
|
25
|
+
%td= l(resource.due_date) if resource.due_date
|
26
|
+
%tr
|
27
|
+
%th= t_attr(:duration_from, Invoice)
|
28
|
+
%td= l(resource.duration_from) if resource.duration_from
|
29
|
+
%th= t_attr(:duration_to, Invoice)
|
30
|
+
%td= l(resource.duration_to) if resource.duration_to
|
31
|
+
%tr
|
32
|
+
%th= t_attr(:remarks, Invoice)
|
33
|
+
%tr
|
34
|
+
%td{:style => 'white-space: pre-line; padding-left: 2em', :colspan => 4}<= resource.remarks
|
35
|
+
|
36
|
+
.contextual
|
37
|
+
= form_tag new_direct_booking_path(:direct_booking => {:reference_id => resource.id, :reference_type => resource_class.base_class}), :method => :get, :remote => true do
|
38
|
+
= collection_select :direct_booking, :booking_template_id, BookingTemplate.by_type(resource_class.name.underscore), :id, :title
|
39
|
+
= submit_tag t_action('new')
|
40
|
+
|
41
|
+
= render 'direct_bookings/show_all', :reference => resource
|
42
|
+
|
43
|
+
%h3= t('title.line_items')
|
44
|
+
%table.list
|
45
|
+
= render resource.line_items
|
46
|
+
= render 'line_items/list_footer', :total_amount => resource.amount
|
47
|
+
|
48
|
+
= render 'bookyt_stock/invoices/show' if controller.template_exists? 'show', 'bookyt_stock/invoices', true
|
49
|
+
|
50
|
+
.contextual
|
51
|
+
= icon_link_to :new, new_invoice_attachment_path(resource), :remote => true
|
52
|
+
%h3= t('title.attachments')
|
53
|
+
|
54
|
+
- @attachments = resource.attachments
|
55
|
+
#attachments_list
|
56
|
+
= render 'attachments/list' unless @attachments.empty?
|
@@ -0,0 +1,10 @@
|
|
1
|
+
%h2
|
2
|
+
= t('devise.resend')
|
3
|
+
= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f|
|
4
|
+
= devise_error_messages!
|
5
|
+
%p
|
6
|
+
= f.label :email
|
7
|
+
%br/
|
8
|
+
= f.text_field :email
|
9
|
+
%p= f.submit t('devise.resend')
|
10
|
+
= render "devise/shared/links"
|
@@ -0,0 +1,10 @@
|
|
1
|
+
%p
|
2
|
+
= t('devise.hello', :email => @resource.email)
|
3
|
+
%p
|
4
|
+
= t('devise.request_to_change_password')
|
5
|
+
%p
|
6
|
+
= link_to t('devise.change_my_password'), edit_password_url(@resource, :reset_password_token => @resource.reset_password_token)
|
7
|
+
%p
|
8
|
+
= t('devise.ignore_mail.first_line')
|
9
|
+
%p
|
10
|
+
= t('devise.ignore_mail.second_line')
|
@@ -0,0 +1,15 @@
|
|
1
|
+
%h2
|
2
|
+
= t('devise.change_your_password')
|
3
|
+
= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f|
|
4
|
+
= devise_error_messages!
|
5
|
+
= f.hidden_field :reset_password_token
|
6
|
+
%p
|
7
|
+
= f.label :password
|
8
|
+
%br/
|
9
|
+
= f.password_field :password
|
10
|
+
%p
|
11
|
+
= f.label :password_confirmation
|
12
|
+
%br/
|
13
|
+
= f.password_field :password_confirmation
|
14
|
+
%p= f.submit t('devise.change_my_password')
|
15
|
+
= render "devise/shared/links"
|
@@ -0,0 +1,11 @@
|
|
1
|
+
%h2
|
2
|
+
= t('devise.forgot_your_password')
|
3
|
+
= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f|
|
4
|
+
= devise_error_messages!
|
5
|
+
%p
|
6
|
+
= f.label :email
|
7
|
+
%br/
|
8
|
+
= f.text_field :email
|
9
|
+
%p
|
10
|
+
= f.submit t('devise.send_reset_instructions')
|
11
|
+
= render "devise/shared/links"
|
@@ -0,0 +1,13 @@
|
|
1
|
+
= render 'users/demo' if Rails.env.demo?
|
2
|
+
|
3
|
+
= semantic_form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
|
4
|
+
= f.semantic_errors
|
5
|
+
= f.inputs do
|
6
|
+
= f.input :email
|
7
|
+
= f.input :password, :hint => false
|
8
|
+
- if devise_mapping.rememberable?
|
9
|
+
= f.input :remember_me, :as => :boolean
|
10
|
+
= f.buttons do
|
11
|
+
= f.commit_button t('devise.sign_in')
|
12
|
+
|
13
|
+
= render "devise/shared/links"
|
@@ -0,0 +1,15 @@
|
|
1
|
+
- if controller_name != 'sessions'
|
2
|
+
= link_to t('devise.sign_in'), new_session_path(resource_name)
|
3
|
+
%br/
|
4
|
+
- if devise_mapping.registerable? && controller_name != 'registrations'
|
5
|
+
= link_to t('devise.sign_up'), new_registration_path(resource_name)
|
6
|
+
%br/
|
7
|
+
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
8
|
+
= link_to t('devise.forgot_your_password'), new_password_path(resource_name)
|
9
|
+
%br/
|
10
|
+
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
11
|
+
= link_to t('devise.no_confirmation_received'), new_confirmation_path(resource_name)
|
12
|
+
%br/
|
13
|
+
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
14
|
+
= link_to t('devise.no_unlock_received'), new_unlock_path(resource_name)
|
15
|
+
%br/
|
@@ -0,0 +1,11 @@
|
|
1
|
+
%h2
|
2
|
+
= t('devise.resend_unlock_instructions')
|
3
|
+
= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f|
|
4
|
+
= devise_error_messages!
|
5
|
+
%p
|
6
|
+
= f.label :email
|
7
|
+
%br/
|
8
|
+
= f.text_field :email
|
9
|
+
%p
|
10
|
+
= f.submit t('devise.resend_unlock_instructions')
|
11
|
+
= render "devise/shared/links"
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#direct_booking_form
|
2
|
+
= semantic_form_for @direct_booking, :as => :direct_booking, :url => direct_bookings_path, :remote => true do |booking|
|
3
|
+
= booking.semantic_errors
|
4
|
+
= booking.hidden_field :title
|
5
|
+
= booking.hidden_field :debit_account_id
|
6
|
+
= booking.hidden_field :credit_account_id
|
7
|
+
= booking.hidden_field :reference_id
|
8
|
+
= booking.hidden_field :reference_type
|
9
|
+
= booking.text_field :value_date, :style => 'width: 12em', "data-autofocus" => true
|
10
|
+
Betrag: #{booking.text_field :amount, :style => 'width: 6em'}
|
11
|
+
Text: #{booking.text_field :comments, :style => 'width: 26em'}
|
12
|
+
\#{booking.submit "Buchen"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
- if item.contra_account(direct_account)
|
2
|
+
%tr
|
3
|
+
%td{:style => "width: 10em"}= l item.value_date.to_date
|
4
|
+
%td
|
5
|
+
= link_to item.title, item, 'data-href-container' => 'tr'
|
6
|
+
- unless item.comments.blank?
|
7
|
+
%hr{:style => "height: 1px; margin: 0"}
|
8
|
+
= item.comments
|
9
|
+
- if item.contra_account(direct_account)
|
10
|
+
%td= item.contra_account(direct_account)
|
11
|
+
%td.currency= currency_fmt(item.accounted_amount(direct_account))
|
12
|
+
- else
|
13
|
+
%td
|
14
|
+
= link_to(item.debit_account, item.debit_account)
|
15
|
+
\/
|
16
|
+
= link_to(item.credit_account, item.credit_account)
|
17
|
+
%td.currency
|
@@ -0,0 +1,10 @@
|
|
1
|
+
- direct_bookings = Booking.by_reference(reference)
|
2
|
+
|
3
|
+
- if direct_bookings.empty?
|
4
|
+
- direct_balance = 0.0
|
5
|
+
- else
|
6
|
+
- direct_balance = direct_bookings.direct_balance(direct_account)
|
7
|
+
|
8
|
+
%table#direct_booking_list.list
|
9
|
+
= render :partial => 'direct_bookings/item', :collection => direct_bookings, :locals => {:direct_account => direct_account}
|
10
|
+
= render 'direct_bookings/list_footer', :direct_balance => direct_balance
|
@@ -0,0 +1,8 @@
|
|
1
|
+
- bookings = Booking.by_reference(reference)
|
2
|
+
- credit_accounts = bookings.select('credit_account_id').group('credit_account_id').map{|account| account.credit_account}
|
3
|
+
- debit_accounts = bookings.select('debit_account_id').group('debit_account_id').map{|account| account.debit_account}
|
4
|
+
- accounts = credit_accounts + debit_accounts
|
5
|
+
|
6
|
+
- balance_accounts = accounts.uniq.select{|account| account.is_balance_account?}
|
7
|
+
- for account in balance_accounts
|
8
|
+
= render 'direct_bookings/show', :reference => resource, :direct_account => account
|
@@ -0,0 +1,19 @@
|
|
1
|
+
= semantic_form_for @employee do |f|
|
2
|
+
= f.semantic_errors
|
3
|
+
|
4
|
+
= f.inputs t('form.person.address') do
|
5
|
+
= render 'vcards/form', :f => f
|
6
|
+
|
7
|
+
= f.inputs t('form.person.civil') do
|
8
|
+
= f.input :code
|
9
|
+
= f.input :sex, :as => :select, :collection => { t('sex.male') => Person::MALE, t('sex.female') => Person::FEMALE}
|
10
|
+
= f.input :date_of_birth, :as => :date_field
|
11
|
+
= f.input :civil_status
|
12
|
+
= f.input :religion
|
13
|
+
= f.input :social_security_nr
|
14
|
+
= f.input :social_security_nr_12
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
= f.buttons do
|
19
|
+
= f.commit_button
|
@@ -0,0 +1,31 @@
|
|
1
|
+
= contextual_links
|
2
|
+
.contextual
|
3
|
+
= link_to t_model(Note), employee_notes_path(@employee), :class => 'icon icon-index'
|
4
|
+
|
5
|
+
%h1= t_title
|
6
|
+
|
7
|
+
= render 'persons/show', :vcard => resource.vcard
|
8
|
+
- @person = @employee
|
9
|
+
= render 'persons/civil'
|
10
|
+
|
11
|
+
.contextual
|
12
|
+
= link_to t_action('new', Employment), new_employment_path, :remote => true, :class => "icon icon-add"
|
13
|
+
%h2= t_title :index, Employment
|
14
|
+
|
15
|
+
- @employments = @employee.employments
|
16
|
+
= render 'employments/list'
|
17
|
+
|
18
|
+
.contextual
|
19
|
+
= link_to t_action('new', Salary), new_salary_path(:salary => {:employee_id => @employee.id}), :remote => true, :class => "icon icon-add"
|
20
|
+
%h2= t_title :index, Salary
|
21
|
+
|
22
|
+
- @salaries = @employee.salaries
|
23
|
+
= render 'salaries/list'
|
24
|
+
|
25
|
+
.contextual
|
26
|
+
= icon_link_to :new, new_employee_attachment_path(resource), :remote => true
|
27
|
+
%h3= t('title.attachments')
|
28
|
+
|
29
|
+
- @attachments = resource.attachments
|
30
|
+
#attachments_list
|
31
|
+
= render 'attachments/list' unless @attachments.empty?
|
@@ -0,0 +1,10 @@
|
|
1
|
+
%tr[employment]
|
2
|
+
%td= link_to employment.employer, employment.employer
|
3
|
+
%td= link_to employment.employee, employment.employee
|
4
|
+
%td= link_to ("%s - %s" % [employment.duration_from, employment.duration_to]), employment, {'data-href-container' => 'tr'}
|
5
|
+
%td.currency= currency_fmt(employment.salary_amount)
|
6
|
+
%td.currency= "%i%%" % employment.workload
|
7
|
+
%td.currency= employment.kids
|
8
|
+
%td.action-links
|
9
|
+
= list_link_for(:edit, employment)
|
10
|
+
= list_link_for(:delete, employment)
|
@@ -0,0 +1,24 @@
|
|
1
|
+
= semantic_form_for @employment do |f|
|
2
|
+
= f.semantic_errors
|
3
|
+
= f.inputs do
|
4
|
+
= f.input :employee, :as => :combobox
|
5
|
+
= f.input :employer, :as => :combobox
|
6
|
+
= f.input :duration_from, :as => :date_field
|
7
|
+
= f.input :duration_to, :as => :date_field
|
8
|
+
= f.input :temporary
|
9
|
+
|
10
|
+
= f.inputs do
|
11
|
+
= f.input :salary_amount, :input_html => {:style => 'width: 6em'}
|
12
|
+
= f.input :workload, :input_html => {:style => 'width: 6em'}
|
13
|
+
= f.input :daily_workload, :input_html => {:style => 'width: 6em'}
|
14
|
+
= f.input :hourly_paid
|
15
|
+
= f.input :overtime_premium, :input_html => {:style => 'width: 6em'}
|
16
|
+
= f.input :holiday_premium, :input_html => {:style => 'width: 6em'}
|
17
|
+
= f.input :sunday_premium, :input_html => {:style => 'width: 6em'}
|
18
|
+
= f.input :night_premium, :input_html => {:style => 'width: 6em'}
|
19
|
+
|
20
|
+
= f.inputs do
|
21
|
+
= f.input :kids, :input_html => {:style => 'width: 6em'}
|
22
|
+
|
23
|
+
= f.buttons do
|
24
|
+
= f.commit_button
|
@@ -0,0 +1,11 @@
|
|
1
|
+
%table.list#employments_list
|
2
|
+
%tr
|
3
|
+
%th= t_attr :employer, Employment
|
4
|
+
%th= t_attr :employee, Employment
|
5
|
+
%th= t_attr :duration, Employment
|
6
|
+
%th.currency= t_attr :salary_amount, Employment
|
7
|
+
%th.currency= t_attr :workload, Employment
|
8
|
+
%th.currency= t_attr :kids, Employment
|
9
|
+
%th.action-links
|
10
|
+
|
11
|
+
= render @employments
|
@@ -0,0 +1,9 @@
|
|
1
|
+
= render 'application/show'
|
2
|
+
|
3
|
+
.contextual
|
4
|
+
= icon_link_to :new, new_invoice_attachment_path(resource), :remote => true
|
5
|
+
%h3= t('title.attachments')
|
6
|
+
|
7
|
+
- @attachments = resource.attachments
|
8
|
+
#attachments_list
|
9
|
+
= render 'attachments/list' unless @attachments.empty?
|
@@ -0,0 +1,13 @@
|
|
1
|
+
= semantic_form_for @invoice do |f|
|
2
|
+
= f.semantic_errors
|
3
|
+
= f.inputs do
|
4
|
+
= f.input :customer, :as => :combobox
|
5
|
+
= f.input :company, :as => :combobox
|
6
|
+
= f.input :title
|
7
|
+
= f.input :amount
|
8
|
+
= f.input :due_date, :as => :date_field
|
9
|
+
= f.input :state, :collection => invoice_states_as_collection
|
10
|
+
= f.input :remarks
|
11
|
+
|
12
|
+
= f.buttons do
|
13
|
+
= f.commit_button
|
@@ -0,0 +1,20 @@
|
|
1
|
+
= render 'invoices/sidebar'
|
2
|
+
|
3
|
+
%table.list#invoices_list
|
4
|
+
%tr
|
5
|
+
%th= t_attr :value_date, Invoice
|
6
|
+
%th= t_attr :title, Invoice
|
7
|
+
%th= t_attr :company, Invoice
|
8
|
+
%th= t_attr :due_date, Invoice
|
9
|
+
%th.currency= t_attr :amount, Invoice
|
10
|
+
%th.currency= t_attr :balance, Invoice
|
11
|
+
%th.action-links
|
12
|
+
|
13
|
+
= render @invoices
|
14
|
+
|
15
|
+
%tr#invoices_list_footer
|
16
|
+
%th{:style => "width: 10em"}= l Date.today
|
17
|
+
%th{:colspan => 3}= t('bookyt.total')
|
18
|
+
%th= currency_fmt(@invoices.to_a.sum(&:amount))
|
19
|
+
%th= currency_fmt(@invoices.to_a.sum(&:balance))
|
20
|
+
%th
|
@@ -0,0 +1,11 @@
|
|
1
|
+
- unless @invoice_sidebar
|
2
|
+
- @invoice_sidebar = true
|
3
|
+
|
4
|
+
- content_for :sidebar do
|
5
|
+
.sub-tabs
|
6
|
+
%h3 Filter
|
7
|
+
%ul
|
8
|
+
%li= link_to t('bookyt.all'), url_for(params.merge(:by_state => 'all', :overdue => nil))
|
9
|
+
- for state in Invoice::STATES
|
10
|
+
%li= link_to t(state, :scope => 'invoice.state'), url_for(params.merge(:by_state => state, :overdue => nil))
|
11
|
+
%li= link_to t(:overdue, :scope => 'invoice.state'), url_for(params.merge(:by_state => nil, :overdue => true))
|