kaui 0.8.4 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2789a969d9773d7b85873b78de5e7499e8a0bff
4
- data.tar.gz: 16387777a6d098c092cfb74b6bbf35c771f852d3
3
+ metadata.gz: a70faa01f0b175623fe4193632ac3e9f1cd64442
4
+ data.tar.gz: c3257458ed844df34f244fee6137646129bfc311
5
5
  SHA512:
6
- metadata.gz: e5da777efcada57eefc888c217e444059cce523e8bc37d4fb2395e7b3252e010f4e82e3d5ff5d4986a2cff8caf40a41e471f5a6e52e5c21ac0d89eeebfd061fb
7
- data.tar.gz: fb7a52912944083a5142609d150d272c78e1176b0a3c1e918e7adc513839e610d97d56cf3c36a59417a522af5b9abbda39f8694efe045bbc3ce0d9320ad058fb
6
+ metadata.gz: b87e8fb8edb7c0600836d4656e78d8648c6c2097d9e38d066d2b91a48554cf7af7d25d18319c091cbca0d5ecd0a284f73961bc26d3090aa114e6535fddb44ce7
7
+ data.tar.gz: adcdb96bf73e373660f3ebc74b770200fa660a81eb7b66cc4eaf24c632d84e010bffa091a25242e40a30e9e1f3bd389f99888b7d41aa540d601f95ed6aa1dcee
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kaui (0.8.4)
4
+ kaui (0.9.0)
5
5
  cancan (~> 1.6.10)
6
6
  carmen-rails (~> 1.0.0)
7
7
  d3_rails (~> 3.2.8)
8
8
  devise (~> 3.0.2)
9
9
  jquery-rails (~> 3.0.4)
10
- killbill-client (~> 0.10.7)
10
+ killbill-client (~> 0.13.0)
11
11
  money-rails (~> 0.8.1)
12
12
  rails (~> 3.2.14)
13
13
  symmetric-encryption (~> 3.6.0)
@@ -49,8 +49,8 @@ GEM
49
49
  bcrypt (>= 3.1.3)
50
50
  builder (3.0.4)
51
51
  cancan (1.6.10)
52
- carmen (1.0.1)
53
- unicode_utils (~> 1.4.0)
52
+ carmen (1.0.2)
53
+ activesupport (>= 3.0.0)
54
54
  carmen-rails (1.0.1)
55
55
  carmen (~> 1.0.0)
56
56
  rails
@@ -67,7 +67,7 @@ GEM
67
67
  warden (~> 1.2.3)
68
68
  docile (1.1.5)
69
69
  erubis (2.7.0)
70
- execjs (2.4.0)
70
+ execjs (2.5.2)
71
71
  fakeweb (1.3.0)
72
72
  hike (1.2.3)
73
73
  i18n (0.6.11)
@@ -76,7 +76,7 @@ GEM
76
76
  railties (>= 3.0, < 5.0)
77
77
  thor (>= 0.14, < 2.0)
78
78
  json (1.8.2)
79
- killbill-client (0.10.7)
79
+ killbill-client (0.13.0)
80
80
  json (>= 1.2.0)
81
81
  mail (2.5.4)
82
82
  mime-types (~> 1.16)
@@ -131,7 +131,7 @@ GEM
131
131
  symmetric-encryption (3.6.0)
132
132
  coercible (>= 1.0.0)
133
133
  thor (0.19.1)
134
- thread_safe (0.3.4)
134
+ thread_safe (0.3.5)
135
135
  tilt (1.4.1)
136
136
  treetop (1.4.15)
137
137
  polyglot
@@ -141,8 +141,7 @@ GEM
141
141
  execjs
142
142
  rails (>= 3.1)
143
143
  railties (>= 3.1)
144
- tzinfo (0.3.43)
145
- unicode_utils (1.4.0)
144
+ tzinfo (0.3.44)
146
145
  warden (1.2.3)
147
146
  rack (>= 1.0)
148
147
 
@@ -4,4 +4,45 @@
4
4
  Use Font Awesome icons (default)
5
5
  To use Glyphicons sprites instead of Font Awesome, replace with "require twitter-bootstrap-static/sprites"
6
6
  =require twitter-bootstrap-static/fontawesome
