Bootstrap'ify the rest of the login page.
This commit is contained in:
parent
09f716450d
commit
3eb4b4e665
3 changed files with 16 additions and 23 deletions
|
|
@ -1,6 +1,5 @@
|
|||
<div class="row">
|
||||
<div class="fourcol"> </div>
|
||||
<div class="fourcol login">
|
||||
<div class="span4 offset4 login">
|
||||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
|
||||
<p><%= f.label :email %><br />
|
||||
<%= f.email_field :email %></p>
|
||||
|
|
@ -16,5 +15,4 @@
|
|||
<% end %>
|
||||
<p id="login_links"><%= render :partial => "devise/shared/links" %></p>
|
||||
</div>
|
||||
<div class="fourcol"> </div>
|
||||
</div>
|
||||
|
|
|
|||
3
app/views/layouts/_footer.html.erb
Normal file
3
app/views/layouts/_footer.html.erb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<span class="copyright">© 2012 <a href="http://tailorama.com/">Tailorama</a></span>
|
||||
·
|
||||
<span class="imprint"><a href="http://tailorama.de/impressum/">imprint</a></span>
|
||||
|
|
@ -20,29 +20,21 @@
|
|||
</div>
|
||||
|
||||
<div class="container">
|
||||
<% unless flash.empty? %>
|
||||
<div class="content">
|
||||
<div class="row">
|
||||
<div class="fourcol"> </div>
|
||||
<div class="fourcol flash">
|
||||
<%# examples: flash[:error] (:notice, ...), needs: respective css 'id' elements %>
|
||||
<% flash.each do | key, msg | %>
|
||||
<%= content_tag(:p, msg, :id => key) if flash[key] %>
|
||||
<% end %>
|
||||
<div class="span12">
|
||||
<%= render 'layouts/messages' %>
|
||||
</div>
|
||||
<div class="fourcol"> </div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= yield %>
|
||||
|
||||
<%# Footer %>
|
||||
<div class="row">
|
||||
<div class="twelvecol" id="footer">
|
||||
<span class="copyright">© 2012 <a href="http://tailorama.com/">Tailorama</a></span>
|
||||
·
|
||||
<span class="imprint"><a href="http://tailorama.de/impressum/">imprint</a></span>
|
||||
<%= yield %>
|
||||
</div>
|
||||
<footer>
|
||||
<div class="row">
|
||||
<div class="span12" id="footer">
|
||||
<%= render 'layouts/footer' %>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</div> <%# end container %>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue