flexa_lib 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- data/flexa_lib.gemspec +2 -2
- data/lib/generators/flexa_lib/crud/templates/view_edit.html.erb +14 -0
- data/lib/generators/flexa_lib/crud/templates/view_form.html.erb +6 -0
- data/lib/generators/flexa_lib/crud/templates/view_new.html.erb +12 -0
- data/lib/generators/flexa_lib/crud/templates/view_print.html.erb +13 -0
- data/lib/generators/flexa_lib/crud/templates/view_show.html.erb +15 -0
- data/lib/generators/flexa_lib/crud/templates/view_sidebar.html.erb +13 -0
- data/lib/generators/flexa_lib/crud/templates/view_signin.html.erb +36 -0
- data/lib/generators/flexa_lib/crud/templates/view_signup.html.erb +52 -0
- data/lib/generators/flexa_lib/crud/templates/view_tables.html.erb +11 -0
- data/lib/generators/flexa_lib/crud/templates/view_text.html.erb +18 -0
- data/lib/generators/flexa_lib/lookup/templates/lookup_view.erb +9 -0
- metadata +14 -3
data/flexa_lib.gemspec
CHANGED
@@ -7,7 +7,7 @@ require 'flexa_lib/version'
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = 'flexa_lib'
|
9
9
|
# s.version = FlexaLib::VERSION
|
10
|
-
s.version = '0.1.
|
10
|
+
s.version = '0.1.16'
|
11
11
|
s.platform = Gem::Platform::RUBY
|
12
12
|
|
13
13
|
s.authors = ['Allan Freitas','Marcio Sfalsin']
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
|
19
19
|
s.rubyforge_project = "flexa_lib"
|
20
20
|
|
21
|
-
s.files = Dir["vendor/**/*.{scss,js,png,css,jpg,gif}"] + Dir.glob('lib/**/*.rb')+ %w(LICENSE README.txt init.rb flexa_lib.gemspec Gemfile Rakefile)
|
21
|
+
s.files = Dir["vendor/**/*.{scss,js,png,css,jpg,gif}"] + Dir.glob('lib/**/*.{rb,erb}')+ %w(LICENSE README.txt init.rb flexa_lib.gemspec Gemfile Rakefile)
|
22
22
|
# s.files = 'git ls-files'.split("\n")
|
23
23
|
# s.test_files = 'git ls-files -- {test,spec,features}/*'.split("\n")
|
24
24
|
# s.executables = 'git ls-files -- bin/*'.split("\n").map{ |f| File.basename(f) }
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<%%=flexa_flash_message%>
|
2
|
+
|
3
|
+
<%%= semantic_form_for @<%= resource_name %> do |f| %>
|
4
|
+
|
5
|
+
<%%= render :partial=>'form', :locals=>{:f=>f} %>
|
6
|
+
|
7
|
+
<%%= flexa_fixed_toolbar "<%= plural_model_name %>", <%= plural_resource_name %>_path do %>
|
8
|
+
<%%= flexa_submit_button %>
|
9
|
+
<%%= flexa_cancel_button_to @<%= resource_name %> %>
|
10
|
+
<%%= flexa_delete_button_to @<%= resource_name %> %>
|
11
|
+
<%%end%>
|
12
|
+
|
13
|
+
<%%end%>
|
14
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%%=flexa_flash_message%>
|
2
|
+
|
3
|
+
<%%= semantic_form_for @<%= resource_name %> do |f| %>
|
4
|
+
|
5
|
+
<%%= render :partial=>'form', :locals=>{:f=>f} %>
|
6
|
+
|
7
|
+
<%%= flexa_fixed_toolbar "<%= plural_model_name %>", <%= plural_resource_name %>_path do %>
|
8
|
+
<%%= flexa_submit_button %>
|
9
|
+
<%%= flexa_cancel_button_to @<%= resource_name %> %>
|
10
|
+
<%%end%>
|
11
|
+
|
12
|
+
<%%end%>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<%%=flexa_flash_message%>
|
2
|
+
|
3
|
+
|
4
|
+
<%%= semantic_form_for @<%= plural_resource_name %> do |f| %>
|
5
|
+
|
6
|
+
<%%= render :partial=>'form', :locals=>{:f=>f} %>
|
7
|
+
|
8
|
+
<%%= flexa_fixed_toolbar "<%= plural_model_name %>", <%= plural_resource_name %>_path do %>
|
9
|
+
<%%= flexa_submit_button "Imprimir" %>
|
10
|
+
<%%= flexa_cancel_button_to @<%= resource_name %> %>
|
11
|
+
<%%end%>
|
12
|
+
|
13
|
+
<%% end %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%%=flexa_flash_message%>
|
2
|
+
|
3
|
+
<%% @readonly = true %>
|
4
|
+
|
5
|
+
<%%= semantic_form_for @<%= resource_name %> do |f| %>
|
6
|
+
|
7
|
+
<%%= render :partial=>'form', :locals=>{:f=>f} %>
|
8
|
+
|
9
|
+
<%%= flexa_fixed_toolbar "<%= plural_model_name %>", <%= plural_resource_name %>_path do %>
|
10
|
+
<%%= flexa_cancel_button_to @<%= resource_name %> %>
|
11
|
+
<%%= flexa_edit_button_to @<%= resource_name %> %>
|
12
|
+
<%%= flexa_delete_button_to @<%= resource_name %> %>
|
13
|
+
<%%end%>
|
14
|
+
|
15
|
+
<%% end %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div class="block notice">
|
2
|
+
<h3>Simple Block</h3>
|
3
|
+
<div class="content">
|
4
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
<div class="block">
|
8
|
+
<h3>Links</h3>
|
9
|
+
<ul class="navigation">
|
10
|
+
<li><a href="#">Link 1</a></li>
|
11
|
+
<li><a href="#">Link 2</a></li>
|
12
|
+
</ul>
|
13
|
+
</div>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<h1><%= options[:app_name] %></h1>
|
2
|
+
<div class="block" id="block-login">
|
3
|
+
<h2>Login Box</h2>
|
4
|
+
<div class="content login">
|
5
|
+
<div class="flash">
|
6
|
+
<%% flash.each do |type, message| -%>
|
7
|
+
<div class="message <%%= type %>">
|
8
|
+
<p><%%= message %></p>
|
9
|
+
</div>
|
10
|
+
<%% end -%>
|
11
|
+
</div>
|
12
|
+
<%% form_tag({:action => :create}, :class => 'form login') do -%>
|
13
|
+
<div class="group wat-cf">
|
14
|
+
<div class="left">
|
15
|
+
<label class="label right">Login</label>
|
16
|
+
</div>
|
17
|
+
<div class="right">
|
18
|
+
<%%= text_field_tag :login, @login, :class => 'text_field' %>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<div class="group wat-cf">
|
22
|
+
<div class="left">
|
23
|
+
<label class="label right">Password</label>
|
24
|
+
</div>
|
25
|
+
<div class="right">
|
26
|
+
<%%= password_field_tag :password, nil, :class => 'text_field' %>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
<div class="group navform wat-cf">
|
30
|
+
<div class="right">
|
31
|
+
<input type="submit" class="button" value="Sign in" />
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
<%% end -%>
|
35
|
+
</div>
|
36
|
+
</div>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<h1><%= options[:app_name] %></h1>
|
2
|
+
<div class="block" id="block-signup">
|
3
|
+
<h2>Sign up</h2>
|
4
|
+
<div class="content">
|
5
|
+
<div class="flash">
|
6
|
+
<%% flash.each do |type, message| -%>
|
7
|
+
<div class="message <%%= type %>">
|
8
|
+
<p><%%= message %></p>
|
9
|
+
</div>
|
10
|
+
<%% end -%>
|
11
|
+
</div>
|
12
|
+
<%% form_for :<%= resource_name %>, :url => <%= controller_routing_path %>_path, :html => { :class => 'form' } do |f| -%>
|
13
|
+
<div class="group wat-cf">
|
14
|
+
<div class="left">
|
15
|
+
<label class="label">Login</label>
|
16
|
+
</div>
|
17
|
+
<div class="right">
|
18
|
+
<%%= f.text_field :login, :class => 'text_field' %>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<div class="group wat-cf">
|
22
|
+
<div class="left">
|
23
|
+
<label class="label">Email</label>
|
24
|
+
</div>
|
25
|
+
<div class="right">
|
26
|
+
<%%= f.text_field :email, :class => 'text_field' %>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
<div class="group wat-cf">
|
30
|
+
<div class="left">
|
31
|
+
<label class="label">Password</label>
|
32
|
+
</div>
|
33
|
+
<div class="right">
|
34
|
+
<%%= f.password_field :password, :class => 'text_field' %>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div class="group">
|
39
|
+
<div class="left wat-cf">
|
40
|
+
<label class="label">Password</label>
|
41
|
+
</div>
|
42
|
+
<div class="right">
|
43
|
+
<%%= f.password_field :password_confirmation, :class => 'text_field' %>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div class="group navform">
|
48
|
+
<input type="submit" class="button" value="Sign up" />
|
49
|
+
</div>
|
50
|
+
<%% end -%>
|
51
|
+
</div>
|
52
|
+
</div>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%%= flexa_table_for @<%= plural_resource_name %> do -%>
|
2
|
+
<% columns.each do |col| -%>
|
3
|
+
<%% column :<%=col.name%>, :title=>"<%=col.name.capitalize%>" %>
|
4
|
+
<% end %>
|
5
|
+
<%% end -%>
|
6
|
+
|
7
|
+
<%%= flexa_fixed_toolbar "<%= plural_model_name %>", <%= plural_resource_name %>_path do %>
|
8
|
+
<%%= flexa_add_button_to <%= resource_name.capitalize %> %>
|
9
|
+
<%%= flexa_search_tool <%= resource_name.capitalize %> %>
|
10
|
+
<%%= flexa_will_paginate @<%= plural_resource_name %> %>
|
11
|
+
<%% end %>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<div class="block" id="block-text">
|
2
|
+
<div class="content">
|
3
|
+
<h2 class="title"><%= resource_name.capitalize %></h2>
|
4
|
+
<div class="inner">
|
5
|
+
<p class="first">
|
6
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. <span class="hightlight">Excepteur sint occaecat cupidatat non proident</span>, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
7
|
+
</p>
|
8
|
+
<p> <span class="small">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore</span></p>
|
9
|
+
<p> <span class="gray">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore</span></p>
|
10
|
+
<hr />
|
11
|
+
<p>
|
12
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. <span class="hightlight">Excepteur sint occaecat cupidatat non proident</span>, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
13
|
+
</p>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<%% content_for :sidebar, render(:partial => 'sidebar') -%>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<%%= flexa_table_for @<%=class_name.pluralize.downcase%>, :actions=>[:select] do -%>
|
2
|
+
<% if colunas.count>0 %><% colunas.each do |coluna| %><%% column :<%=coluna%>, :title=>"<%=coluna.humanize%>" %><% end %><% end %>
|
3
|
+
<%% end -%>
|
4
|
+
|
5
|
+
<%%= flexa_fixed_toolbar "<%=class_name.pluralize%>", lookups_<%=class_name.pluralize.downcase%>_path do %>
|
6
|
+
<%%= flexa_lookup_search_tool <%=class_name%> %>
|
7
|
+
<%%= flexa_will_paginate @<%=class_name.pluralize.downcase%>, :page_links => false %>
|
8
|
+
<%%= flexa_generic_button_to("","#","remove", :onclick=>"window.parent.$('#div_"+params[:fill].split(",").first.to_s+"').modal('hide');") %>
|
9
|
+
<%% end %>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexa_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 59
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 16
|
10
|
+
version: 0.1.16
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Allan Freitas
|
@@ -223,6 +223,17 @@ files:
|
|
223
223
|
- lib/generators/flexa_lib/lookup/templates/lookup_controller.rb
|
224
224
|
- lib/generators/flexa_lib/lookup/lookup_generator_test.rb
|
225
225
|
- lib/flexa_lib.rb
|
226
|
+
- lib/generators/flexa_lib/crud/templates/view_print.html.erb
|
227
|
+
- lib/generators/flexa_lib/crud/templates/view_signup.html.erb
|
228
|
+
- lib/generators/flexa_lib/crud/templates/view_text.html.erb
|
229
|
+
- lib/generators/flexa_lib/crud/templates/view_sidebar.html.erb
|
230
|
+
- lib/generators/flexa_lib/crud/templates/view_signin.html.erb
|
231
|
+
- lib/generators/flexa_lib/crud/templates/view_tables.html.erb
|
232
|
+
- lib/generators/flexa_lib/crud/templates/view_edit.html.erb
|
233
|
+
- lib/generators/flexa_lib/crud/templates/view_new.html.erb
|
234
|
+
- lib/generators/flexa_lib/crud/templates/view_show.html.erb
|
235
|
+
- lib/generators/flexa_lib/crud/templates/view_form.html.erb
|
236
|
+
- lib/generators/flexa_lib/lookup/templates/lookup_view.erb
|
226
237
|
- LICENSE
|
227
238
|
- README.txt
|
228
239
|
- init.rb
|