udongo 7.0.4 → 7.1.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: 2c135da722b47005ae85f69f4332dfd5edea9786
4
- data.tar.gz: 612200fa1b054962a8fcdacfcedc3a0d19a7c4d5
3
+ metadata.gz: eddb02b167743ffd6166fd062885708cbed71b8e
4
+ data.tar.gz: ae1daa1b79d85919ba66c7c049c29e5ca028390b
5
5
  SHA512:
6
- metadata.gz: 284c83ab7857f6029f2c417152ba4ee910d1482f91e5f9e22c62c71dd046c47957490718460be94ef853d40876f6865d6de192ca1fcc5cb0aff240bf5a020514
7
- data.tar.gz: eb2aad280cf8381279b4235c349cf707833a96ca6203246ed12437b1493cc7a6a36ffe9267a5e2b99245e37133b9305e090da2eee7541b2f114f2baef7aafab6
6
+ metadata.gz: 006cfec31bf00e912a00b8ad55ed524171eb3d5074f26d1996c37a40999b9ae719cf33949aab5b1fb813e83a192d6eb12ea94113c98dd8d8f90f9173a7fb2372
7
+ data.tar.gz: c7543cb1308bef013dd4eb24db9cc3e7e63b587c01d5a0948b5a7686c2bcf0eadfe296f6a2a0e2fb99aa7bab99ad9bfccbf5ef6cd93acd27cc4e929e430d3045
@@ -4,7 +4,8 @@ class Backend::EmailsController < Backend::BaseController
4
4
  before_action -> { breadcrumb.add t('b.emails'), backend_emails_path }
5
5
 
6
6
  def index
7
- @emails = paginate Email.order('id DESC')
7
+ @search = Email.search(params[:q])
8
+ @emails = paginate @search.result(distinct: true).order('sent_at DESC')
8
9
  end
9
10
 
10
11
  def show
@@ -8,7 +8,7 @@ class Backend::TranslationWithSeoForm < Udongo::Form
8
8
  attribute :seo_custom, String
9
9
  attribute :seo_slug, String
10
10
 
11
- validates :seo_slug, presence: true
11
+ validates :seo_slug, :seo_title, :seo_description, presence: true
12
12
 
13
13
  def initialize(model, translation, seo)
14
14
  @model = model
@@ -0,0 +1,40 @@
1
+ <div class="card filter">
2
+ <div class="card-block">
3
+ <%= search_form_for [:backend, @search] do |f| %>
4
+ <div class="row">
5
+ <div class="form-group col-md-6 col-lg-3">
6
+ <%= f.search_field :to_name_cont, class: 'form-control', placeholder: 'Naam' %>
7
+ </div>
8
+
9
+ <div class="form-group col-md-6 col-lg-3">
10
+ <%= f.search_field :to_email_cont, class: 'form-control', placeholder: 'E-mailadres' %>
11
+ </div>
12
+
13
+ <div class="form-group col-md-6 col-lg-3">
14
+ <%= f.search_field :cc_cont, class: 'form-control', placeholder: 'CC' %>
15
+ </div>
16
+
17
+ <div class="form-group col-md-6 col-lg-3">
18
+ <%= f.search_field :bcc_cont, class: 'form-control mb-2', placeholder: 'BCC' %>
19
+ </div>
20
+ </div>
21
+
22
+ <div class="row">
23
+ <div class="form-group col-md-5 col-lg-4">
24
+ <%= f.search_field :subject_cont, class: 'form-control', placeholder: 'Onderwerp' %>
25
+ </div>
26
+
27
+ <div class="form-group col-md-7 col-lg-8">
28
+ <%= f.search_field :html_content_cont, class: 'form-control', placeholder: 'Berichtinhoud' %>
29
+ </div>
30
+ </div>
31
+
32
+ <div class="form-inline">
33
+ <div class="form-group">
34
+ <%= f.submit class: 'btn btn-primary mr-2' %>
35
+ <%= link_to t('b.cancel'), backend_emails_path, class: 'btn btn-secondary btn-sm' %>
36
+ </div>
37
+ </div>
38
+ <% end %>
39
+ </div>
40
+ </div>
@@ -1,4 +1,5 @@
1
1
  <%= render 'backend/breadcrumbs' %>
2
+ <%= render 'filter' %>
2
3
 
3
4
  <% if @emails.any? %>
4
5
  <table class="table table-striped table-hover">
data/changelog.md CHANGED
@@ -1,3 +1,9 @@
1
+ 7.1.0 - 2017-10-19
2
+ --
3
+ * Make the SEO title and description mandatory for Backend::TranslationWithSeoForm
4
+ * Add e-mail filters for the most common fields.
5
+
6
+
1
7
  7.0.4 - 2017-10-05
2
8
  --
3
9
  * Bugfix: make sure the tag autocomplete is locale specific.
@@ -1,3 +1,3 @@
1
1
  module Udongo
2
- VERSION = '7.0.4'
2
+ VERSION = '7.1.0'
3
3
  end
@@ -0,0 +1,12 @@
1
+ FactoryGirl.define do
2
+ factory 'backend/translation_with_seo_form' do
3
+ seo_slug 'foo'
4
+ seo_title 'Foo'
5
+ seo_description 'This is a foo'
6
+
7
+ model { create(:page) }
8
+ translation { model.translation(:nl) }
9
+ seo { model.seo(:nl) }
10
+ initialize_with { new(model, translation, seo) }
11
+ end
12
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: udongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.4
4
+ version: 7.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davy Hellemans
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-10-05 00:00:00.000000000 Z
12
+ date: 2017-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -661,6 +661,7 @@ files:
661
661
  - app/views/backend/email_templates/edit_translation.html.erb
662
662
  - app/views/backend/email_templates/index.html.erb
663
663
  - app/views/backend/email_templates/new.html.erb
664
+ - app/views/backend/emails/_filter.html.erb
664
665
  - app/views/backend/emails/index.html.erb
665
666
  - app/views/backend/emails/show.html.erb
666
667
  - app/views/backend/forms/_fields.html.erb
@@ -941,6 +942,7 @@ files:
941
942
  - spec/factories/stores.rb
942
943
  - spec/factories/tagged_items.rb
943
944
  - spec/factories/tags.rb
945
+ - spec/factories/translation_with_seo_forms.rb
944
946
  - spec/factories/users.rb
945
947
  - spec/support/concerns/cacheable.rb
946
948
  - spec/support/concerns/commentable.rb