summaryrefslogtreecommitdiff
path: root/views/index.haml
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2010-12-01 12:17:32 -0700
committerBen Beltran <ben@nsovocal.com>2010-12-01 12:17:32 -0700
commit0e0a67f4f172e61592d259386aa52f0635249f64 (patch)
treeaa1ced0805e5dd33d315bb7ee1bdc666f23da9fb /views/index.haml
parent5573b3c2672a04d58a91ce1c74f9c543e14fb423 (diff)
Muchas cosas.
Sería la primera copia funcional de la aplicación... Falta por supuesto estilizar las páginas individuales.
Diffstat (limited to 'views/index.haml')
-rw-r--r--views/index.haml16
1 files changed, 13 insertions, 3 deletions
diff --git a/views/index.haml b/views/index.haml
index 742418d..2b40431 100644
--- a/views/index.haml
+++ b/views/index.haml
@@ -1,8 +1,18 @@
%form{:method => 'post', :action => '/'}
+ -unless @grito.nil?
+ -unless @grito.errors.empty?
+ #errors
+ -@grito.errors.each do |e|
+ %span= e
+ %br
+ -else
+ #success
+ Su texto ha sido guardado!
+ %a{:href=>"/#{@grito.gethash}"} De click aquí para verlo.
%h1 Título
- %input{:type => 'text', :name => 'title', :class => 'title'}
+ %input.title{:type => 'text', :name => 'title'}
%br
%h1 Texto
- %textarea{:name => 'text', :class => 'text', :cols => '100'}
+ %textarea.text{:name => 'text', :cols => '76', :rows => '20'}
%br
- %input{:type => 'submit', :value => 'Gritalo!'} \ No newline at end of file
+ %input.submit{:type => 'submit', :value => 'Gritalo!'} \ No newline at end of file