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')
@ -104,4 +103,3 @@
</div>
</div>
%= end
</div>

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">
@ -96,7 +95,6 @@
</div>
</div>
%= end
</div>
<div class="row">
<div class="col s12">
<p>