wco_models 3.1.0.50 → 3.1.0.51

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a17b1b5e607a9bd18dd6f5b6f6b4346e8af8b25460bc07a622fd7c54d1cf928
4
- data.tar.gz: c5974d04bbac542b413cf6d444694e5e319271c27a4a399accd8c811a2609166
3
+ metadata.gz: d2aedb50a30f432370f7a3d8dce814677b95ec4373a64594aae4b142fa7d31fa
4
+ data.tar.gz: 6b56ff81d8003170a2d7f2035de0b5708ece56d3bf2576c5f4f2575b8d4e5a84
5
5
  SHA512:
6
- metadata.gz: f8645a7db623d91cafd9f3a828e2e9ceabea87dcbefecdadfe21cddd74f51cbad6622535466179e9d004b9201d5f89a11157ceeb629bc551def8ea450045fbe2
7
- data.tar.gz: 538e2e1e434bd37a7995f8b51b573f424aa76eb483cc196eb34d3c0dc89f18346f238ebbea244c586db976c8cfdf33be1ae6946a6b69aa6fa3f3b7c45bf7eacb
6
+ metadata.gz: a1887e0d49d5d016b0e672118428bc71809375a1989ee89fa1976eafb8edf4976c27f5733550fd8b82921b49e819c14d3f158a7c56d469660de33fe6c36c3b01
7
+ data.tar.gz: d2330182a059ad9699441c11e40fd81b7867ec7650cad664a4f8848b56f7f8c2bbf8f712a4104f72b9950ed1c7f0483524921de999def7410a3935a319e0a727
@@ -33,7 +33,7 @@ class Wco::Leadset
33
33
  field :customer_id
34
34
  def customer_id
35
35
  if self[:customer_id].blank?
36
- return nil if !email
36
+ return nil if !email.present?
37
37
  existing = Stripe::Customer.search({ query: "email: '#{email}'" })
38
38
  # puts! existing, 'existing'
39
39
  if existing.data.present?
@@ -47,4 +47,8 @@ class Wco::Leadset
47
47
  self[:customer_id]
48
48
  end
49
49
 
50
+ def to_s
51
+ company_url
52
+ end
53
+
50
54
  end
@@ -1,6 +1,6 @@
1
1
 
2
- .galleries-edit.max-width
3
- = render 'title', :gallery => @gallery
4
- = render 'form', :gallery => @gallery, :url => gallery_path( @gallery )
5
- = render 'thumbs', :gallery => @gallery
6
- = render 'wco/photos/multinew', :gallery => @gallery
2
+ .galleries-edit.maxwidth
3
+ = render 'title', gallery: @gallery
4
+ = render 'form', gallery: @gallery, :url => gallery_path( @gallery )
5
+ = render 'thumbs', gallery: @gallery
6
+ = render 'wco/photos/multinew', gallery: @gallery
@@ -1,3 +1,3 @@
1
1
 
2
- .invoices-index.max-width
2
+ .invoices-index.maxwidth
3
3
  = render 'index_table', invoices: @invoices
@@ -1,5 +1,5 @@
1
1
 
2
- .invoices-new.max-width
2
+ .invoices-new.maxwidth
3
3
 
4
4
  .row
5
5
  .col.s12.col.m6.col-md-offset-3
@@ -3,7 +3,7 @@
3
3
  - url = invoice.persisted? ? invoice_path( invoice.id ) : create_invoice_stripe_path
4
4
 
5
5
 
6
- .invoices-new.max-width
6
+ .invoices-new.maxwidth
7
7
 
8
8
  .row
9
9
  .col.s12.col.m6.col-md-offset-3
@@ -1,7 +1,7 @@
1
1
 
2
2
  - i = @invoice
3
3
 
4
- .invoices-show.max-width
4
+ .invoices-show.maxwidth
5
5
  %h5 Invoice ##{i.number}
6
6
 
7
7
  %ul
@@ -1,7 +1,7 @@
1
1
 
2
- .leads-edit.max-width
2
+ .leads-edit.maxwidth
3
3
  .header
4
- %h2.title Edit lead #{ link_to @lead.name, lead_path(@lead) }
4
+ %h5.title Edit lead #{ link_to @lead.name, lead_path(@lead) }
5
5
 
6
6
  = render 'form', :lead => @lead
7
7
 
@@ -1,5 +1,5 @@
1
1
 
2
- .leads-new.max-width
2
+ .leads-new.maxwidth
3
3
  .row
4
4
  .col-sm-12.col-md-6
5
5
  %h1 New Lead
@@ -7,10 +7,6 @@
7
7
  = f.label :company_url
8
8
  = f.text_field :company_url
9
9
 
10
- .input-field
11
- = f.label :name
12
- = f.text_field :name
13
-
14
10
  .input-field
15
11
  = f.label :email
16
12
  = f.text_field :email
@@ -1,4 +1,4 @@
1
1
 
2
- .leadsets-edit.max-width
3
- %h1 Edit leadset `#{link_to @leadset.name, leadset_path(@leadset)}`
4
- = render 'form', :leadset => @leadset
2
+ .leadsets-edit.maxwidth
3
+ %h1 Edit leadset `#{link_to @leadset.company_url, leadset_path(@leadset)}`
4
+ = render 'form', leadset: @leadset
@@ -1,5 +1,5 @@
1
1
 
2
- .leadsets-new.max-width
2
+ .leadsets-new.maxwidth
3
3
  .row
4
4
  .col.s6.col-sm-offset-3
5
5
  %h5 New Leadset
@@ -1,5 +1,5 @@
1
1
 
2
- .products-edit.max-width
2
+ .products-edit.maxwidth
3
3
  %h5 Edit product
4
4
 
5
5
  = render 'form', product: @product
@@ -1,5 +1,5 @@
1
1
 
2
- .products-show.max-width
2
+ .products-show.maxwidth
3
3
  %h5
4
4
  Show product #{@product.name}
5
5
  = link_to '[~]', edit_product_path( @product )
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
- .videos-edit.max-width
3
+ .videos-edit.maxwidth
4
4
  .header
5
- %h3.title Edit Video
5
+ %h5.title Edit Video
6
6
 
7
7
  = render 'form', :video => @video
@@ -1,5 +1,5 @@
1
1
 
2
- .videos-new.max-width
2
+ .videos-new.maxwidth
3
3
  .header
4
4
  %h3.title New Video
5
5
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  - video ||= @video
3
3
 
4
- .videos-show.max-width
4
+ .videos-show.maxwidth
5
5
  .row
6
6
  = link_to '[Back]', videos_path
7
7
 
@@ -1,4 +1,4 @@
1
1
 
2
2
  Rails.application.config.assets.version = '1.0'
3
3
 
4
- Rails.application.config.assets.precompile += %w( wco/application.js )
4
+ Rails.application.config.assets.precompile += %w( wco/application.js wco/application.css )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.50
4
+ version: 3.1.0.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev