login, register; Do not doule-nest row/col classes

This commit is contained in:
Daniel Friesel 2019-04-02 19:40:04 +02:00
parent d90734e2ec
commit 68718860e2
2 changed files with 63 additions and 67 deletions

View file

@ -73,8 +73,7 @@
</div>
</div>
% }
<div class="row">
%= form_for '/login' => (class => 'col s12', method => 'POST') => begin
%= form_for '/login' => (method => 'POST') => begin
%= csrf_field
% if (stash('redirect_to')) {
%= hidden_field 'redirect_to' => stash('redirect_to')
@ -103,5 +102,4 @@
<div class="col s3 m3 l3">
</div>
</div>
%= end
</div>
%= end

View file

@ -58,8 +58,7 @@
</div>
</div>
% }
<div class="row">
%= form_for '/register' => (class => 'col s12', method => 'POST') => begin
%= form_for '/register' => (method => 'POST') => begin
%= csrf_field
<div class="row">
<div class="input-field col l6 m12 s12">
@ -95,8 +94,7 @@
<div class="col s3 m3 l3">
</div>
</div>
%= end
</div>
%= end
<div class="row">
<div class="col s12">
<p>