bookyt_salary 0.16.8 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,19 +1,16 @@
1
- = semantic_form_for @salary do |f|
2
- = f.semantic_errors
3
- = f.inputs do
4
- = f.input :employee_id, :as => :hidden
5
- = f.input :employer_id, :as => :hidden
6
- = f.input :state, :as => :hidden
7
- .row-fluid
8
- .span10= f.input :title, :input_html => {:class => 'span10'}
9
- .row-fluid
10
- .span5= f.input :duration_from, :as => :date_field
11
- .span5= f.input :duration_to, :as => :date_field
12
- .row-fluid
13
- .span10= f.input :text, :input_html => {:rows => 4, :class => 'span10'}
14
- .span10= f.input :remarks, :input_html => {:rows => 4, :class => 'span10'}
1
+ = simple_form_for @salary do |f|
2
+ = f.input :employee_id, :as => :hidden
3
+ = f.input :employer_id, :as => :hidden
4
+ = f.input :state, :as => :hidden
5
+ .row-fluid
6
+ .span12= f.input :title
7
+ .row-fluid
8
+ .span6= f.input :duration_from, :as => :date_field
9
+ .span6= f.input :duration_to, :as => :date_field
10
+ .row-fluid
11
+ .span12= f.input :text, :input_html => {:rows => 4}
12
+ .span12= f.input :remarks, :input_html => {:rows => 4}
15
13
 
16
14
  = render 'line_items/list_form', :f => f, :invoice => resource
17
15
 
18
- = f.buttons do
19
- = f.commit_button
16
+ = f.button :submit
@@ -1,13 +1,9 @@
1
1
  = boot_page_title
2
2
 
3
- = semantic_form_for @salary, :url => new_salary_path, :method => :get do |f|
4
- = f.semantic_errors
3
+ = simple_form_for @salary, :url => new_salary_path, :method => :get do |f|
4
+ .row-fluid
5
+ .span6= f.input :employee, :as => :combobox
6
+ .row-fluid
7
+ .span6= f.input :duration_from, :as => :date_field
5
8
 
6
- = f.inputs do
7
- .row-fluid
8
- .span5= f.input :employee, :as => :combobox
9
- .row-fluid
10
- .span5= f.input :duration_from, :as => :date_field
11
-
12
- = f.buttons do
13
- = f.commit_button
9
+ = f.button :submit
@@ -1,23 +1,20 @@
1
- = semantic_form_for @salary_booking_template do |f|
2
- = f.semantic_errors
3
- = f.inputs do
4
- .row-fluid
5
- .span5= f.input :title, :input_html => {"data-autofocus" => true}
6
- .span5= f.input :code
7
- .row-fluid
8
- .span5= f.input :credit_account, :as => :combobox, :collection => accounts_as_collection
9
- .span5= f.input :debit_account, :as => :combobox, :collection => accounts_as_collection
10
- .row-fluid
11
- .span5= f.input :amount
12
- .span5= f.input :amount_relates_to, :collection => amount_relates_to_collection
13
- .row-fluid
14
- .span10= f.input :comments, :input_html => {:rows => 2, :class => 'span10'}
1
+ = simple_form_for @salary_booking_template do |f|
2
+ .row-fluid
3
+ .span6= f.input :title, :input_html => {"data-autofocus" => true}
4
+ .span6= f.input :code
5
+ .row-fluid
6
+ .span6= f.input :credit_account, :as => :combobox, :collection => accounts_as_collection
7
+ .span6= f.input :debit_account, :as => :combobox, :collection => accounts_as_collection
8
+ .row-fluid
9
+ .span6= f.input :amount
10
+ .span6= f.input :amount_relates_to, :collection => amount_relates_to_collection
11
+ .row-fluid
12
+ .span12= f.input :comments, :input_html => {:rows => 2}
15
13
 
16
- .row-fluid
17
- .span10= f.input :include_in_saldo_list, :input_html => {:class => 'span10'}
14
+ .row-fluid
15
+ .span12= f.input :include_in_saldo_list
18
16
 
19
- .row-fluid
20
- .span5= f.input :salary_declaration_code
17
+ .row-fluid
18
+ .span6= f.input :salary_declaration_code
21
19
 
22
- = f.buttons do
23
- = f.commit_button
20
+ = f.button :submit
@@ -1,7 +1,7 @@
1
- = f.inputs t_title(:list, SalaryItem) do
2
- %table.table.table-striped.salary_items.collection.nested-form-container
3
- %thead
4
- = render 'salary_items/list_header', :template => f.object
5
- %tbody.sortable
6
- = f.fields_for :salary_items do |salary_item|
7
- = render 'salary_items/form', :salary_item => salary_item, :template => f.object
1
+ %h3= t_title(:list, SalaryItem)
2
+ %table.table.table-striped.salary_items.collection.nested-form-container
3
+ %thead
4
+ = render 'salary_items/list_header', :template => f.object
5
+ %tbody.sortable
6
+ = f.fields_for :salary_items do |salary_item|
7
+ = render 'salary_items/form', :salary_item => salary_item, :template => f.object
@@ -1,13 +1,10 @@
1
- = semantic_form_for @salary_template do |f|
2
- = f.semantic_errors
3
- = f.inputs do
4
- .row-fluid
5
- .span5= f.input :title, :input_html => {"data-autofocus" => true}
6
- .span5= f.input :person, :as => :combobox, :collection => Employee.all
7
- .row-fluid
8
- .span10= f.input :remarks, :input_html => {:rows => 2, :class => 'span10'}
1
+ = simple_form_for @salary_template do |f|
2
+ .row-fluid
3
+ .span6= f.input :title, :input_html => {"data-autofocus" => true}
4
+ .span6= f.input :person, :as => :combobox, :collection => Employee.all
5
+ .row-fluid
6
+ .span12= f.input :remarks, :input_html => {:rows => 2}
9
7
 
10
8
  = render 'salary_items/list_form', :f => f
11
9
 
12
- = f.buttons do
13
- = f.commit_button
10
+ = f.button :submit
@@ -1,3 +1,3 @@
1
1
  module BookytSalary
2
- VERSION = '0.16.8'
2
+ VERSION = '0.17.0'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookyt_salary
3
3
  version: !ruby/object:Gem::Version
4
- hash: 79
4
+ hash: 91
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 16
9
- - 8
10
- version: 0.16.8
8
+ - 17
9
+ - 0
10
+ version: 0.17.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Simon H\xC3\xBCrlimann (CyT)"