diff options
author | jessib <jessib@riseup.net> | 2012-10-10 10:55:25 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2012-10-10 10:55:25 -0700 |
commit | c27f2a0686db0705553eda88c799d4c486c20bac (patch) | |
tree | edc4e1b36e747fb87ac429d2fd348abfaec11c28 /help/app/views/tickets/new.html.haml | |
parent | b077363d51de511d53c9b20ade1cb26707f3ecdf (diff) |
Pushing some tweaks as I try to get server-side validation working.
Diffstat (limited to 'help/app/views/tickets/new.html.haml')
-rw-r--r-- | help/app/views/tickets/new.html.haml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/help/app/views/tickets/new.html.haml b/help/app/views/tickets/new.html.haml index fd1bcd4..d0e6939 100644 --- a/help/app/views/tickets/new.html.haml +++ b/help/app/views/tickets/new.html.haml @@ -1,12 +1,19 @@ %h2=t :new_ticket -= simple_form_for @ticket do |f| += simple_form_for (@ticket, :html => {:novalidate => true}) do |f| #turn off html5 validations to test + = @ticket.errors.messages = f.input :title = #f.input :email #if there is no current_user - = f.input :email if !User.current_test - = #simple_fields_for :comment do |c| + = f.input :email if !User.current_test #hmm--might authenticated users want to submit an alternate email? + = #f.simple_fields_for :comment do |c| = #c.input :body, :label => 'Comment', :as => :text + = #f.input :comments, :label => 'Comment', :as => :text + + = f.fields_for :comment do |c| + = c.input :body, :label => 'Comment', :as => :text + + = #f.input :comment - = render :partial => 'new_comment' + = #render :partial => 'new_comment' #what we were using = # regarding_user if not logged in = # email if not logged in = #f.button :submit, :value => t(:submit), :class => 'btn-primary' |