thecore_ui_commons 2.1.11 → 2.2.1

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: 35e973462c71403a22fa0a4c9b0f0e6ae829d033b6fccf41dc9598a29d416ada
4
- data.tar.gz: 0071ef14d44a19a2de1186117a8c40734aed3985b7c7af301d6e6b1288e228db
3
+ metadata.gz: 22fc1b731dd63b862e6e6f9a9f16c34bcb21618908c5c5d2b12590b022e348c3
4
+ data.tar.gz: 459c1dbc2745ab0d0f7a9335b5612a878eb254ae788eecc95a423783eb3c3bf0
5
5
  SHA512:
6
- metadata.gz: 1bb36d792e8bfdef00a42a874d451701ad788bad55d4f9a3ebcd5293a6be0e3540d5758d8875394916c4c22a8f5dbd30f672c5dcf6eabe7ac09f145699942cc1
7
- data.tar.gz: f3fb4c6db173f572d4745fd54fd27e85b44b93c524cebdf100d83c71305141fcd27e5dc471f463a6a0d02e8e3d70cec9f211ca3122180e311ef412d1fc7fc306
6
+ metadata.gz: e6c971bb19426bad1792434f12454b2b67581734a2eb251a8c6268df0d5485ab193f5032670d2b4e7804a9e1171c4729e6828d447f6d143acb11362c8b29a61e
7
+ data.tar.gz: 51ec4751e96c3174318626be339d9add75a259880ebf15e1671e8c7c318492684550da7aea0f277d594e1211ba8ebeec453a9683c894109c532389f7060ca140
@@ -16,3 +16,7 @@
16
16
  *= require_self
17
17
  */
18
18
  @import 'actiontext.scss';
19
+
20
+ #new_user div {
21
+ margin-bottom: .5em;
22
+ }
@@ -1,24 +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.text_field :login, autofocus: true, :class => "form-control", placeholder: t(:login) %>
4
+ <%= f.text_field :login, autofocus: true, :class => "form-control", placeholder: t("devise.sessions.new.login") %>
5
5
  </div>
6
6
 
7
7
  <div class="field">
8
- <%= f.password_field :password, autocomplete: "off", :class => "form-control", placeholder: t(:password) %>
8
+ <%= f.password_field :password, autocomplete: "off", :class => "form-control", placeholder: t("devise.sessions.new.password") %>
9
9
  </div>
10
10
 
11
11
  <% if devise_mapping.rememberable? -%>
12
- <div class="checkbox">
13
- <label>
14
- <%= f.check_box :remember_me %>
15
- <%=t "activerecord.attributes.user.remember_me" %>
16
- </label>
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>
17
17
  </div>
18
18
  <% end -%>
19
19
 
20
20
  <div class="actions">
21
- <%= f.submit t("devise.sessions.new.sign_in"), :class => "btn" %>
21
+ <%= f.submit t("devise.sessions.new.sign_in"), class: "btn" %>
22
22
 
23
23
  <%= render "devise/shared/links" %>
24
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
- out << stylesheet_link_tag("#{get_folder base_s}/#{basename}", media: 'all', 'data-turbolinks-track' => true) if base_s.any?
11
- out << javascript_include_tag("#{get_folder base_j}/#{basename}", 'data-turbolinks-track' => true) if base_j.any?
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
- out.join("\n ").html_safe
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)
@@ -1,5 +1,10 @@
1
1
  en:
2
2
  current_user: Current User
3
+ devise:
4
+ sessions:
5
+ new:
6
+ login: Login
7
+ password: Password
3
8
  hello: Hello World
4
9
  dashboard: Dashboard
5
10
  contact: Help us
@@ -7,6 +7,11 @@ it:
7
7
  sign_out: "Uscita"
8
8
  advanced: Impostazioni
9
9
  main_records: Anagrafiche
10
+ devise:
11
+ sessions:
12
+ new:
13
+ login: Login
14
+ password: Password
10
15
  errors:
11
16
  messages:
12
17
  invalid: contiene caratteri invalidi
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiCommons
2
- VERSION = '2.1.11'
2
+ VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`}"
3
3
  end
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.1.11
4
+ version: 2.2.1
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-08-26 00:00:00.000000000 Z
11
+ date: 2020-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_background_jobs