bulma_form_rails 0.9.1 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/bulma_form_rails.iml +10 -10
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/doc/BulmaFormRails/{Helpers.html → FieldHelpers.html} +15 -242
- data/doc/BulmaFormRails/FormPageHelpers.html +172 -0
- data/doc/BulmaFormRails/HeaderAndFooterHelpers.html +178 -0
- data/doc/BulmaFormRails/MessageBoxHelpers.html +159 -0
- data/doc/BulmaFormRails/SubformHelpers.html +168 -0
- data/doc/BulmaFormRails.html +2 -0
- data/doc/created.rid +6 -2
- data/doc/index.html +5 -1
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/table_of_contents.html +43 -31
- data/lib/bulma_form_rails/field_helpers.rb +4 -1
- data/lib/bulma_form_rails/form_page_helpers.rb +3 -8
- data/lib/bulma_form_rails/header_and_footer_helpers.rb +3 -3
- data/lib/bulma_form_rails/message_box_helpers.rb +3 -3
- data/lib/bulma_form_rails/subform_helpers.rb +3 -3
- data/lib/bulma_form_rails/version.rb +1 -1
- data/package.json +1 -1
- metadata +6 -2
@@ -0,0 +1,172 @@
|
|
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><a href="https://moderngeosystems.com">moderngeosystems.com</a></p>
|
87
|
+
|
88
|
+
<p>This Ruby on Rails Helper module allows easy and efficient web form page rendering.</p>
|
89
|
+
|
90
|
+
</section>
|
91
|
+
|
92
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
99
|
+
<header>
|
100
|
+
<h3>Public Instance Methods</h3>
|
101
|
+
</header>
|
102
|
+
|
103
|
+
<div id="method-i-bulma_edit_form_page" class="method-detail ">
|
104
|
+
<div class="method-heading">
|
105
|
+
<span class="method-name">bulma_edit_form_page</span><span
|
106
|
+
class="method-args">(name, model, models_path, model_path)</span>
|
107
|
+
<span class="method-click-advice">click to toggle source</span>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
<div class="method-description">
|
111
|
+
<p>Render a standard model edit form page.</p>
|
112
|
+
<ul><li>
|
113
|
+
<p><code>name</code> - a symbol representing the model name</p>
|
114
|
+
</li><li>
|
115
|
+
<p><code>model</code> - the model object</p>
|
116
|
+
</li><li>
|
117
|
+
<p><code>models_path</code> - the controller URL path for the action that renders the model collection</p>
|
118
|
+
</li><li>
|
119
|
+
<p><code>model_path</code> - the controller URL path for the action that renders this individual model</p>
|
120
|
+
</li></ul>
|
121
|
+
|
122
|
+
<div class="method-source-code" id="bulma_edit_form_page-source">
|
123
|
+
<pre><span class="ruby-comment"># File lib/bulma_form_rails/form_page_helpers.rb, line 25</span>
|
124
|
+
<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>)
|
125
|
+
<span class="ruby-identifier">render</span> <span class="ruby-value">partial:</span> <span class="ruby-string">'bulma_form_rails/edit_form_page'</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>}
|
126
|
+
<span class="ruby-keyword">end</span></pre>
|
127
|
+
</div>
|
128
|
+
</div>
|
129
|
+
|
130
|
+
|
131
|
+
</div>
|
132
|
+
|
133
|
+
<div id="method-i-bulma_new_form_page" class="method-detail ">
|
134
|
+
<div class="method-heading">
|
135
|
+
<span class="method-name">bulma_new_form_page</span><span
|
136
|
+
class="method-args">(name, model, models_path)</span>
|
137
|
+
<span class="method-click-advice">click to toggle source</span>
|
138
|
+
</div>
|
139
|
+
|
140
|
+
<div class="method-description">
|
141
|
+
<p>Render a standard model creation form page.</p>
|
142
|
+
<ul><li>
|
143
|
+
<p><code>name</code> - a symbol representing the model name</p>
|
144
|
+
</li><li>
|
145
|
+
<p><code>model</code> - the model object</p>
|
146
|
+
</li><li>
|
147
|
+
<p><code>models_path</code> - the controller URL path for the action that renders the model collection</p>
|
148
|
+
</li></ul>
|
149
|
+
|
150
|
+
<div class="method-source-code" id="bulma_new_form_page-source">
|
151
|
+
<pre><span class="ruby-comment"># File lib/bulma_form_rails/form_page_helpers.rb, line 16</span>
|
152
|
+
<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>)
|
153
|
+
<span class="ruby-identifier">render</span> <span class="ruby-value">partial:</span> <span class="ruby-string">'bulma_form_rails/new_form_page'</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>}
|
154
|
+
<span class="ruby-keyword">end</span></pre>
|
155
|
+
</div>
|
156
|
+
</div>
|
157
|
+
|
158
|
+
|
159
|
+
</div>
|
160
|
+
|
161
|
+
</section>
|
162
|
+
|
163
|
+
</section>
|
164
|
+
</main>
|
165
|
+
|
166
|
+
|
167
|
+
<footer id="validator-badges" role="contentinfo">
|
168
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
169
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
|
170
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
171
|
+
</footer>
|
172
|
+
|
@@ -0,0 +1,178 @@
|
|
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><a href="https://moderngeosystems.com">moderngeosystems.com</a></p>
|
87
|
+
|
88
|
+
<p>This Ruby on Rails Helper module allows easy and efficient index and form page header and footer rendering.</p>
|
89
|
+
|
90
|
+
</section>
|
91
|
+
|
92
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
99
|
+
<header>
|
100
|
+
<h3>Public Instance Methods</h3>
|
101
|
+
</header>
|
102
|
+
|
103
|
+
<div id="method-i-bulma_form_footer" class="method-detail ">
|
104
|
+
<div class="method-heading">
|
105
|
+
<span class="method-name">bulma_form_footer</span><span
|
106
|
+
class="method-args">(form, models_path, options = {}, &block)</span>
|
107
|
+
<span class="method-click-advice">click to toggle source</span>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
<div class="method-description">
|
111
|
+
<p>Render a standard model form page footer.</p>
|
112
|
+
<ul><li>
|
113
|
+
<p><code>form</code> - the form 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>options</code> - a hash of additional options:</p>
|
118
|
+
<ul><li>
|
119
|
+
<p><code>exclude_submit_button</code> - don’t include a submit button if true</p>
|
120
|
+
</li></ul>
|
121
|
+
</li><li>
|
122
|
+
<p><code>block</code> - optional ERb to render any additional content for the footer, such as additional buttons</p>
|
123
|
+
</li></ul>
|
124
|
+
|
125
|
+
<div class="method-source-code" id="bulma_form_footer-source">
|
126
|
+
<pre><span class="ruby-comment"># File lib/bulma_form_rails/header_and_footer_helpers.rb, line 25</span>
|
127
|
+
<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">&</span><span class="ruby-identifier">block</span>)
|
128
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
|
129
|
+
<span class="ruby-identifier">render</span> <span class="ruby-value">layout:</span> <span class="ruby-string">'bulma_form_rails/form_footer'</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">&</span><span class="ruby-identifier">block</span>
|
130
|
+
<span class="ruby-keyword">else</span>
|
131
|
+
<span class="ruby-identifier">render</span> <span class="ruby-value">partial:</span> <span class="ruby-string">'bulma_form_rails/form_footer'</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>}
|
132
|
+
<span class="ruby-keyword">end</span>
|
133
|
+
|
134
|
+
<span class="ruby-keyword">end</span></pre>
|
135
|
+
</div>
|
136
|
+
</div>
|
137
|
+
|
138
|
+
|
139
|
+
</div>
|
140
|
+
|
141
|
+
<div id="method-i-bulma_index_header" class="method-detail ">
|
142
|
+
<div class="method-heading">
|
143
|
+
<span class="method-name">bulma_index_header</span><span
|
144
|
+
class="method-args">(name, models_path)</span>
|
145
|
+
<span class="method-click-advice">click to toggle source</span>
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<div class="method-description">
|
149
|
+
<p>Render the header for a standard index page. Automatically calls <code>bulma_message_box</code>.</p>
|
150
|
+
<ul><li>
|
151
|
+
<p><code>name</code> - a symbol representing the model name</p>
|
152
|
+
</li><li>
|
153
|
+
<p><code>models_path</code> - the controller URL path for the action that renders the model collection</p>
|
154
|
+
</li></ul>
|
155
|
+
|
156
|
+
<div class="method-source-code" id="bulma_index_header-source">
|
157
|
+
<pre><span class="ruby-comment"># File lib/bulma_form_rails/header_and_footer_helpers.rb, line 15</span>
|
158
|
+
<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>)
|
159
|
+
<span class="ruby-identifier">render</span> <span class="ruby-value">partial:</span> <span class="ruby-string">'bulma_form_rails/index_header'</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>}
|
160
|
+
<span class="ruby-keyword">end</span></pre>
|
161
|
+
</div>
|
162
|
+
</div>
|
163
|
+
|
164
|
+
|
165
|
+
</div>
|
166
|
+
|
167
|
+
</section>
|
168
|
+
|
169
|
+
</section>
|
170
|
+
</main>
|
171
|
+
|
172
|
+
|
173
|
+
<footer id="validator-badges" role="contentinfo">
|
174
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
175
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
|
176
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
177
|
+
</footer>
|
178
|
+
|
@@ -0,0 +1,159 @@
|
|
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><a href="https://moderngeosystems.com">moderngeosystems.com</a></p>
|
87
|
+
|
88
|
+
<p>This Ruby on Rails Helper module allows easy and efficient flash and validation error box rendering.</p>
|
89
|
+
|
90
|
+
</section>
|
91
|
+
|
92
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
99
|
+
<header>
|
100
|
+
<h3>Public Instance Methods</h3>
|
101
|
+
</header>
|
102
|
+
|
103
|
+
<div id="method-i-bulma_message_box" class="method-detail ">
|
104
|
+
<div class="method-heading">
|
105
|
+
<span class="method-name">bulma_message_box</span><span
|
106
|
+
class="method-args">()</span>
|
107
|
+
<span class="method-click-advice">click to toggle source</span>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
<div class="method-description">
|
111
|
+
<p>Render a standard flash messages box. Automatically included with <code>bulma_validation_box</code> and <code>bulma_index_header</code> output.</p>
|
112
|
+
|
113
|
+
<div class="method-source-code" id="bulma_message_box-source">
|
114
|
+
<pre><span class="ruby-comment"># File lib/bulma_form_rails/message_box_helpers.rb, line 13</span>
|
115
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">bulma_message_box</span>
|
116
|
+
<span class="ruby-identifier">render</span> <span class="ruby-value">partial:</span> <span class="ruby-string">'bulma_form_rails/message_box'</span>
|
117
|
+
<span class="ruby-keyword">end</span></pre>
|
118
|
+
</div>
|
119
|
+
</div>
|
120
|
+
|
121
|
+
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div id="method-i-bulma_validation_box" class="method-detail ">
|
125
|
+
<div class="method-heading">
|
126
|
+
<span class="method-name">bulma_validation_box</span><span
|
127
|
+
class="method-args">(model)</span>
|
128
|
+
<span class="method-click-advice">click to toggle source</span>
|
129
|
+
</div>
|
130
|
+
|
131
|
+
<div class="method-description">
|
132
|
+
<p>Render a standard model validation messages box. Automatically calls <code>bulma_message_box</code>.</p>
|
133
|
+
<ul><li>
|
134
|
+
<p><code>model</code> - the model object</p>
|
135
|
+
</li></ul>
|
136
|
+
|
137
|
+
<div class="method-source-code" id="bulma_validation_box-source">
|
138
|
+
<pre><span class="ruby-comment"># File lib/bulma_form_rails/message_box_helpers.rb, line 19</span>
|
139
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">bulma_validation_box</span>(<span class="ruby-identifier">model</span>)
|
140
|
+
<span class="ruby-identifier">render</span> <span class="ruby-value">partial:</span> <span class="ruby-string">'bulma_form_rails/validation_box'</span>, <span class="ruby-value">locals:</span> {<span class="ruby-value">model:</span> <span class="ruby-identifier">model</span>}
|
141
|
+
<span class="ruby-keyword">end</span></pre>
|
142
|
+
</div>
|
143
|
+
</div>
|
144
|
+
|
145
|
+
|
146
|
+
</div>
|
147
|
+
|
148
|
+
</section>
|
149
|
+
|
150
|
+
</section>
|
151
|
+
</main>
|
152
|
+
|
153
|
+
|
154
|
+
<footer id="validator-badges" role="contentinfo">
|
155
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
156
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
|
157
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
158
|
+
</footer>
|
159
|
+
|