0
0
Fork 0
zero-blog/views/admin_tag_index.haml

10 lines
326 B
Plaintext

%form{:action => "/admin/tag/new", :method => :post}
%input{:type => :hidden, :name => '_method', :value => 'put'}=""
.fields
%input{:name => 'tag[name]', :placeholder => 'new tag name'}=""
.buttons
%button{:type => :submit}="create"
- @tags.each do |tag|
.tag
%a{:href => "/admin/tag/#{tag.id}"}=tag.name