hmt 8 лет назад
Родитель
Сommit
dc205aeb87
3 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      views/hashid.slim
  2. 1 1
      views/home.slim
  3. 1 1
      views/info.slim

+ 2 - 2
views/hashid.slim

@@ -42,7 +42,7 @@ h1 SV-Wahlen 2016
       h3 Für welche Ämter stellen Sie sich zur Verfügung?
       h4 Alle Schüler und Studierenden des BK-Bethel haben die Möglichkeit gewählt
        zu werden und zu wählen.
-      form.form-horizontal method="post" action="/wahl"
+      form.form-horizontal method="post" action=url("/wahl")
         .form-group
           .col-sm-offset-1.col-sm-9
             .checkbox
@@ -103,7 +103,7 @@ h1 SV-Wahlen 2016
   -unless schueler.gewaehlt
     .panel.panel-info
       .panel-body
-        form.form-horizontal method="post" action="/#{schueler.hashid}"
+        form.form-horizontal method="post" action=url("/#{schueler.hashid}")
           h3 Folgende Schüler und Studierende stehen zur Wahl
           h4 Schülersprecher/in
           |Sie können

+ 1 - 1
views/home.slim

@@ -1,5 +1,5 @@
 h1 SV-Wahlen 2016
-form method="post" action="/hashid"
+form method="post" action=url("/hashid")
   .row
     .col-xs-6.col-sm-4.col-lg-4
       .form-group.form-group-lg

+ 1 - 1
views/info.slim

@@ -20,6 +20,6 @@ form.form-horizontal method="post" action=url("/info")
         td =(Time.at(i.timestamp)).strftime("%d.%m.%Y – %k:%M Uhr")
         td =i.text
         td
-          a.btn.btn-danger href="/info_loeschen/#{i.id}" Löschen
+          a.btn.btn-danger href=url("/info_loeschen/#{i.id}") Löschen