asf_scaffold_generator 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/USAGE +11 -0
- data/asf_scaffold_generator.rb +68 -0
- data/templates/asf_common.css +5797 -0
- data/templates/asf_layout.rhtml +17 -0
- data/templates/asf_scaffold.css +76 -0
- data/templates/asf_view_edit.rhtml +0 -0
- data/templates/asf_view_list.rhtml +82 -0
- data/templates/asf_view_new.rhtml +0 -0
- data/templates/asf_view_show.rhtml +0 -0
- metadata +80 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title><%= model_name %>: <%%= controller.action_name %></title>
|
5
|
+
<%%= stylesheet_link_tag 'asf_scaffold' %>
|
6
|
+
<%%= stylesheet_link_tag 'asf_common' %>
|
7
|
+
<script type="text/javascript" src="http://na1.salesforce.com/js/functions.js"></script>
|
8
|
+
|
9
|
+
</head>
|
10
|
+
<body class="contact overviewPage">
|
11
|
+
|
12
|
+
<p style="color: green"><%%= flash[:notice] %></p>
|
13
|
+
|
14
|
+
<%%= @content_for_layout %>
|
15
|
+
|
16
|
+
</body>
|
17
|
+
</html>
|
@@ -0,0 +1,76 @@
|
|
1
|
+
body { background-color: #fff; color: #333; }
|
2
|
+
|
3
|
+
body, p, ol, ul, td, th {
|
4
|
+
background-repeat: repeat-x;
|
5
|
+
background-position: left top;
|
6
|
+
font-size: 75%;
|
7
|
+
font-family: 'Arial', 'Helvetica', sans-serif;
|
8
|
+
|
9
|
+
}
|
10
|
+
/*ptBody { font-size: 75%;} */
|
11
|
+
pre {
|
12
|
+
background-color: #eee;
|
13
|
+
padding: 10px;
|
14
|
+
font-size: 11px;
|
15
|
+
}
|
16
|
+
|
17
|
+
a { color: #000; }
|
18
|
+
a:visited { color: #666; }
|
19
|
+
a:hover { color: #fff; background-color:#000; }
|
20
|
+
|
21
|
+
.fieldWithErrors {
|
22
|
+
padding: 2px;
|
23
|
+
background-color: red;
|
24
|
+
display: table;
|
25
|
+
}
|
26
|
+
|
27
|
+
#ErrorExplanation {
|
28
|
+
width: 400px;
|
29
|
+
border: 2px solid red;
|
30
|
+
padding: 7px;
|
31
|
+
padding-bottom: 12px;
|
32
|
+
margin-bottom: 20px;
|
33
|
+
background-color: #f0f0f0;
|
34
|
+
}
|
35
|
+
|
36
|
+
#ErrorExplanation h2 {
|
37
|
+
text-align: left;
|
38
|
+
font-weight: bold;
|
39
|
+
padding: 5px 5px 5px 15px;
|
40
|
+
font-size: 12px;
|
41
|
+
margin: -7px;
|
42
|
+
background-color: #c00;
|
43
|
+
color: #fff;
|
44
|
+
}
|
45
|
+
|
46
|
+
#ErrorExplanation p {
|
47
|
+
color: #333;
|
48
|
+
margin-bottom: 0;
|
49
|
+
padding: 5px;
|
50
|
+
}
|
51
|
+
|
52
|
+
#ErrorExplanation ul li {
|
53
|
+
font-size: 12px;
|
54
|
+
list-style: square;
|
55
|
+
}
|
56
|
+
|
57
|
+
div.uploadStatus {
|
58
|
+
margin: 5px;
|
59
|
+
}
|
60
|
+
|
61
|
+
div.progressBar {
|
62
|
+
margin: 5px;
|
63
|
+
}
|
64
|
+
|
65
|
+
div.progressBar div.border {
|
66
|
+
background-color: #fff;
|
67
|
+
border: 1px solid grey;
|
68
|
+
width: 100%;
|
69
|
+
}
|
70
|
+
|
71
|
+
div.progressBar div.background {
|
72
|
+
background-color: #333;
|
73
|
+
height: 18px;
|
74
|
+
width: 0%;
|
75
|
+
}
|
76
|
+
|
File without changes
|
@@ -0,0 +1,82 @@
|
|
1
|
+
<table class="outer" width="100%" border="0" cellspacing="0" cellpadding="0">
|
2
|
+
<tr>
|
3
|
+
<td class="oRight">
|
4
|
+
<a name="skiplink">
|
5
|
+
<img src="http://na1.salesforce.com/s.gif" height='1' width='1' alt="Content Starts Here" class="skiplink"></a>
|
6
|
+
|
7
|
+
<div class="bPageTitle">
|
8
|
+
|
9
|
+
<div class="ptBody secondaryPalette">
|
10
|
+
|
11
|
+
<div class="content">
|
12
|
+
<img src="http://na1.salesforce.com/img/icon/contacts32.png" alt="<%= model_name %>" class="pageTitleIcon">
|
13
|
+
<h1 class="pageType noSecondHeader">All <%= model_name %></h1>
|
14
|
+
<div class="blank"> </div>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
</div>
|
18
|
+
<div class="ptBreadcrumb"></div>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<!-- Begin ListElement -->
|
22
|
+
<%% columns = [ <%= (model_name.constantize.content_columns.map { |column| "'#{column.name}'" }).join(', ') %> ] %>
|
23
|
+
|
24
|
+
<!-- WrappingClass -->
|
25
|
+
<div class="list<%= model_name %>">
|
26
|
+
<div class="bPageBlock secondaryPalette">
|
27
|
+
<div id="outertable" class="pbHeader">
|
28
|
+
<table class="outer" border="0" cellspacing="0" cellpadding="0" width="95%" >
|
29
|
+
<tr>
|
30
|
+
<td id="buttons" align="center">
|
31
|
+
<input name="save1" value=" Update Now " class="button" type="button" >
|
32
|
+
<%%= button_to 'New <%= singular_name %>', :action => 'new' %>
|
33
|
+
</td>
|
34
|
+
</tr></table>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div class="pbBody">
|
38
|
+
<table class="list" border="0" cellspacing="0" cellpadding="0">
|
39
|
+
<tr class="headerRow">
|
40
|
+
<th class="actionColumn" scope="col">Action</th>
|
41
|
+
<%% for column_name in columns; column = <%= model_name %>.columns_hash[column_name] %>
|
42
|
+
<th scope="col" class=""><a href="#" title="<%%= column.human_name %>"><%%= column.human_name %></a></th>
|
43
|
+
<%% end %>
|
44
|
+
</tr>
|
45
|
+
|
46
|
+
<%% for <%= singular_name %> in @<%= plural_name %> %>
|
47
|
+
<tr class=" dataRow <%%= cycle("even","odd") %> " onmouseout="if (typeof(hiOff) != 'undefined'){hiOff(this);}" onfocus="if (typeof(hiOn) != 'undefined'){hiOn(this);}" onblur="if (typeof(hiOff) != 'undefined'){hiOff(this);}" onmouseover="if (typeof(hiOn) != 'undefined'){hiOn(this);}">
|
48
|
+
<td class="actionColumn" >
|
49
|
+
<%%= link_to 'Edit', :action => 'edit', :id => <%= singular_name %> %>
|
50
|
+
|
|
51
|
+
<%%= link_to 'Del', { :action => 'destroy', :id => <%= singular_name %> }, :confirm => 'Are you sure?' %>
|
52
|
+
</td>
|
53
|
+
</td>
|
54
|
+
<%% for column_name in columns; column = <%= model_name %>.columns_hash[column_name] %>
|
55
|
+
<%% value = <%= singular_name %>.send(column.name) %>
|
56
|
+
<td class='dataCell'>
|
57
|
+
<%% unless column.reference_to %>
|
58
|
+
<%%= value ? link_to(value, :action => 'show', :id => <%= singular_name %>) : ' ' %>
|
59
|
+
<%% else %>
|
60
|
+
<%%= value ? link_to(column.reference_to,
|
61
|
+
{ :controller => column.reference_to.pluralize.underscore, :action=> 'show', :id => value }) : ' ' %>
|
62
|
+
<%% end %>
|
63
|
+
</td>
|
64
|
+
<%% end %>
|
65
|
+
</tr>
|
66
|
+
<%% end %>
|
67
|
+
</table>
|
68
|
+
|
69
|
+
</div> <!-- end pbbody --->
|
70
|
+
|
71
|
+
<div class="pbFooter secondaryPalette"><div class="bg"></div></div>
|
72
|
+
</div> <!-- end page block -->
|
73
|
+
</div><!-- list <%= singular_name %> -->
|
74
|
+
|
75
|
+
</td>
|
76
|
+
</tr>
|
77
|
+
</table>
|
78
|
+
|
79
|
+
<%%= link_to 'Previous page', { :page => @<%= singular_name %>_pages.current.previous } if @<%= singular_name %>_pages.current.previous %>
|
80
|
+
<%%= link_to 'Next page', { :page => @<%= singular_name %>_pages.current.next } if @<%= singular_name %>_pages.current.next %>
|
81
|
+
|
82
|
+
<br />
|
File without changes
|
File without changes
|
metadata
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.11
|
3
|
+
specification_version: 1
|
4
|
+
name: asf_scaffold_generator
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.0.1
|
7
|
+
date: 2006-02-22 00:00:00 -05:00
|
8
|
+
summary: ActiveSalesforce Generator provides additional salesforce aware scaffolding support.
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: dchasman@salesforce.com
|
12
|
+
homepage: http://rubyforge.org/projects/activesfdc/
|
13
|
+
rubyforge_project:
|
14
|
+
description:
|
15
|
+
autorequire:
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: false
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
authors:
|
29
|
+
- Doug Chasman
|
30
|
+
files:
|
31
|
+
- ./asf_scaffold
|
32
|
+
- ./USAGE
|
33
|
+
- ./asf_scaffold_generator.rb
|
34
|
+
- ./templates
|
35
|
+
- ./templates/asf_view_list.rhtml
|
36
|
+
- ./templates/asf_common.css
|
37
|
+
- ./templates/asf_view_show.rhtml
|
38
|
+
- ./templates/asf_scaffold.css
|
39
|
+
- ./templates/asf_view_edit.rhtml
|
40
|
+
- ./templates/asf_view_new.rhtml
|
41
|
+
- ./templates/asf_layout.rhtml
|
42
|
+
- templates/asf_view_list.rhtml
|
43
|
+
- templates/asf_common.css
|
44
|
+
- templates/asf_view_show.rhtml
|
45
|
+
- templates/asf_scaffold.css
|
46
|
+
- templates/asf_view_edit.rhtml
|
47
|
+
- templates/asf_view_new.rhtml
|
48
|
+
- templates/asf_layout.rhtml
|
49
|
+
- USAGE
|
50
|
+
test_files: []
|
51
|
+
|
52
|
+
rdoc_options: []
|
53
|
+
|
54
|
+
extra_rdoc_files:
|
55
|
+
- USAGE
|
56
|
+
executables: []
|
57
|
+
|
58
|
+
extensions: []
|
59
|
+
|
60
|
+
requirements: []
|
61
|
+
|
62
|
+
dependencies:
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: rails
|
65
|
+
version_requirement:
|
66
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.0.0
|
71
|
+
version:
|
72
|
+
- !ruby/object:Gem::Dependency
|
73
|
+
name: activesalesforce
|
74
|
+
version_requirement:
|
75
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 0.2.6
|
80
|
+
version:
|