7
- */
7
+ */
8
+
9
+ /* Fixing corners on nav */
10
+ .kauiNav .navbar-inner {
11
+ border-radius: 0;
12
+ -moz-border-radius: 0;
13
+ -webkit-border-radius: 0;
14
+ }
15
+
16
+ /* Moving pagination to right side of page */
17
+ .pagination {
18
+ margin: 0;
19
+ }
20
+ .pagination ul {
21
+ float: right;
22
+ }
23
+
24
+ /* Moving search to right side of page */
25
+ .dataTables_filter label {
26
+ float: right;
27
+ }
28
+
29
+ .dataTables_length select {
30
+ width: auto;
31
+ }
32
+
33
+ /* Removing header margin */
34
+ .pageHeader {
35
+ margin: 0 0 20px 0;
36
+ line-height: 30px;
37
+ }
38
+
39
+ /* Removing form action background and border */
40
+ .form-actions {
41
+ background: none;
42
+ border: none;
43
+ }
44
+
45
+ /** New account page **/
46
+ .groupWrapper {
47
+ margin: 0;
48
+ }
@@ -276,140 +276,139 @@
276
276
  </div>
277
277
  <%= javascript_tag do %>
278
278
  function disableLinks() {
279
- $('a.btn.disabled').click(function (e) {
280
- e.preventDefault();
281
- });
279
+ $('a.btn.disabled').click(function (e) {
280
+ e.preventDefault();
281
+ });
282
282
  }
283
283
 
284
284
  eventsOrder = ["START_ENTITLEMENT", "START_BILLING", "PAUSE_ENTITLEMENT", "PAUSE_BILLING", "RESUME_ENTITLEMENT",
285
285
  "RESUME_BILLING", "PHASE", "CHANGE", "STOP_ENTITLEMENT", "STOP_BILLING", "INVOICE", "PAYMENT"];
286
286
 
287
287
  jQuery.fn.dataTableExt.oSort['timeline-event-asc'] = function(e1,e2) {
288
- var x = eventsOrder.indexOf(e1);
289
- var y = eventsOrder.indexOf(e2);
290
- return ((x < y) ? -1 : ((x > y) ? 1 : 0));
288
+ var x = eventsOrder.indexOf(e1);
289
+ var y = eventsOrder.indexOf(e2);
290
+ return ((x < y) ? -1 : ((x > y) ? 1 : 0));
291
291
  };
292
292
 
293
293
  jQuery.fn.dataTableExt.oSort['timeline-event-desc'] = function(e1,e2) {
294
- var x = eventsOrder.indexOf(e1);
295
- var y = eventsOrder.indexOf(e2);
296
- return ((x < y) ? 1 : ((x > y) ? -1 : 0));
294
+ var x = eventsOrder.indexOf(e1);
295
+ var y = eventsOrder.indexOf(e2);
296
+ return ((x < y) ? 1 : ((x > y) ? -1 : 0));
297
297
  };
298
298
 
299
299
  function extractTitleAttributeFromText(txt) {
300
- // Ugly - better way of doing this?
301
- var matches = txt.match(/title="\w+"/g);
302
- if (matches == null || matches.size == 0) {
303
- return null;
304
- }
305
- return matches[0].split('=')[1];
300
+ // Ugly - better way of doing this?
301
+ var matches = txt.match(/title="\w+"/g);
302
+ if (matches == null || matches.size == 0) {
303
+ return null;
304
+ }
305
+ return matches[0].split('=')[1];
306
306
  }
307
307
 
308
308
  jQuery.fn.dataTableExt.oSort['timeline-details-asc'] = function(e1,e2) {
309
- var x = extractTitleAttributeFromText(e1);
310
- var y = extractTitleAttributeFromText(e2);
311
- return ((x < y) ? -1 : ((x > y) ? 1 : 0));
309
+ var x = extractTitleAttributeFromText(e1);
310
+ var y = extractTitleAttributeFromText(e2);
311
+ return ((x < y) ? -1 : ((x > y) ? 1 : 0));
312
312
  };
313
313
 
314
314
  jQuery.fn.dataTableExt.oSort['timeline-details-desc'] = function(e1,e2) {
315
- var x = extractTitleAttributeFromText(e1);
316
- var y = extractTitleAttributeFromText(e2);
317
- return ((x < y) ? 1 : ((x > y) ? -1 : 0));
315
+ var x = extractTitleAttributeFromText(e1);
316
+ var y = extractTitleAttributeFromText(e2);
317
+ return ((x < y) ? 1 : ((x > y) ? -1 : 0));
318
318
  };
319
319
 
