= simple_form_for(@category) do |f| | |
= f.error_notification | |
.form-inputs | |
= f.input :name | |
.form-actions | |
= f.button :submit, class: 'btn btn-primary' |
doctype html | |
html | |
head | |
meta name="viewport" content="width=device-width, initial-scale=1.0" | |
title Paporeto | |
= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true | |
= csrf_meta_tags | |
/[if lt IE 9] | |
= javascript_include_tag "html5shiv", "data-turbolinks-track" => true | |
= javascript_include_tag "respond.min", "data-turbolinks-track" => true | |
body | |
.navbar.navbar-inverse.navbar-fixed-top | |
.container | |
.navbar-header | |
a class="navbar-brand" href="/articles" Paporeto | |
.navbar-collapse | |
ul.nav.navbar-nav | |
li.active | |
a href="/articles" Artigos | |
li | |
a href="/categories" Categorias | |
.container | |
= yield | |
= javascript_include_tag "application", "data-turbolinks-track" => true |
h1 Editar categoria | |
== render 'form' |
h1 Categorias | |
table.table.table-striped | |
thead | |
tr | |
th Nome | |
th | |
tbody | |
- @categories.each do |category| | |
tr | |
td = category.name | |
td | |
.btn-group.pull-right | |
= link_to 'Editar', edit_category_path(category), class: 'btn btn-default btn-sm' | |
= link_to 'Excluir', category, :confirm => 'Tem certeza?', :method => :delete, class: 'btn btn-default btn-sm' | |
br | |
= link_to 'Nova Categoria', new_category_path, class: 'btn btn-primary' |
h1 Nova categoria | |
== render 'form' |
pt-BR: | |
simple_form: | |
yes: Sim | |
no: Não | |
required: | |
text: obrigatório | |
mark: "*" | |
# You can uncomment the line below if you need to overwrite the whole required html. | |
# When using html, text and mark won't be used. | |
# html: "<abbr title="required">*</abbr>" | |
error_notification: | |
default_message: "Por favor, corrija os problemas abaixo:" | |
# Labels and hints examples | |
labels: | |
defaults: | |
password: Senha | |
name: Nome | |
article: | |
title: Título | |
body: Texto | |
published_at: Publicado em | |
# hints: | |
# defaults: | |
# password: 'Mínimo de 8 caracteres.' | |
# placeholders: | |
# defaults: | |
# name: 'Nome' | |
# password: '****' | |
helpers: | |
submit: | |
create: 'Criar' | |
update: 'Editar' | |
article: | |
create: 'Criar artigo' | |
update: 'Editar artigo' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment