app/views/prosperity/graphs/new.html.erb in prosperity-0.0.7 vs app/views/prosperity/graphs/new.html.erb in prosperity-0.0.8

- old
+ new

@@ -1,15 +1,7 @@ <h1>New Graph</h1> <%= form_for @graph, html: {role: 'form'} do |f| %> - <div class="form-group"> - <%= f.label :title %> - <%= f.text_field :title %> - </div> - - <div class="form-group"> - <%= f.label :period %> - <%= f.select :period, Prosperity::Periods::ALL.keys %> - </div> + <%= render partial: 'common_fields', locals: {f: f} %> <%= f.submit "Save", class: 'btn btn-success' %> <% end %>