320
320
  function initTable() {
321
- return $("#timeline-table").dataTable({
322
- "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
323
- "sPaginationType": "bootstrap",
324
- "oLanguage": {
325
- "sLengthMenu": "_MENU_ records per page"
326
- },
327
- "iDisplayLength": 100,
328
- "bRetrieve": true,
329
- // Force a predictive order for event types, invoices and payments
330
- "aaSorting": [[1, 'desc'], [4, 'asc'], [3, 'desc']],
331
- "aoColumns": [
332
- { "sType": 'date' },
333
- { "sType": 'date' },
334
- null,
335
- { "sType": 'timeline-event' },
336
- { "sType": 'timeline-details' },
337
- null,
338
- null
339
- ]
340
- });
321
+ return $("#timeline-table").dataTable({
322
+ "sDom": "<'row-fluid'<'span6'l><'span6 tableSearch'f>r>t<'row-fluid clearfix'<'span6 pull-left'i><'span6 pages pull-right'p>>",
323
+ "sPaginationType": "bootstrap",
324
+ "oLanguage": {
325
+ "sLengthMenu": "_MENU_ records per page"
326
+ },
327
+ "iDisplayLength": 100,
328
+ "bRetrieve": true,
329
+ // Force a predictive order for event types, invoices and payments
330
+ "aaSorting": [[1, 'desc'], [4, 'asc'], [3, 'desc']],
331
+ "aoColumns": [
332
+ { "sType": 'date' },
333
+ { "sType": 'date' },
334
+ null,
335
+ { "sType": 'timeline-event' },
336
+ { "sType": 'timeline-details' },
337
+ null,
338
+ null
339
+ ]
340
+ });
341
341
  }
342
342
 
343
343
  function filterEachNode(rows) {
344
- var bundle = $("#bundles").val();
345
- var event_to_filter = $('#event_types').val().toUpperCase();
344
+ var bundle = $("#bundles").val();
345
+ var event_to_filter = $('#event_types').val().toUpperCase();
346
346
 
347
347
  for (i = 0; i < rows.length; i++)
348
348
  {
349
- tr = $(rows[i]);
350
-
351
- //filter bundles
352
- if (bundle == "" || tr.attr("title").split(",").indexOf(bundle) >= 0) {
353
- //first level filtering, so can remove hide
354
- tr.removeClass("hide");
355
- }
356
- else {
357
- //remove tr's not under this filter mode
358
- tr.addClass("hide");
359
- }
349
+ tr = $(rows[i]);
360
350
 
361
- //filter events
362
- if ("ALL" != event_to_filter)
363
- filterEvents(tr, event_to_filter);
351
+ //filter bundles
352
+ if (bundle == "" || tr.attr("title").split(",").indexOf(bundle) >= 0) {
353
+ //first level filtering, so can remove hide
354
+ tr.removeClass("hide");
355
+ }
356
+ else {
357
+ //remove tr's not under this filter mode
358
+ tr.addClass("hide");
359
+ }
364
360
 
365
- //add more filters here
366
- //do not unhide any rows
367
- }
361
+ //filter events
362
+ if ("ALL" != event_to_filter)
363
+ filterEvents(tr, event_to_filter);
368
364
 
365
+ //add more filters here
366
+ //do not unhide any rows
367
+ }
369
368
  }
370
369
 
371
370
  function filterEvents(tr, event_to_filter) {
372
- tr_event_type = tr.data().event_type;
371
+ tr_event_type = tr.data().event_type;
373
372
 
374
- core_events = ["INVOICE", "PAYMENT"]; //events which are not entitlements
373
+ core_events = ["INVOICE", "PAYMENT"]; //events which are not entitlements
375
374
 
376
- //is tr event not an event in question
377
- tr_event_does_not_match_filter = ("ENTITLEMENT" != event_to_filter &&
378
- tr_event_type != event_to_filter);
375
+ //is tr event not an event in question
376
+ tr_event_does_not_match_filter = ("ENTITLEMENT" != event_to_filter &&
377
+ tr_event_type != event_to_filter);
379
378
 
380
- //tr event is not an entitlement
381
- tr_event_is_not_entitlement = ("ENTITLEMENT" == event_to_filter &&
382
- core_events.indexOf(tr_event_type) >= 0);
379
+ //tr event is not an entitlement
380
+ tr_event_is_not_entitlement = ("ENTITLEMENT" == event_to_filter &&
381
+ core_events.indexOf(tr_event_type) >= 0);
383
382
 
384
- if ( tr_event_does_not_match_filter || tr_event_is_not_entitlement )
385
- {
386
- //add hide to all who dont deserve the filter
387
- tr.addClass("hide");
388
- }
383
+ if ( tr_event_does_not_match_filter || tr_event_is_not_entitlement )
384
+ {
385
+ //add hide to all who dont deserve the filter
386
+ tr.addClass("hide");
387
+ }
389
388
  }
