mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Re-indent and remove redundant views.
This commit is contained in:
parent
2d4004764e
commit
235b341f5a
@ -1,28 +0,0 @@
|
||||
<h1>Editing category</h1>
|
||||
|
||||
<% form_for(@category) do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
||||
<p>
|
||||
<%= f.label :name %><br />
|
||||
<%= f.text_field :name %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :description %><br />
|
||||
<%= f.text_area :description %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :photo_id %><br />
|
||||
<%= f.text_field :photo_id %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :base_colour %><br />
|
||||
<%= f.text_field :base_colour %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.submit 'Update' %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Show', @category %> |
|
||||
<%= link_to 'Back', categories_path %>
|
||||
@ -1,27 +0,0 @@
|
||||
<h1>New category</h1>
|
||||
|
||||
<% form_for(@category) do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
||||
<p>
|
||||
<%= f.label :name %><br />
|
||||
<%= f.text_field :name %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :description %><br />
|
||||
<%= f.text_area :description %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :photo_id %><br />
|
||||
<%= f.text_field :photo_id %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :base_colour %><br />
|
||||
<%= f.text_field :base_colour %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.submit 'Create' %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Back', categories_path %>
|
||||
@ -1,18 +0,0 @@
|
||||
<p>
|
||||
<b>Name:</b>
|
||||
<%=h @category.name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Description:</b>
|
||||
<%=h @category.description %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Photo:</b>
|
||||
<%=h @category.photo_id %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_category_path(@category) %> |
|
||||
<%= link_to 'Back', categories_path %>
|
||||
@ -1,13 +0,0 @@
|
||||
<%= error_messages_for :photo %>
|
||||
|
||||
<% form_for(:photo, :url => :photos, :html => { :multipart => true }) do |f| -%>
|
||||
|
||||
<p>
|
||||
<%= f.label :image_file %>:<br />
|
||||
<%= f.file_field :photo %>
|
||||
</p>
|
||||
<p>
|
||||
<%= submit_tag 'Upload' %>
|
||||
</p>
|
||||
|
||||
<% end -%>
|
||||
@ -1,2 +0,0 @@
|
||||
%header{:role => :banner}
|
||||
%h1 Abiquo Downloads
|
||||
Loading…
Reference in New Issue
Block a user