Sha256: 23657d311080d728757cf2df85fb88eca1f4b251897a31d03ff50ca07497bbe6

Contents?: true

Size: 1.26 KB

Versions: 5

Compression:

Stored size: 1.26 KB

Contents

#add_ticket
  = form_for Ticket.new(params[:ticket]), :html => { :class => 'form-horizontal' } do |f|
    %fieldset
      %legend= t(:add_ticket)
      #ticket-errors
      .control-group
        %label.control-label{:for => "ticket_client_id"}= "#{t(:client)}:"
        .controls
          = collection_select("ticket", "client_id", @clients, "id", "name", { :prompt => t(:select_a_client) }, :class => 'chzn-select')
      .control-group
        %label.control-label{:for => "ticket_project_id"}= "#{t(:project)}:"
        .controls
          = collection_select("ticket", "project_id", @projects, "id", "name", { :prompt => t(:select_a_project) }, :class => 'chzn-select')
      .control-group
        %label.control-label{:for => "ticket_name"}= "#{t(:name)}:"
        .controls
          = f.text_field :name, { :size => 10 }
      .control-group
        %label.control-label{:for => "ticket_estimated_hours"}= "#{t(:estimated_hours)}:"
        .controls
          = f.text_field :estimated_hours, { :size => 10 }
      .control-group
        %label.control-label{:for => "ticket_description"}= "#{t(:description)}:"
        .controls
          = f.text_area :description, { :rows => 5 }
      .form-actions
        = f.submit t(:create_ticket), :class => 'add_new_button btn primary'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xrono-1.0.4 app/views/tickets/_add_ticket.html.haml
xrono-1.0.3 app/views/tickets/_add_ticket.html.haml
xrono-1.0.2 app/views/tickets/_add_ticket.html.haml
xrono-1.0.1 app/views/tickets/_add_ticket.html.haml
xrono-1.0.0 app/views/tickets/_add_ticket.html.haml