390
389
 
391
390
  function filterTable()
392
391
  {
393
- var dataTable = initTable();
394
- var all_nodes = dataTable.fnGetNodes();
392
+ var dataTable = initTable();
393
+ var all_nodes = dataTable.fnGetNodes();
395
394
 
396
- filterEachNode(all_nodes);
395
+ filterEachNode(all_nodes);
397
396
 
398
- //my rows are filtered, draw table
399
- dataTable.fnDraw();
397
+ //my rows are filtered, draw table
398
+ dataTable.fnDraw();
400
399
  }
401
400
 
402
401
 
403
402
  $(document).ready(function() {
404
- disableLinks();
405
- // When going through the pages of the table, disable links as needed
406
- $('#timeline-table').bind('draw', function (e) {
407
- disableLinks();
408
- });
403
+ disableLinks();
404
+ // When going through the pages of the table, disable links as needed
405
+ $('#timeline-table').bind('draw', function (e) {
406
+ disableLinks();
407
+ });
409
408
 
410
- initTable();
409
+ initTable();
411
410
 
412
- $("#bundles, #event_types").change(filterTable);
413
- filterTable();
411
+ $("#bundles, #event_types").change(filterTable);
412
+ filterTable();
414
413
  });
415
414
  <% end %>
@@ -1,115 +1,119 @@
1
1
  <%= form_for @account, :html => {:class => 'form-horizontal'} do |f| %>
