Sha256: 2dfe1c58ba705362f744bf69c6f1b4ba947bfd39fad6bcc42076f8a45dff784c
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
<!-- page content --> <div class="right_col" role="main"> <div class=""> <div class="page-title"> <div class="title_left"> <h3>Add New Category</h3> </div> </div> <div class="clearfix"></div> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="x_panel" style="height:600px;"> <div class="x_title"> <%= form_for(:category, url: admin_create_category_path) do |f| %> <div class="field form-group"> <%= f.label :name %> <%= f.text_field :name, class: 'form-control' %> </div> <div class="field form-group"> <%= f.label :description %> <%= f.text_area :description, class: 'form-control' %> </div> <div class="field form-group"> <%= f.label :parent_id %> <select name="category[parent_id]"> <option value="">Root</option> <% @categories.each do |cat, level| level += 1%> <option value="<%=cat.id%>"><%="#{'-' * level} #{cat.name}"%></option> <% end %> </select> </div> <br><br> <%= f.submit "Submit", class: "btn btn-primary" %> <% end %> <div class="clearfix"></div> </div> </div> </div> </div> </div> </div> <!-- /page content --> <script type="text/javascript"> $(document).ready(function(){ $('.wysihtml5').each(function(i, elem) { $(elem).wysihtml5(); }); }) </script>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_marketplace-0.0.2 | app/views/rails_marketplace/admin/add_category.html.erb |
rails_marketplace-0.0.1 | app/views/rails_marketplace/admin/add_category.html.erb |