doc_contract 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/doc_contract/contract_instances_controller.rb +1 -1
- data/app/controllers/doc_contract/contract_templates_controller.rb +1 -1
- data/app/models/doc_contract/contract_instance.rb +1 -1
- data/app/models/doc_contract/contract_template.rb +1 -1
- data/app/views/doc_contract/contract_instances/index.html.slim +2 -2
- data/app/views/doc_contract/contract_templates/index.html.slim +1 -1
- data/lib/doc_contract/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10539557dfc2459c982fd3f6eb174e5012e5d7db7cf4001a38f684ce96d758cb
|
4
|
+
data.tar.gz: 5417b3780907dacd938cbb937b87381b1218ac839fcbfe7f6f6a6611ff08f006
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fa4bb103d56400fd0599ccba7a20e475583ea704e7bcf20eb306960aa0d82b29c86f5e83cbcba6f38caaa3a76643000f9c1f04308148f5fa98d2344d9c4548d
|
7
|
+
data.tar.gz: 431cb7417342a0ff44f31040ec78f2dd7798882d5bedfb29159fc4ac8795f726de11fa5063b4e9209fe015c0cf951f12eb86c2579731681b4d7dd3451526ae0a
|
@@ -7,7 +7,7 @@ module DocContract
|
|
7
7
|
def index
|
8
8
|
authorize! :index, record_class
|
9
9
|
@q = record_class.ransack query
|
10
|
-
@q.sorts =
|
10
|
+
@q.sorts = 'name asc' if @q.sorts.empty?
|
11
11
|
@records = @q.result.includes(:contract_template).page(params[:page]).per(100)
|
12
12
|
respond_with(@records)
|
13
13
|
end
|
@@ -7,7 +7,7 @@ module DocContract
|
|
7
7
|
def index
|
8
8
|
authorize! :index, record_class
|
9
9
|
@q = record_class.ransack query
|
10
|
-
@q.sorts = '
|
10
|
+
@q.sorts = 'name asc' if @q.sorts.empty?
|
11
11
|
@records = @q.result.page(params[:page]).per(100)
|
12
12
|
respond_with(@records)
|
13
13
|
end
|
@@ -6,8 +6,8 @@
|
|
6
6
|
table.ui.compact.top.attached.striped.table
|
7
7
|
thead
|
8
8
|
tr
|
9
|
-
th= at :
|
10
|
-
th= DocContract::ContractTemplate.model_name.human
|
9
|
+
th= sort_link @q, :name, at(:name), default_order: :asc
|
10
|
+
th= sort_link @q, :contract_template_name, DocContract::ContractTemplate.model_name.human
|
11
11
|
th.column-filter.actions
|
12
12
|
= search_result_info @records
|
13
13
|
= search_row class: 'ui mini form' do
|
data/lib/doc_contract/version.rb
CHANGED