2
- <fieldset>
3
- <div class="control-group">
4
- <%= f.label :name, 'Name *', :class => 'control-label' %>
5
- <div class="controls">
6
- <%= f.text_field :name, :class => 'input-small', :required => true %>
7
- </div>
8
- </div>
9
- <div class="control-group">
10
- <%= f.label :first_name_length, 'First name length', :class => 'control-label' %>
11
- <div class="controls">
12
- <%= f.text_field :first_name_length, :class => 'input-small' %>
13
- </div>
14
- </div>
15
- <div class="control-group">
16
- <%= f.label :external_key, 'External key *', :class => 'control-label' %>
17
- <div class="controls">
18
- <%= f.text_field :external_key, :class => 'input-small', :required => true %>
19
- </div>
20
- </div>
21
- <div class="control-group">
22
- <%= f.label :email, 'Email *', :class => 'control-label' %>
23
- <div class="controls">
24
- <%= f.text_field :email, :class => 'input-small', :required => true %>
25
- </div>
26
- </div>
27
- <div class="control-group">
28
- <%= f.label :bill_cycle_day_local, 'Bill cycle day', :class => 'control-label' %>
29
- <div class="controls">
30
- <%= f.text_field :bill_cycle_day_local, :class => 'input-small' %>
31
- </div>
32
- </div>
33
- <div class="control-group">
34
- <%= f.label :currency, 'Currency', :class => 'control-label' %>
35
- <div class="controls">
36
- <%= f.select :currency, currencies, {}, :class => 'input-small' %>
37
- </div>
38
- </div>
39
- <div class="control-group">
40
- <%= f.label :time_zone, 'Timezone', :class => 'control-label' %>
41
- <div class="controls">
42
- <%= f.collection_select :time_zone, ActiveSupport::TimeZone.all, :formatted_offset, :to_s, :class => 'input-large' %>
43
- </div>
44
- </div>
45
- <div class="control-group">
46
- <%= f.label :address1, 'Address line 1', :class => 'control-label' %>
47
- <div class="controls">
48
- <%= f.text_field :address1, :class => 'input-small' %>
49
- </div>
50
- </div>
51
- <div class="control-group">
52
- <%= f.label :address2, 'Address line 2', :class => 'control-label' %>
53
- <div class="controls">
54
- <%= f.text_field :address2, :class => 'input-small' %>
55
- </div>
56
- </div>
57
- <div class="control-group">
58
- <%= f.label :postal_code, 'Zip code', :class => 'control-label' %>
59
- <div class="controls">
60
- <%= f.text_field :postal_code, :class => 'input-small' %>
61
- </div>
62
- </div>
63
- <div class="control-group">
64
- <%= f.label :company, 'Company', :class => 'control-label' %>
65
- <div class="controls">
66
- <%= f.text_field :company, :class => 'input-small' %>
67
- </div>
68
- </div>
69
- <div class="control-group">
70
- <%= f.label :city, 'City', :class => 'control-label' %>
71
- <div class="controls">
72
- <%= f.text_field :city, :class => 'input-small' %>
73
- </div>
74
- </div>
75
- <div class="control-group">
76
- <%= f.label :state, 'State', :class => 'control-label' %>
77
- <div class="controls">
78
- <%= f.text_field :state, :class => 'input-small' %>
79
- </div>
80
- </div>
81
- <div class="control-group">
82
- <%= f.label :country, 'Country', :class => 'control-label' %>
83
- <div class="controls">
84
- <%= f.country_select :country, {priority: %w(US CA), prompt: 'Please select a country'}, :class => 'input-large' %>
85
- </div>
86
- </div>
87
- <div class="control-group">
88
- <%= f.label :locale, 'Locale', :class => 'control-label' %>
89
- <div class="controls">
90
- <%= f.text_field :locale, :class => 'input-small' %>
91
- </div>
92
- </div>
93
- <div class="control-group">
94
- <%= f.label :phone, 'Phone', :class => 'control-label' %>
95
- <div class="controls">
96
- <%= f.text_field :phone, :class => 'input-small' %>
97
- </div>
98
- </div>
99
- <div class="control-group">
100
- <%= f.label :is_migrated, 'Migrated?', :class => 'control-label' %>
101
- <div class="controls">
102
- <%= f.check_box :is_migrated, :class => 'input-small' %>
103
- </div>
104
- </div>
105
- <div class="control-group">
106
- <%= f.label :is_notified_for_invoices, 'Notified for invoices?', :class => 'control-label' %>
107
- <div class="controls">
108
- <%= f.check_box :is_notified_for_invoices, :class => 'input-small' %>
2
+ <fieldset class="newAccountForm clearfix">
3
+ <div class="groupWrapper span6 pull-left">
4
+ <div class="control-group">
5
+ <%= f.label :name, 'Name *', :class => 'control-label' %>
6
+ <div class="controls">
7
+ <%= f.text_field :name, :class => 'input-small', :required => true %>
8
+ </div>
9
+ </div>
10
+ <div class="control-group">
11
+ <%= f.label :first_name_length, 'First name length', :class => 'control-label' %>
12
+ <div class="controls">
13
+ <%= f.text_field :first_name_length, :class => 'input-small' %>
14
+ </div>
15
+ </div>
16
+ <div class="control-group">
17
+ <%= f.label :external_key, 'External key *', :class => 'control-label' %>
18
+ <div class="controls">
19
+ <%= f.text_field :external_key, :class => 'input-small', :required => true %>
20
+ </div>
21
+ </div>
22
+ <div class="control-group">
23
+ <%= f.label :email, 'Email *', :class => 'control-label' %>
24
+ <div class="controls">
25
+ <%= f.text_field :email, :class => 'input-small', :required => true %>
26
+ </div>
27
+ </div>
28
+ <div class="control-group">
29
+ <%= f.label :bill_cycle_day_local, 'Bill cycle day', :class => 'control-label' %>
30
+ <div class="controls">
31
+ <%= f.text_field :bill_cycle_day_local, :class => 'input-small' %>
32
+ </div>
33
+ </div>
34
+ <div class="control-group">
35
+ <%= f.label :currency, 'Currency', :class => 'control-label' %>
36
+ <div class="controls">
37
+ <%= f.select :currency, currencies, {}, :class => 'input-small' %>
38
+ </div>
39
+ </div>
40
+ <div class="control-group">
41
+ <%= f.label :time_zone, 'Timezone', :class => 'control-label' %>
42
+ <div class="controls">
43
+ <%= f.collection_select :time_zone, ActiveSupport::TimeZone.all, :formatted_offset, :to_s, :class => 'input-large' %>
44
+ </div>
45
+ </div>
46
+ <div class="control-group">
47
+ <%= f.label :address1, 'Address line 1', :class => 'control-label' %>
48
+ <div class="controls">
49
+ <%= f.text_field :address1, :class => 'input-small' %>
50
+ </div>
51
+ </div>
52
+ <div class="control-group">
53
+ <%= f.label :address2, 'Address line 2', :class => 'control-label' %>
54
+ <div class="controls">
55
+ <%= f.text_field :address2, :class => 'input-small' %>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ <div class="groupWrapper span6 pull-left">
60
+ <div class="control-group">
61
+ <%= f.label :postal_code, 'Zip code', :class => 'control-label' %>
62
+ <div class="controls">
63
+ <%= f.text_field :postal_code, :class => 'input-small' %>
64
+ </div>
65
+ </div>
66
+ <div class="control-group">
67
+ <%= f.label :company, 'Company', :class => 'control-label' %>
68
+ <div class="controls">
69
+ <%= f.text_field :company, :class => 'input-small' %>
70
+ </div>
71
+ </div>
72
+ <div class="control-group">
73
+ <%= f.label :city, 'City', :class => 'control-label' %>
74
+ <div class="controls">
75
+ <%= f.text_field :city, :class => 'input-small' %>
76
+ </div>
77
+ </div>
78
+ <div class="control-group">
79
+ <%= f.label :state, 'State', :class => 'control-label' %>
80
+ <div class="controls">
81
+ <%= f.text_field :state, :class => 'input-small' %>
82
+ </div>
83
+ </div>
84
+ <div class="control-group">
85
+ <%= f.label :country, 'Country', :class => 'control-label' %>
86
+ <div class="controls">
87
+ <%= f.country_select :country, {priority: %w(US CA), prompt: 'Please select a country'}, :class => 'input-large' %>
88
+ </div>
89
+ </div>
90
+ <div class="control-group">
91
+ <%= f.label :locale, 'Locale', :class => 'control-label' %>
92
+ <div class="controls">
93
+ <%= f.text_field :locale, :class => 'input-small' %>
94
+ </div>
95
+ </div>
96
+ <div class="control-group">
97
+ <%= f.label :phone, 'Phone', :class => 'control-label' %>
98
+ <div class="controls">
99
+ <%= f.text_field :phone, :class => 'input-small' %>
100
+ </div>
101
+ </div>
102
+ <div class="control-group">
103
+ <%= f.label :is_migrated, 'Migrated?', :class => 'control-label' %>
104
+ <div class="controls">
105
+ <%= f.check_box :is_migrated, :class => 'input-small' %>
106
+ </div>
107
+ </div>
108
+ <div class="control-group">
109
+ <%= f.label :is_notified_for_invoices, 'Notified for invoices?', :class => 'control-label' %>
110
+ <div class="controls">
111
+ <%= f.check_box :is_notified_for_invoices, :class => 'input-small' %>
112
+ </div>
109
113
  </div>
