flockonus-nifty-generators 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/lib/generators/nifty/scaffold/templates/views/erb/edit.html.erb +7 -6
- data/lib/generators/nifty/scaffold/templates/views/erb/index.html.erb +7 -6
- data/lib/generators/nifty/scaffold/templates/views/erb/new.html.erb +2 -2
- data/lib/generators/nifty/scaffold/templates/views/erb/show.html.erb +3 -3
- metadata +4 -4
data/CHANGELOG
CHANGED
@@ -1,14 +1,15 @@
|
|
1
|
-
<%% title "
|
2
|
-
|
3
|
-
<%= render_form %>
|
4
|
-
|
1
|
+
<%% title "<%= singular_name.titleize %> : Editando" %>
|
5
2
|
<%- if actions? :show, :index -%>
|
6
3
|
<p>
|
7
4
|
<%- if action? :show -%>
|
8
|
-
<%%= link_to "
|
5
|
+
<%%= link_to "Exibir", <%= item_path :instance_variable => true %> %> |
|
9
6
|
<%- end -%>
|
10
7
|
<%- if action? :index -%>
|
11
|
-
<%%= link_to "
|
8
|
+
<%%= link_to "Listagem", <%= items_path %> %>
|
12
9
|
<%- end -%>
|
13
10
|
</p>
|
14
11
|
<%- end -%>
|
12
|
+
|
13
|
+
<%= render_form %>
|
14
|
+
|
15
|
+
|
@@ -1,5 +1,8 @@
|
|
1
1
|
<%% title "<%= plural_name.titleize %>" %>
|
2
2
|
|
3
|
+
<%- if action? :new -%>
|
4
|
+
<p><%%= link_to "Adicionar +", <%= item_path :action => :new %> %></p>
|
5
|
+
<%- end -%>
|
3
6
|
<table>
|
4
7
|
<tr>
|
5
8
|
<%- for attribute in model_attributes -%>
|
@@ -12,18 +15,16 @@
|
|
12
15
|
<td><%%= <%= instance_name %>.<%= attribute.name %> %></td>
|
13
16
|
<%- end -%>
|
14
17
|
<%- if action? :show -%>
|
15
|
-
<td><%%= link_to "
|
18
|
+
<td><%%= link_to "Exibir", <%= item_path %> %></td>
|
16
19
|
<%- end -%>
|
17
20
|
<%- if action? :edit -%>
|
18
|
-
<td><%%= link_to "
|
21
|
+
<td><%%= link_to "Editar", <%= item_path :action => :edit %> %></td>
|
19
22
|
<%- end -%>
|
20
23
|
<%- if action? :destroy -%>
|
21
|
-
<td><%%= link_to "
|
24
|
+
<td><%%= link_to "Excluir", <%= item_path %>, :confirm => 'Esta ação não tem volta, deseja prosseguir?', :method => :delete %></td>
|
22
25
|
<%- end -%>
|
23
26
|
</tr>
|
24
27
|
<%% end %>
|
25
28
|
</table>
|
26
29
|
|
27
|
-
|
28
|
-
<p><%%= link_to "New <%= singular_name.titleize %>", <%= item_path :action => :new %> %></p>
|
29
|
-
<%- end -%>
|
30
|
+
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<%% title "
|
1
|
+
<%% title "Adicionar <%= singular_name.titleize %>" %>
|
2
2
|
|
3
3
|
<%= render_form %>
|
4
4
|
|
5
5
|
<%- if action? :index -%>
|
6
|
-
<p><%%= link_to "
|
6
|
+
<p><%%= link_to "Listagem", <%= items_path %> %></p>
|
7
7
|
<%- end -%>
|
@@ -9,12 +9,12 @@
|
|
9
9
|
|
10
10
|
<p>
|
11
11
|
<%- if action? :edit -%>
|
12
|
-
<%%= link_to "
|
12
|
+
<%%= link_to "Editar", <%= item_path :action => :edit, :instance_variable => true %> %> |
|
13
13
|
<%- end -%>
|
14
14
|
<%- if action? :destroy -%>
|
15
|
-
<%%= link_to "
|
15
|
+
<%%= link_to "Deletar", <%= item_path :instance_variable => true %>, :confirm => 'Are you sure?', :method => :delete %> |
|
16
16
|
<%- end -%>
|
17
17
|
<%- if action? :index -%>
|
18
|
-
<%%= link_to "
|
18
|
+
<%%= link_to "Listagem", <%= items_path %> %>
|
19
19
|
<%- end -%>
|
20
20
|
</p>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flockonus-nifty-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Fabiano PS
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-04 00:00:00 -02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|