2017-10-05 19:42:32 +00:00
|
|
|
%form{method: 'post', action: "/sites/#{@site.name}/posts/#{@post.basename}"}
|
|
|
|
.form-group
|
|
|
|
%button.btn.btn-success{type: 'submit'} Guardar
|
|
|
|
.form-group
|
2017-10-09 22:29:31 +00:00
|
|
|
%textarea.form-control.post-content{name: 'post[content]', id: 'contents', autofocus: true}
|
2017-10-05 19:42:32 +00:00
|
|
|
= @post.content
|
2017-10-09 22:29:31 +00:00
|
|
|
.form-group
|
|
|
|
%label{for: 'date'} Fecha de publicación
|
2017-10-10 14:52:27 +00:00
|
|
|
%input.form-control{type: 'text', name: 'post[date]', id: 'date', value: @post.data['date'].strftime('%F')}
|
2017-10-09 22:29:31 +00:00
|
|
|
.form-group
|
|
|
|
%label{for: 'title'} Título
|
|
|
|
%input.form-control{type: 'text', name: 'post[title]', id: 'title', value: @post.data['title']}
|
|
|
|
.form-group
|
|
|
|
%label{for: 'tags'} Etiquetas
|
|
|
|
%input.form-control{type: 'text', name: 'post[tags]', id: 'tags', value: @post.data['tags'].join(',')}
|
|
|
|
%small.form-text.text-muted Separadas por comas
|
|
|
|
.form-group
|
|
|
|
%label{for: 'categories'} Categorías
|
|
|
|
%input.form-control{type: 'text', name: 'post[categories]', id: 'categories', value: @post.data['categories'].join(',')}
|
|
|
|
%small.form-text.text-muted Separadas por comas
|