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 +4 -4
- data/app/views/chaltron/users/self_edit.html.erb +1 -1
- data/app/views/locales/en.yml +1 -0
- data/app/views/locales/it.yml +1 -0
- data/config/chaltron_navigation.rb +1 -0
- data/lib/chaltron/version.rb +1 -1
- data/lib/templates/erb/scaffold/_form.html.erb +6 -0
- data/lib/templates/erb/scaffold/index.html.erb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa3862b6ce470a12e241e9938603b9ea5611f8c1
|
4
|
+
data.tar.gz: c374450f7e42c771abf4b6ceb7d82348bcfc8010
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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('.
|
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 %>
|
data/app/views/locales/en.yml
CHANGED
data/app/views/locales/it.yml
CHANGED
@@ -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)/
|
data/lib/chaltron/version.rb
CHANGED
@@ -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-
|
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.
|
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-
|
11
|
+
date: 2017-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|