extends base

block title
  | Manage {{name}}s

block main
  h2 Manage {{name}}s

  if message != ''
    .alert
      button.close(data-dismiss="alert", href="#") &times;
      | #{message}

  table.table.table-striped
    tr
      {{#each fields}}th {{#camelize}}{{field}}{{/camelize}}
      {{/each}}
    each {{name}} in {{name}}s
      tr
        {{#each fields}}td= {{field}}
        {{/each}}
        td
          a(href='/{{name}}s/{{#tovar}}{{name}}.id{{/tovar}}/edit') edit
          |  | 
          a(href='/{{name}}s/{{#tovar}}{{name}}.id{{/tovar}}/destroy', onclick='return confirm("Are you sure you want to delete this?") ? true : false') delete
extends base

block title
  | Manage {{name}}s

block main
  h2 Manage {{name}}s

  if message != ''
    .alert
      button.close(data-dismiss="alert", href="#") &times;
      | #{message}

  table.table.table-striped
    tr
      {{#each fields}}th {{#camelize}}{{field}}{{/camelize}}
      {{/each}}th
    each {{name}} in {{name}}s
      tr
        {{#each fields}}td= {{field}}
        {{/each}}
        td
          a(href='/{{name}}s/{{#tovar}}{{name}}.id{{/tovar}}/edit') edit
          |  | 
          a(href='/{{name}}s/{{#tovar}}{{name}}.id{{/tovar}}/destroy', onclick='return confirm("Are you sure you want to delete this?") ? true : false') delete
Add header column of manage links
Add header column of manage links
