]> git.r.bdr.sh - rbdr/grita/blob - views/index.haml
Fixes QR Codes.
[rbdr/grita] / views / index.haml
1 %form{:method => 'post', :action => '/'}
2 -unless @grito.nil?
3 -unless @grito.errors.empty?
4 #errors
5 -@grito.errors.each do |e|
6 %span= e
7 %br
8 -else
9 #success
10 Su texto ha sido guardado!
11 %a{:href=>"/#{@grito.gethash}"} De click aquí para verlo.
12 %h1 Título
13 -unless @grito.nil?
14 -unless @grito.errors.empty?
15 %input.title{:type => 'text', :name => 'title', :Value => @grito.title}
16 -else
17 %input.title{:type => 'text', :name => 'title'}
18 -else
19 %input.title{:type => 'text', :name => 'title'}
20 %br
21 %h1 Texto
22 %textarea.text{:name => 'text', :cols => '76', :rows => '20'}
23 -unless @grito.nil?
24 -unless @grito.errors.empty?
25 =@grito.text
26 %br
27 %input.submit{:type => 'submit', :value => 'Gritalo!'}