1
0

info.slim 774 B

12345678910111213141516171819202122232425
  1. h2 Information eingeben
  2. |Jede eingegebene Information erscheint mit einem Datum versehen auf der
  3. a<> href=url("/") Startseite
  4. p
  5. form.form-horizontal method="post" action=url("/info")
  6. .form-group
  7. label.col-sm-1 for="text" Text
  8. .col-sm-11
  9. textarea class="form-control" rows="3" name="text"
  10. .form-group
  11. .col-sm-offset-1.col-sm-11
  12. input.form-control type="hidden" name="timestamp" value=Time.now.to_i
  13. button type="submit" class="btn btn-primary" Info speichern
  14. -unless infos.empty?
  15. h2 Einträge bearbeiten
  16. table.table.table-condensed
  17. -infos.each do |i|
  18. tr
  19. td =(Time.at(i.timestamp)).strftime("%d.%m.%Y – %k:%M Uhr")
  20. td =i.text
  21. td
  22. a.btn.btn-danger href=url("/info_loeschen/#{i.id}") Löschen