Merge branch 'development'

Conflicts:
	stoptime.rb
This commit is contained in:
Paul van Tilburg 2013-06-26 19:09:38 +02:00
commit 5aefde7d44
16 changed files with 19293 additions and 694 deletions

2
.gitignore vendored
View File

@ -4,5 +4,5 @@ htpasswd
db/*
public/invoices/*.pdf
public/invoices/*.tex
public/stylesheets/*.css
public/stylesheets/style.css
tmp/*

View File

@ -18,16 +18,16 @@ invoicing.
Stop… Camping Time! is a Camping application, so you need:
* Ruby 1.8 (>= 1.8.6) or 1.9 (>= 1.9.1)
* Camping (>= 2.0) with
* Active Record (>= 2.3)
* Markaby, and optionally:
* Mongrel (for testing and deployment without Apache/Rackup)
* Ruby 1.8 (>= 1.8.7) or 1.9 (>= 1.9.3)
* Camping (>= 2.1.532) with
* Active Record (>= 3.2)
* Mab (>= 0.0.3) , and optionally:
* Thin or Mongrel (for testing and deployment without Apache/Rackup)
The following Ruby libraries are required:
* ActionPack (>= 2.3) for ActionView
* ActiveSupport (>= 2.3)
* ActionPack (>= 3.2) for ActionView
* ActiveSupport (>= 3.2)
* Rack (for deployment using Apache/Rackup)
* Sass or Haml (which at the moment includes Sass)

View File

@ -4,7 +4,7 @@
#hourly_rate: 20.0
# The VAT rate
#vat_rate: 19.0
#vat_rate: 21.0
# The invoice ID format (see strftime(3) and %N for the sequence number)
#invoice_id: %Y%N

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

2280
public/javascripts/bootstrap.js vendored Normal file

File diff suppressed because it is too large Load Diff

6
public/javascripts/bootstrap.min.js vendored Normal file

File diff suppressed because one or more lines are too long

9800
public/javascripts/jquery.js vendored Normal file

File diff suppressed because it is too large Load Diff

6
public/javascripts/jquery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

5204
public/stylesheets/bootstrap.css vendored Normal file

File diff suppressed because it is too large Load Diff

9
public/stylesheets/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -4,11 +4,11 @@
\usepackage{array}
\usepackage[utf8]{inputenc}
\usepackage{pxfonts}
\setupdocument{
%% Language and style,
dutch,
fill,
fontpackage=pxfonts,
%% Company info.
company=<%= @company.name %>,
who=<%= @company.contact_name %>,
@ -24,8 +24,8 @@
<% unless @company.contact_name.blank? %> \addresswhotext: & \who \\
<% end %><% end %> & \street\\
& \zip\ \city\\[.2em]
<% unless @company.phone.blank? %> \phonetext: & \lead\phone\\
<% end %><% unless @company.cell.blank? %> \cellphonetext: & \lead\cellphone\\
<% unless @company.phone.blank? %> \phonetext: & \phoneprefix\phone\\
<% end %><% unless @company.cell.blank? %> \cellphonetext: & \phoneprefix\cellphone\\
<% end %><% unless @company.email.blank? %> \emailtext: & \email\\[.2em]
<% end %><% unless @company.chamber.blank? %> \chambertext: & \chamber\\
<% end %><% unless @company.vatno.blank? %> \vatnotext: & \vatno
@ -86,7 +86,7 @@
\newcommand{\ihnosubtotal}[1]{\cmidrule[.0em]{4-4}&&&\\}
\newcommand{\ihvat}[2]{\textit{Btw-heffing #1}&&&\currency~#2\\}
\newcommand{\ihtotal}[1]{\cmidrule[.05em]{4-4}%
\textbf{\Totaltext}&&&\textbf{\currency~#1}}
\textbf{\totaltext}&&&\textbf{\currency~#1}}
\begin{document}

View File

@ -1,167 +1,86 @@
/* CSS file for Stop Camping Time! */
// Colours
$light-grey: #efefef
$medium-grey: #cfcfcf
$dark-grey: #9f9f9f
$light-red: #cb0000
$dark-red: #990000
$white: #ffffff
/* Bootstrap overrides */
[class^="icon-"]
background-image: url("../images/glyphicons-halflings.png")
.icon-white
background-image: url("../images/glyphicons-halflings-white.png")
.text-left
text-align: left !important
.text-center
text-align: center !important
.text-right
text-align: right !important
/* Main elements */
body
padding-top: 40px
/* General classes */
.right
text-align: right
.float_left
float: left
margin-right: 50px
.clear
clear: both
padding-top: 10px
.billed
text-decoration: line-through
.light
color: $medium-grey
.indent
padding-left: 20px
.warn
font-weight: bold
color: $light-red
/* Basic elements */
a
text-decoration: none
color: $dark-red
&:hover
text-decoration: underline
body
font-family: sans-serif
font-size: 13px
margin: 0px
h3
margin: 10px 0px
/* Main layout */
#wrapper
width: auto
height: auto
margin: 10px 10px
#content
padding: 10px
border: 1px solid
background: $light-grey
ol#menu
list-style: none
padding: 0px
margin: 5px
li
display: inline
border: solid black
border-width: 1px 1px 0 1px
padding: 5px 10px
margin: 0px 0.5em 0px 0px
&.selected
padding-bottom: 6px
background: $light-grey
/* Table layout */
table
table-layout: fixed
padding: 3px 0px
border-spacing: 0px 4px
col.amount, col.hours, col.hourly_rate
width: 100px
width: 85px
col.reg_hours
width: 130px
width: 90px
col.flag
width: 30px
col.date
width: 95px
width: 100px
col.start_time, col.end_time
width: 55px
width: 60px
col.customer_short
width: 120px
col.customer, col.name
width: 150px
width: 160px
col.task, col.comment
width: 200px
col.short_name, col.phone
width: 120px
col.address, col.period
col.address
width: 250px
col.email, col.number
col.email, col.period
width: 170px
th
padding: 0px 5px
text-align: left
background: $dark-grey
tr
&:hover
background-color: $medium-grey
.light
color: white
&.total
border-top: thin solid black
col.number
width: 70px
td
padding: 0px 5px
vertical-align: top
border: inherit
text-overflow: ellipsis
white-space: nowrap
overflow: hidden
&.key
font-weight: bold
width: 80px
input[type="text"], select
margin: 0
input.comment, select.task
width: 156px
input.date
width: 76px
input.start-time, input.end-time
width: 36px
input
width: 90%
input[type="submit"], input[type="reset"], input[type="checkbox"]
width: auto
/* Form layout */
form
ol
list-style: none
padding: 1px 10px
margin: 2px
label
width: 180px
margin: 4px 10px 4px 0px
float: left
a, span
margin: 4px 0px
display: inline-block
ol.radio
margin-left: 195px
padding: 0px
label
float: none
input
input[type="submit"], input[type="reset"], input[type="checkbox"]
width: auto
li
padding-bottom: 5px
vertical-align: top
td.indent
padding-left: 20px
input[type="text"], select
width: 250px
/* Form layout */
.form-condensed
padding-top: 0px
.control-group
margin-bottom: 8px
.form-inline
margin: 0
label
padding-top: 6px
margin-bottom: 0px