-
Notifications
You must be signed in to change notification settings - Fork 509
/
new.haml.tt
30 lines (30 loc) · 1.24 KB
/
new.haml.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
!!! Strict
%html{:lang => "en", :xmlns => "http://www.w3.org/1999/xhtml"}
%head
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
%title Padrino Admin
=stylesheet_link_tag :base, "themes/<%= options[:theme] %>/style"
%body
#container
#box
%h1 Padrino Admin
#block-login.block
%h2 Login Box
.content.login
.flash=[:error, :warning, :notice].map { |type| flash_tag(type, :class => "message #{type}") }.join
-form_tag(url(:sessions, :create), :class => 'form login') do
.group.wat-cf
.left
%label.label.right Login
.right=text_field_tag :email, :value => params[:email], :class => :text_field
.group.wat-cf
.left
%label.label.right Password
.right=password_field_tag :password, :value => params[:password], :class => :text_field
-if Padrino.env == :development
.group.wat-cf
.left
%label.label.right Bypass login?
.right=check_box_tag :bypass
.group.navform.wat-cf
.right=submit_tag('Sign In', :class => :button)