bulma_form_rails 0.9.1 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,170 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module BulmaFormRails::FormPageHelpers - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ var index_rel_prefix = "../";
12
+ </script>
13
+
14
+ <script src="../js/navigation.js" defer></script>
15
+ <script src="../js/search.js" defer></script>
16
+ <script src="../js/search_index.js" defer></script>
17
+ <script src="../js/searcher.js" defer></script>
18
+ <script src="../js/darkfish.js" defer></script>
19
+
20
+ <link href="../css/fonts.css" rel="stylesheet">
21
+ <link href="../css/rdoc.css" rel="stylesheet">
22
+
23
+
24
+ <body id="top" role="document" class="module">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="../index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="../table_of_contents.html#pages">Pages</a>
34
+ <a href="../table_of_contents.html#classes">Classes</a>
35
+ <a href="../table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="class-metadata">
59
+
60
+
61
+
62
+
63
+
64
+ <!-- Method Quickref -->
65
+ <div id="method-list-section" class="nav-section">
66
+ <h3>Methods</h3>
67
+
68
+ <ul class="link-list" role="directory">
69
+ <li ><a href="#method-i-bulma_edit_form_page">#bulma_edit_form_page</a>
70
+ <li ><a href="#method-i-bulma_new_form_page">#bulma_new_form_page</a>
71
+ </ul>
72
+ </div>
73
+
74
+ </div>
75
+ </nav>
76
+
77
+ <main role="main" aria-labelledby="module-BulmaFormRails::FormPageHelpers">
78
+ <h1 id="module-BulmaFormRails::FormPageHelpers" class="module">
79
+ module BulmaFormRails::FormPageHelpers
80
+ </h1>
81
+
82
+ <section class="description">
83
+
84
+ <p><img src="../images/moderngeosystems_logo.png"></p>
85
+
86
+ <p>This Ruby on Rails Helper module allows easy and efficient web form page rendering.</p>
87
+
88
+ </section>
89
+
90
+ <section id="5Buntitled-5D" class="documentation-section">
91
+
92
+
93
+
94
+
95
+
96
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
97
+ <header>
98
+ <h3>Public Instance Methods</h3>
99
+ </header>
100
+
101
+ <div id="method-i-bulma_edit_form_page" class="method-detail ">
102
+ <div class="method-heading">
103
+ <span class="method-name">bulma_edit_form_page</span><span
104
+ class="method-args">(name, model, models_path, model_path)</span>
105
+ <span class="method-click-advice">click to toggle source</span>
106
+ </div>
107
+
108
+ <div class="method-description">
109
+ <p>Render a standard model edit form page.</p>
110
+ <ul><li>
111
+ <p><code>name</code> - a symbol representing the model name</p>
112
+ </li><li>
113
+ <p><code>model</code> - the model object</p>
114
+ </li><li>
115
+ <p><code>models_path</code> - the controller URL path for the action that renders the model collection</p>
116
+ </li><li>
117
+ <p><code>model_path</code> - the controller URL path for the action that renders this individual model</p>
118
+ </li></ul>
119
+
120
+ <div class="method-source-code" id="bulma_edit_form_page-source">
121
+ <pre><span class="ruby-comment"># File lib/bulma_form_rails/form_page_helpers.rb, line 23</span>
122
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">bulma_edit_form_page</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">model</span>, <span class="ruby-identifier">models_path</span>, <span class="ruby-identifier">model_path</span>)
123
+ <span class="ruby-identifier">render</span> <span class="ruby-value">partial:</span> <span class="ruby-string">&#39;bulma_form_rails/edit_form_page&#39;</span>, <span class="ruby-value">locals:</span> {<span class="ruby-value">name:</span> <span class="ruby-identifier">name</span>, <span class="ruby-value">model:</span> <span class="ruby-identifier">model</span>, <span class="ruby-value">models_path:</span> <span class="ruby-identifier">models_path</span>, <span class="ruby-value">model_path:</span> <span class="ruby-identifier">model_path</span>}
124
+ <span class="ruby-keyword">end</span></pre>
125
+ </div>
126
+ </div>
127
+
128
+
129
+ </div>
130
+
131
+ <div id="method-i-bulma_new_form_page" class="method-detail ">
132
+ <div class="method-heading">
133
+ <span class="method-name">bulma_new_form_page</span><span
134
+ class="method-args">(name, model, models_path)</span>
135
+ <span class="method-click-advice">click to toggle source</span>
136
+ </div>
137
+
138
+ <div class="method-description">
139
+ <p>Render a standard model creation form page.</p>
140
+ <ul><li>
141
+ <p><code>name</code> - a symbol representing the model name</p>
142
+ </li><li>
143
+ <p><code>model</code> - the model object</p>
144
+ </li><li>
145
+ <p><code>models_path</code> - the controller URL path for the action that renders the model collection</p>
146
+ </li></ul>
147
+
148
+ <div class="method-source-code" id="bulma_new_form_page-source">
149
+ <pre><span class="ruby-comment"># File lib/bulma_form_rails/form_page_helpers.rb, line 14</span>
150
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">bulma_new_form_page</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">model</span>, <span class="ruby-identifier">models_path</span>)
151
+ <span class="ruby-identifier">render</span> <span class="ruby-value">partial:</span> <span class="ruby-string">&#39;bulma_form_rails/new_form_page&#39;</span>, <span class="ruby-value">locals:</span> {<span class="ruby-value">name:</span> <span class="ruby-identifier">name</span>, <span class="ruby-value">model:</span> <span class="ruby-identifier">model</span>, <span class="ruby-value">models_path:</span> <span class="ruby-identifier">models_path</span>}
152
+ <span class="ruby-keyword">end</span></pre>
153
+ </div>
154
+ </div>
155
+
156
+
157
+ </div>
158
+
159
+ </section>
160
+
161
+ </section>
162
+ </main>
163
+
164
+
165
+ <footer id="validator-badges" role="contentinfo">
166
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
167
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
168
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
169
+ </footer>
170
+
@@ -0,0 +1,176 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module BulmaFormRails::HeaderAndFooterHelpers - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ var index_rel_prefix = "../";
12
+ </script>
13
+
14
+ <script src="../js/navigation.js" defer></script>
15
+ <script src="../js/search.js" defer></script>
16
+ <script src="../js/search_index.js" defer></script>
17
+ <script src="../js/searcher.js" defer></script>
18
+ <script src="../js/darkfish.js" defer></script>
19
+
20
+ <link href="../css/fonts.css" rel="stylesheet">
21
+ <link href="../css/rdoc.css" rel="stylesheet">
22
+
23
+
24
+ <body id="top" role="document" class="module">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="../index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="../table_of_contents.html#pages">Pages</a>
34
+ <a href="../table_of_contents.html#classes">Classes</a>
35
+ <a href="../table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="class-metadata">
59
+
60
+
61
+
62
+
63
+
64
+ <!-- Method Quickref -->
65
+ <div id="method-list-section" class="nav-section">
66
+ <h3>Methods</h3>
67
+
68
+ <ul class="link-list" role="directory">
69
+ <li ><a href="#method-i-bulma_form_footer">#bulma_form_footer</a>
70
+ <li ><a href="#method-i-bulma_index_header">#bulma_index_header</a>
71
+ </ul>
72
+ </div>
73
+
74
+ </div>
75
+ </nav>
76
+
77
+ <main role="main" aria-labelledby="module-BulmaFormRails::HeaderAndFooterHelpers">
78
+ <h1 id="module-BulmaFormRails::HeaderAndFooterHelpers" class="module">
79
+ module BulmaFormRails::HeaderAndFooterHelpers
80
+ </h1>
81
+
82
+ <section class="description">
83
+
84
+ <p><img src="../images/moderngeosystems_logo.png"></p>
85
+
86
+ <p>This Ruby on Rails Helper module allows easy and efficient index and form page header and footer rendering.</p>
87
+
88
+ </section>
89
+
90
+ <section id="5Buntitled-5D" class="documentation-section">
91
+
92
+
93
+
94
+
95
+
96
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
97
+ <header>
98
+ <h3>Public Instance Methods</h3>
99
+ </header>
100
+
101
+ <div id="method-i-bulma_form_footer" class="method-detail ">
102
+ <div class="method-heading">
103
+ <span class="method-name">bulma_form_footer</span><span
104
+ class="method-args">(form, models_path, options = {}, &amp;block)</span>
105
+ <span class="method-click-advice">click to toggle source</span>
106
+ </div>
107
+
108
+ <div class="method-description">
109
+ <p>Render a standard model form page footer.</p>
110
+ <ul><li>
111
+ <p><code>form</code> - the form object</p>
112
+ </li><li>
113
+ <p><code>models_path</code> - the controller URL path for the action that renders the model collection</p>
114
+ </li><li>
115
+ <p><code>options</code> - a hash of additional options:</p>
116
+ <ul><li>
117
+ <p><code>exclude_submit_button</code> - don’t include a submit button if true</p>
118
+ </li></ul>
119
+ </li><li>
120
+ <p><code>block</code> - optional ERb to render any additional content for the footer, such as additional buttons</p>
121
+ </li></ul>
122
+
123
+ <div class="method-source-code" id="bulma_form_footer-source">
124
+ <pre><span class="ruby-comment"># File lib/bulma_form_rails/header_and_footer_helpers.rb, line 23</span>
125
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">bulma_form_footer</span>(<span class="ruby-identifier">form</span>, <span class="ruby-identifier">models_path</span>, <span class="ruby-identifier">options</span> = {}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
126
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
127
+ <span class="ruby-identifier">render</span> <span class="ruby-value">layout:</span> <span class="ruby-string">&#39;bulma_form_rails/form_footer&#39;</span>, <span class="ruby-value">locals:</span> {<span class="ruby-value">form:</span> <span class="ruby-identifier">form</span>, <span class="ruby-value">url:</span> <span class="ruby-identifier">models_path</span>, <span class="ruby-value">options:</span> <span class="ruby-identifier">options</span>}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
128
+ <span class="ruby-keyword">else</span>
129
+ <span class="ruby-identifier">render</span> <span class="ruby-value">partial:</span> <span class="ruby-string">&#39;bulma_form_rails/form_footer&#39;</span>, <span class="ruby-value">locals:</span> {<span class="ruby-value">form:</span> <span class="ruby-identifier">form</span>, <span class="ruby-value">url:</span> <span class="ruby-identifier">models_path</span>, <span class="ruby-value">options:</span> <span class="ruby-identifier">options</span>}
130
+ <span class="ruby-keyword">end</span>
131
+
132
+ <span class="ruby-keyword">end</span></pre>
133
+ </div>
134
+ </div>
135
+
136
+
137
+ </div>
138
+
139
+ <div id="method-i-bulma_index_header" class="method-detail ">
140
+ <div class="method-heading">
141
+ <span class="method-name">bulma_index_header</span><span
142
+ class="method-args">(name, models_path)</span>
143
+ <span class="method-click-advice">click to toggle source</span>
144
+ </div>
145
+
146
+ <div class="method-description">
147
+ <p>Render the header for a standard index page. Automatically calls <code>bulma_message_box</code>.</p>
148
+ <ul><li>
149
+ <p><code>name</code> - a symbol representing the model name</p>
150
+ </li><li>
151
+ <p><code>models_path</code> - the controller URL path for the action that renders the model collection</p>
152
+ </li></ul>
153
+
154
+ <div class="method-source-code" id="bulma_index_header-source">
155
+ <pre><span class="ruby-comment"># File lib/bulma_form_rails/header_and_footer_helpers.rb, line 13</span>
156
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">bulma_index_header</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">models_path</span>)
157
+ <span class="ruby-identifier">render</span> <span class="ruby-value">partial:</span> <span class="ruby-string">&#39;bulma_form_rails/index_header&#39;</span>, <span class="ruby-value">locals:</span> {<span class="ruby-value">name:</span> <span class="ruby-identifier">name</span>, <span class="ruby-value">models_path:</span> <span class="ruby-identifier">models_path</span>}
158
+ <span class="ruby-keyword">end</span></pre>
159
+ </div>
160
+ </div>
161
+
162
+
163
+ </div>
164
+
165
+ </section>
166
+
167
+ </section>
168
+ </main>
169
+
170
+
171
+ <footer id="validator-badges" role="contentinfo">
172
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
173
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
174
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
175
+ </footer>
176
+
@@ -0,0 +1,157 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module BulmaFormRails::MessageBoxHelpers - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ var index_rel_prefix = "../";
12
+ </script>
13
+
14
+ <script src="../js/navigation.js" defer></script>
15
+ <script src="../js/search.js" defer></script>
16
+ <script src="../js/search_index.js" defer></script>
17
+ <script src="../js/searcher.js" defer></script>
18
+ <script src="../js/darkfish.js" defer></script>
19
+
20
+ <link href="../css/fonts.css" rel="stylesheet">
21
+ <link href="../css/rdoc.css" rel="stylesheet">
22
+
23
+
24
+ <body id="top" role="document" class="module">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="../index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="../table_of_contents.html#pages">Pages</a>
34
+ <a href="../table_of_contents.html#classes">Classes</a>
35
+ <a href="../table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="class-metadata">
59
+
60
+
61
+
62
+
63
+
64
+ <!-- Method Quickref -->
65
+ <div id="method-list-section" class="nav-section">
66
+ <h3>Methods</h3>
67
+
68
+ <ul class="link-list" role="directory">
69
+ <li ><a href="#method-i-bulma_message_box">#bulma_message_box</a>
70
+ <li ><a href="#method-i-bulma_validation_box">#bulma_validation_box</a>
71
+ </ul>
72
+ </div>
73
+
74
+ </div>
75
+ </nav>
76
+
77
+ <main role="main" aria-labelledby="module-BulmaFormRails::MessageBoxHelpers">
78
+ <h1 id="module-BulmaFormRails::MessageBoxHelpers" class="module">
79
+ module BulmaFormRails::MessageBoxHelpers
80
+ </h1>
81
+
82
+ <section class="description">
83
+
84
+ <p><img src="../images/moderngeosystems_logo.png"></p>
85
+
86
+ <p>This Ruby on Rails Helper module allows easy and efficient flash and validation error box rendering.</p>
87
+
88
+ </section>
89
+
90
+ <section id="5Buntitled-5D" class="documentation-section">
91
+
92
+
93
+
94
+
95
+
96
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
97
+ <header>
98
+ <h3>Public Instance Methods</h3>
99
+ </header>
100
+
101
+ <div id="method-i-bulma_message_box" class="method-detail ">
102
+ <div class="method-heading">
103
+ <span class="method-name">bulma_message_box</span><span
104
+ class="method-args">()</span>
105
+ <span class="method-click-advice">click to toggle source</span>
106
+ </div>
107
+
108
+ <div class="method-description">
109
+ <p>Render a standard flash messages box. Automatically included with <code>bulma_validation_box</code> and <code>bulma_index_header</code> output.</p>
110
+
111
+ <div class="method-source-code" id="bulma_message_box-source">
112
+ <pre><span class="ruby-comment"># File lib/bulma_form_rails/message_box_helpers.rb, line 12</span>
113
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">bulma_message_box</span>
114
+ <span class="ruby-identifier">render</span> <span class="ruby-value">partial:</span> <span class="ruby-string">&#39;bulma_form_rails/message_box&#39;</span>
115
+ <span class="ruby-keyword">end</span></pre>
116
+ </div>
117
+ </div>
118
+
119
+
120
+ </div>
121
+
122
+ <div id="method-i-bulma_validation_box" class="method-detail ">
123
+ <div class="method-heading">
124
+ <span class="method-name">bulma_validation_box</span><span
125
+ class="method-args">(model)</span>
126
+ <span class="method-click-advice">click to toggle source</span>
127
+ </div>
128
+
129
+ <div class="method-description">
130
+ <p>Render a standard model validation messages box. Automatically calls <code>bulma_message_box</code>.</p>
131
+ <ul><li>
132
+ <p><code>model</code> - the model object</p>
133
+ </li></ul>
134
+
135
+ <div class="method-source-code" id="bulma_validation_box-source">
136
+ <pre><span class="ruby-comment"># File lib/bulma_form_rails/message_box_helpers.rb, line 18</span>
137
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">bulma_validation_box</span>(<span class="ruby-identifier">model</span>)
138
+ <span class="ruby-identifier">render</span> <span class="ruby-value">partial:</span> <span class="ruby-string">&#39;bulma_form_rails/validation_box&#39;</span>, <span class="ruby-value">locals:</span> {<span class="ruby-value">model:</span> <span class="ruby-identifier">model</span>}
139
+ <span class="ruby-keyword">end</span></pre>
140
+ </div>
141
+ </div>
142
+
143
+
144
+ </div>
145
+
146
+ </section>
147
+
148
+ </section>
149
+ </main>
150
+
151
+
152
+ <footer id="validator-badges" role="contentinfo">
153
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
154
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
155
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
156
+ </footer>
157
+