adva 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/app/views/admin/page/categories/new.html.erb +12 -12
- data/config/initializers/menus.rb +1 -1
- data/lib/adva/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7baa47c6075f9798d681ccacd0033d3d5c36891e9b2e1387884dfffb6d5c29c7
|
4
|
+
data.tar.gz: aa3f0dada6d1cc160c1f6eccc4a4d30ecbc62121b0c40809ac3eb1da1def7380
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3876f18f354af37a91a8a8b1782b117e4fa48e228dc4fd360f13fc5c2c626510cf4890d5a981739723e15bc2c62126dbb389dac79127157dbfb7ecb205755b78
|
7
|
+
data.tar.gz: ab617bdb379883b286fe903d17d7b6c4c06a7a1dbc6f0f64fe314e09f36f3a54f380a7267e0363b0177f64b665942756ef3f2cbd46333505640299ff7164b33a
|
data/.gitignore
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
<h2><%= t(:'adva.categories.titles.new') %></h2>
|
2
|
-
|
2
|
+
|
3
3
|
<%= form_for [:admin, @section, @category] do |f| %>
|
4
|
-
|
4
|
+
<fieldset>
|
5
5
|
<div class="col">
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
<%= f.text_field :title, :label => true, :hint => :'adva.hints.categories' %>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<% unless @section.categories.size < 2 %>
|
10
10
|
<div class="col">
|
11
|
-
|
12
|
-
|
13
|
-
</
|
14
|
-
|
15
|
-
|
11
|
+
<%= f.select :parent_id, @section.categories.collect {|p| [p.title, p.id] unless p == @category }.compact, { :include_blank => true, :label => true } %>
|
12
|
+
<span class="hint" for="category_parent_id"><%= t :'adva.categories.hints.parent_setting' %></span>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
15
|
+
</fieldset>
|
16
16
|
|
17
|
-
<% save_or_cancel_links(f, :
|
17
|
+
<% save_or_cancel_links(f, cancel_url: [:admin, @section, :categories]) %>
|
18
18
|
<% end %>
|
19
19
|
|
@@ -150,7 +150,7 @@ module Menus
|
|
150
150
|
menu :left, :class => 'left', :type => Sections::Content
|
151
151
|
menu :actions, :class => 'actions' do
|
152
152
|
activates object.parent.find(:categories)
|
153
|
-
item :new, :
|
153
|
+
item :new, content: link_to("New", [:new, :admin, @section, :category])
|
154
154
|
if @category && !@category.new_record?
|
155
155
|
item :edit, :action => :edit, :resource => @category
|
156
156
|
item :delete, :content => link_to("Delete", [:admin, @section, @category], :method => :delete)
|
data/lib/adva/version.rb
CHANGED