110
114
  </div>
111
115
 
112
- <div class="form-actions">
116
+ <div class="form-actions pull-left">
113
117
  <%= button_tag 'Create account', :class => 'btn btn-primary' %>
114
118
  </div>
115
119
  </fieldset>
@@ -1,3 +1,5 @@
1
+ <h3 class="pageHeader">Accounts: <%= link_to 'Create new account', new_account_path %></h3>
2
+
1
3
  <table id="accounts-table" class="table table-condensed">
2
4
  <thead>
3
5
  <tr>
@@ -16,12 +18,10 @@
16
18
  </tbody>
17
19
  </table>
18
20
 
19
- <h3><%= link_to 'Create new account', new_account_path %></h3>
20
-
21
21
  <%= javascript_tag do %>
22
22
  $(document).ready(function() {
23
23
  $('#accounts-table').dataTable({
24
- "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
24
+ "sDom": "<'row-fluid'<'span6'l><'span6 tableSearch'f>r>t<'row-fluid clearfix'<'span6 pull-left'i><'span6 pages pull-right'p>>",
25
25
  "sPaginationType": "bootstrap",
26
26
  "bProcessing": true,
27
27
  "bServerSide": true,
@@ -1,3 +1,5 @@
1
+ <h3 class="pageHeader">Account: <%= link_to "Billing timeline", kaui_engine.account_timeline_path(@account.account_id) %></h3>
2
+
1
3
  <dl class="dl-horizontal">
2
4
  <dt>Id:</dt>
3
5
  <dd><%= @account.account_id %>&nbsp;</dd>
@@ -92,7 +94,6 @@
92
94
  <dt>New base subscription:</dt>
93
95
  <dd><%= link_to "Create", kaui_engine.new_subscription_path(:params => {:account_id => @account.account_id, :product_category => "BASE"}), :class => "btn btn-mini" %></dd>
94
96
  </dl>
95
- <h2><%= link_to "Billing timeline", kaui_engine.account_timeline_path(@account.account_id) %></h2>
96
97
  <% if @payment_methods.present? %>
97
98
  <%= render :partial => "kaui/payment_methods/payment_methods_table", :locals => {:account_id => @account.account_id, :payment_methods => @payment_methods} %>
98
99
  <% end %>
@@ -1,3 +1,5 @@
1
+ <h3 class="pageHeader">Bundles</h3>
2
+
1
3
  <table id="bundles-table" class="table table-condensed">
2
4
  <thead>
3
5
  <tr>
@@ -17,7 +19,7 @@
17
19
  <%= javascript_tag do %>
18
20
  $(document).ready(function() {
19
21
  $('#bundles-table').dataTable({
20
- "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
22
+ "sDom": "<'row-fluid'<'span6'l><'span6 tableSearch'f>r>t<'row-fluid clearfix'<'span6 pull-left'i><'span6 pages pull-right'p>>",
21
23
  "sPaginationType": "bootstrap",
22
24
  "bProcessing": true,
23
25
  "bServerSide": true,
@@ -1,3 +1,5 @@
1
+ <h3 class="pageHeader">Custom Fields</h3>
2
+
1
3
  <table id="custom_fields-table" class="table table-condensed">
2
4
  <thead>
3
5
  <tr>
@@ -16,7 +18,7 @@
16
18
  <%= javascript_tag do %>
17
19
  $(document).ready(function() {
18
20
  $('#custom_fields-table').dataTable({
19
- "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
21
+ "sDom": "<'row-fluid'<'span6'l><'span6 tableSearch'f>r>t<'row-fluid clearfix'<'span6 pull-left'i><'span6 pages pull-right'p>>",
20
22
  "sPaginationType": "bootstrap",
21
23
  "bProcessing": true,
22
24
  "bServerSide": true,
@@ -1,3 +1,5 @@
1
+ <h3 class="pageHeader">Invoices</h3>
2
+
1
3
  <table id="invoices-table" class="table table-condensed">
2
4
  <thead>
3
5
  <tr>
@@ -18,7 +20,7 @@
18
20
  <%= javascript_tag do %>
19
21
  $(document).ready(function() {
20
22
  $('#invoices-table').dataTable({
21
- "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
23
+ "sDom": "<'row-fluid'<'span6'l><'span6 tableSearch'f>r>t<'row-fluid clearfix'<'span6 pull-left'i><'span6 pages pull-right'p>>",
22
24
  "sPaginationType": "bootstrap",
23
25
  "bProcessing": true,
24
26
  "bServerSide": true,
@@ -7,16 +7,16 @@
7
7
  <%= csrf_meta_tags %>
8
8
  </head>
9
9
  <body>
10
- <div class="navbar navbar-inverse">
10
+ <div class="kauiNav navbar navbar-inverse">
11
11
  <div class="navbar-inner">
12
12
  <div class="container">
13
13
  <ul class="nav">
14
14
  <li <%= "class='active'" if params[:controller] == 'accounts' %>><%= link_to "Accounts", kaui_engine.accounts_path %></li>
15
15
  <li <%= "class='active'" if params[:controller] == 'bundles' %>><%= link_to "Bundles", kaui_engine.bundles_path %></li>
16
16
  <li <%= "class='active'" if params[:controller] == 'payments' %>><%= link_to "Payments", kaui_engine.payments_path %></li>
17
- <li <%= "class='active'" if params[:controller] == 'payment_methods' %>><%= link_to "Payment methods", kaui_engine.payment_methods_path %></li>
17
+ <li <%= "class='active'" if params[:controller] == 'payment_methods' %>><%= link_to "Payment Methods", kaui_engine.payment_methods_path %></li>
18
18
  <li <%= "class='active'" if params[:controller] == 'invoices' %>><%= link_to "Invoices", kaui_engine.invoices_path %></li>
19
- <li <%= "class='active'" if params[:controller] == 'tag_definitions' %>><%= link_to "Tag definitions", kaui_engine.tag_definitions_path %></li>
19
+ <li <%= "class='active'" if params[:controller] == 'tag_definitions' %>><%= link_to "Tag Definitions", kaui_engine.tag_definitions_path %></li>
20
20
  <li <%= "class='active'" if params[:controller] == 'tags' %>><%= link_to "Tags", kaui_engine.tags_path %></li>
21
21
  <li <%= "class='active'" if params[:controller] == 'custom_fields' %>><%= link_to "Custom Fields", kaui_engine.custom_fields_path %></li>
22
22
  </ul>
@@ -1,3 +1,5 @@
1
+ <h3 class="pageHeader">Payment Methods</h3>
2
+
1
3
  <table id="paymentMethods-table" class="table table-condensed">
2
4
  <thead>
3
5
  <tr>
@@ -18,7 +20,7 @@
18
20
  <%= javascript_tag do %>
19
21
  $(document).ready(function() {
20
22
  $('#paymentMethods-table').dataTable({
21
- "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
23
+ "sDom": "<'row-fluid'<'span6'l><'span6 tableSearch'f>r>t<'row-fluid clearfix'<'span6 pull-left'i><'span6 pages pull-right'p>>",
22
24
  "sPaginationType": "bootstrap",
23
25
  "bProcessing": true,
24
26
  "bServerSide": true,
@@ -1,3 +1,5 @@
1
+ <h3 class="pageHeader">Payments</h3>
2
+
1
3
  <table id="payments-table" class="table table-condensed">
2
4
  <thead>
3
5
  <tr>
@@ -18,7 +20,7 @@
18
20
  <%= javascript_tag do %>
19
21
  $(document).ready(function() {
20
22
  $('#payments-table').dataTable({
21
- "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
23
+ "sDom": "<'row-fluid'<'span6'l><'span6 tableSearch'f>r>t<'row-fluid clearfix'<'span6 pull-left'i><'span6 pages pull-right'p>>",
22
24
  "sPaginationType": "bootstrap",
23
25
  "bProcessing": true,
24
26
  "bServerSide": true,
@@ -1,4 +1,4 @@
1
- <h2>Tag definitions</h2>
1
+ <h3 class="pageHeader">Tag Definitions: <%= link_to 'New Tag Definition', kaui_engine.new_tag_definition_path %></h3>
2
2
 
3
3
  <table id='invoice_table' class='table table-condensed data-table'>
4
4
  <thead>
@@ -31,6 +31,4 @@
31
31
  </tbody>
32
32
  </table>
33
33
 
34
- <br />
35
-
36
- <%= link_to 'New Tag definition', kaui_engine.new_tag_definition_path, :class => 'btn btn-primary' %>
34
+ <br />
@@ -1,4 +1,4 @@
1
- <h2>Tag definition</h2>
1
+ <h2>Tag Definition</h2>
2
2
  <dl class='dl-horizontal'>
3
3
  <dt>Id:</dt>
4
4
  <dd><%= @tag_definition.id %>&nbsp;</dd>
@@ -1,3 +1,5 @@
1
+ <h3 class="pageHeader">Tags</h3>
2
+
1
3
  <table id="tags-table" class="table table-condensed">
2
4
  <thead>
3
5
  <tr>
@@ -16,7 +18,7 @@
16
18
  <%= javascript_tag do %>
17
19
  $(document).ready(function() {
18
20
  $('#tags-table').dataTable({
19
- "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
21
+ "sDom": "<'row-fluid'<'span6'l><'span6 tableSearch'f>r>t<'row-fluid clearfix'<'span6 pull-left'i><'span6 pages pull-right'p>>",
20
22
  "sPaginationType": "bootstrap",
21
23
  "bProcessing": true,
22
24
  "bServerSide": true,
data/kaui.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.add_dependency 'money-rails', '~> 0.8.1'
28
28
  s.add_dependency 'd3_rails', '~> 3.2.8'
29
29
  s.add_dependency 'twitter-bootstrap-rails', '~> 2.2.8'
30
- s.add_dependency 'killbill-client', '~> 0.10.7'
30
+ s.add_dependency 'killbill-client', '~> 0.13.0'
31
31
  s.add_dependency 'devise', '~> 3.0.2'
32
32
  s.add_dependency 'cancan', '~> 1.6.10'
33
33
  s.add_dependency 'carmen-rails', '~> 1.0.0'
data/lib/kaui/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kaui
2
- VERSION = '0.8.4'
2
+ VERSION = '0.9.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Killbill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-17 00:00:00.000000000 Z
11
+ date: 2015-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.10.7
89
+ version: 0.13.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.10.7
96
+ version: 0.13.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: devise
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -497,7 +497,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
497
497
  version: '0'
498
498
  requirements: []
499
499
  rubyforge_project:
500
- rubygems_version: 2.4.6
500
+ rubygems_version: 2.2.2
501
501
  signing_key:
502
502
  specification_version: 4
503
503
  summary: Killbill Admin UI mountable engine