fixed ingredient bug; added button
This commit is contained in:
parent
8811109351
commit
c0d43171a4
@ -11,6 +11,11 @@
|
||||
return this.each(function() {
|
||||
var options = $.extend({}, defaultOptions, opts);
|
||||
var $this = $(this);
|
||||
|
||||
if ($this.data(pluginName)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this.data(pluginName, {options: options});
|
||||
|
||||
var $inputGroup = $('<div class="input-group" />');
|
||||
|
@ -8,6 +8,10 @@
|
||||
<p>No Ingredients</p>
|
||||
<% else %>
|
||||
|
||||
<%= link_to 'New Ingredient', new_ingredient_path, class: 'btn btn-default' %>
|
||||
|
||||
<br/>
|
||||
|
||||
<table class="table table-condensed table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user