thecore_ui_commons 2.1.10 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/thecore_ui_commons/thecore.scss +4 -0
- data/app/views/devise/sessions/new.html.erb +8 -10
- data/config/initializers/thecore_ui_commons_helper.rb +11 -4
- data/config/locales/en.yml +5 -0
- data/config/locales/it.yml +5 -0
- data/lib/thecore_ui_commons/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06a8df5f9a81687f4ccaccfbfc1363433f9a54c3b18aae6208cb1c8bfe3dbaf7
|
4
|
+
data.tar.gz: bed2d2fbed49152adb8e51d8ce5cfa83f6046dca330b1b867e2f780c17b399b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 821aacd8af48f39ad04977a8895b4878fa820c84212fb2f59f6b976f1abc44c41c11c6f77229ba1dfdf379671c218335f7790dc556d16e2671a79eb29c9d1606
|
7
|
+
data.tar.gz: 17106c982fbbf904d7bd833af03460703ddb5e3fd303bba82f5d39e79c5adff33b5d8b525b4bb77eb1e3e4f1829ffef07449777f95e7b2c6a63db85d6defb6b4
|
@@ -1,26 +1,24 @@
|
|
1
1
|
<div class="col-md-4 col-md-offset-4">
|
2
2
|
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
3
3
|
<div class="field">
|
4
|
-
<%= f.
|
5
|
-
<%= f.text_field :login, autofocus: true, :class => "form-control" %>
|
4
|
+
<%= f.text_field :login, autofocus: true, :class => "form-control", placeholder: t("devise.sessions.new.login") %>
|
6
5
|
</div>
|
7
6
|
|
8
7
|
<div class="field">
|
9
|
-
<%= f.
|
10
|
-
<%= f.password_field :password, autocomplete: "off", :class => "form-control" %>
|
8
|
+
<%= f.password_field :password, autocomplete: "off", :class => "form-control", placeholder: t("devise.sessions.new.password") %>
|
11
9
|
</div>
|
12
10
|
|
13
11
|
<% if devise_mapping.rememberable? -%>
|
14
|
-
<div class="
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
12
|
+
<div class="form-check">
|
13
|
+
<%= f.check_box :remember_me, class: "form-check-input" %>
|
14
|
+
<label class="form-check-label" for="defaultCheck1">
|
15
|
+
<%=t "activerecord.attributes.user.remember_me" %>
|
16
|
+
</label>
|
19
17
|
</div>
|
20
18
|
<% end -%>
|
21
19
|
|
22
20
|
<div class="actions">
|
23
|
-
<%= f.submit t("devise.sessions.new.sign_in"), :
|
21
|
+
<%= f.submit t("devise.sessions.new.sign_in"), class: "btn" %>
|
24
22
|
|
25
23
|
<%= render "devise/shared/links" %>
|
26
24
|
</div>
|
@@ -2,15 +2,22 @@ module Helpers
|
|
2
2
|
module ThecoreUiCommonsHelper
|
3
3
|
def get_asset_tags_for(basename)
|
4
4
|
out = []
|
5
|
+
|
5
6
|
# Needs to reverse since Paths are traversed in the order they occur in the search path. By default, this means the files in app/assets take precedence, and will mask corresponding paths in lib and vendor.
|
6
7
|
Rails.application.config.assets.paths.reverse.each do |basedir|
|
7
8
|
base = "#{basedir}/**/#{basename}"
|
8
|
-
base_s = Dir["#{base}.scss"]
|
9
|
+
base_s = Dir["#{base}.{css,scss}"]
|
9
10
|
base_j = Dir["#{base}.js"]
|
10
|
-
|
11
|
-
out <<
|
11
|
+
|
12
|
+
(out << stylesheet_link_tag("#{get_folder base_s}/#{basename}", media: 'all', 'data-turbolinks-track' => true) if base_s.any?) rescue nil
|
13
|
+
(out << javascript_include_tag("#{get_folder base_j}/#{basename}", 'data-turbolinks-track' => true) if base_j.any?) rescue nil
|
12
14
|
end
|
13
|
-
|
15
|
+
|
16
|
+
# Application level assets
|
17
|
+
(out << stylesheet_link_tag('application', media: 'all', 'data-turbolinks-track' => true)) rescue nil
|
18
|
+
(out << javascript_include_tag('application', 'data-turbolinks-track' => true)) rescue nil
|
19
|
+
|
20
|
+
out.join("\n").html_safe
|
14
21
|
end
|
15
22
|
|
16
23
|
def get_folder(base)
|
data/config/locales/en.yml
CHANGED
data/config/locales/it.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_ui_commons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_background_jobs
|