chaltron 0.2.1 → 0.2.2

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: 05a13abc4ad845f203f5bba857a7d37c18c8f54d
4
- data.tar.gz: 4f6a5d0a79985eff3353cf52f80a8bbdec9e8138
3
+ metadata.gz: fa3862b6ce470a12e241e9938603b9ea5611f8c1
4
+ data.tar.gz: c374450f7e42c771abf4b6ceb7d82348bcfc8010
5
5
  SHA512:
6
- metadata.gz: d6691806668a36b92eb8d98478573ce632cc401f3b0188d793f062c8dbd6be49492d67fe66b2e0f1ef8638435e84f466f6550770ceb3927c50d3aa97ec55f518
7
- data.tar.gz: 8c40fe325c0c5b529ec59480684e89fb73f9fabcdeac2aa104988d8c9134939d9fbf820cc62942570f82f8ca133db2f5bab719e00784d5fff0bf674110323024
6
+ metadata.gz: 4d6388a2f00a4d513b8526361eb3a2afd4b8f3f3c42ae2171671ced014c6972686f01b3ebd271e232b925432f8fe93dc99e2e7b165dd2457c0008ed9eb3183bf
7
+ data.tar.gz: c7a6123b4ba50a6e07799e6a6e43b4cc4dda6dc64caa55bd2aab35f588aa1ed9a1f20fda7db81ebcd078158e74be97ff32696e9ad1adceb2f6626b796bcc623b
@@ -13,7 +13,7 @@
13
13
  </fieldset>
14
14
  <% end %>
15
15
  <%= f.form_group class: 'form-actions' do %>
16
- <%= f.submit t('.title'), class: 'btn btn-primary' %>
16
+ <%= f.submit t('.submit'), class: 'btn btn-primary' %>
17
17
  <%= link_to self_show_users_path, class: 'btn btn-default pull-right' do %>
18
18
  <%= icon :times, t('chaltron.common.cancel') %>
19
19
  <% end %>
@@ -49,6 +49,7 @@ en:
49
49
  title: Edit %{user}
50
50
  self_edit:
51
51
  title: Edit account data
52
+ submit: Submit
52
53
  form:
53
54
  cancel_text: Cancel
54
55
  show:
@@ -49,6 +49,7 @@ it:
49
49
  title: Modifica %{user}
50
50
  self_edit:
51
51
  title: Modifica dati personali
52
+ submit: Invia
52
53
  form:
53
54
  cancel_text: Annulla
54
55
  show:
@@ -18,6 +18,7 @@ SimpleNavigation::Configuration.run do |navigation|
18
18
  }, logs_url, highlights_on: /\/logs/ if can?(:read, Log)
19
19
  end if can?(:manage, User) or can?(:read, Log)
20
20
  primary.item :logged, current_user.display_name.html_safe, nil do |user|
21
+ user.dom_class = 'dropdown-menu-right'
21
22
  user.item :self_edit, { icon: 'fa fa-fw fa-user',
22
23
  text: I18n.t('chaltron.menu.self_show') }, self_show_users_url,
23
24
  highlights_on: /\/self_(show|edit|update)/
@@ -1,3 +1,3 @@
1
1
  module Chaltron
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
@@ -1,7 +1,13 @@
1
1
  <%%= bootstrap_form_for(@<%= singular_table_name %>, layout: :horizontal) do |f| %>
2
2
 
3
3
  <% attributes.each do |attribute| -%>
4
+ <% if attribute.field_type == :check_box -%>
5
+ <%%= f.form_group :<%= attribute.name %>, label: { text: '<%= attribute.name %>' } do %>
6
+ <%%= f.<%= attribute.field_type %> :<%= attribute.name %>, label: '' %>
7
+ <%% end -%>
8
+ <% else -%>
4
9
  <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
10
+ <% end -%>
5
11
  <% end -%>
6
12
 
7
13
  <%%= f.form_group class: 'form-actions' do %>
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
  </div>
25
25
  <hr>
26
- <%%= link_to new_<%= singular_table_name %>_path, class: 'btn btn-primary btn-large' do %>
26
+ <%%= link_to new_<%= singular_table_name %>_path, class: 'btn btn-primary btn-lg' do %>
27
27
  <%%= icon('plus') %> New
28
28
  <%% end %>
29
29
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chaltron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - vicvega
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-29 00:00:00.000000000 Z
11
+ date: 2017-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails