Sha256: 2c8292a16c90e8a21647acfab2b80d455ad216d8acb576be7177518980d66680

Contents?: true

Size: 1.29 KB

Versions: 43

Compression:

Stored size: 1.29 KB

Contents

.head
  - @title= @xmain.name
  = step(@runseq.form_step, @xvars['total_form_steps'])
  #title(style='text-align:right;')= "click '#{@runseq.name}' to print"
  %p
  =javascript_include_tag "disable_enter_key"
= form_tag({ :action => 'end_output' } , {:multipart => true, :onKeyPress=>'return disableEnterKey(event)', :class=>'formtastic'}) do
  = hidden_field_tag 'xmain_id', @xmain.id
  = hidden_field_tag 'runseq_id', @runseq.id
  = hidden_field_tag 'step', @xvars[:current_step]
  #output_link
    = link_to @runseq.name, url_for(:controller=>'jinda', :action=>'document', :id=>@doc.id), :target=>'_blank'
  %p
  .label
    = image_tag "cog.png"
    = t "documents"
  %table{:width=>"100%"}
    %tr{:style=>"color:white; background-color:#6A6A6A;"}
      %th= t "id"
      %th= t "document"
      %th= t "file name"
      %th= t "user"
      %th= "date"
    - @xmain.docs.each do |doc|
      - next unless doc.display
      %tr
        %td= doc.id
        %td
          - if doc.content_type=='output'
            = image_tag 'page_output.png'
          - else
            = image_tag 'page_attach.png'
          = link_to_blank align_text(doc.name), :controller=>"jinda", :action=>:document, :id=>doc.id
        %td= doc.filename
        %td= doc.user.name
        %td= date_thai doc.updated_at
  = submit_tag @message
%p

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
jinda-0.5.2 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.5.1 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.5.0 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.4.9 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.4.8 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.4.7 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.4.6 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-5-0.4.5 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.4.5 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.4.4 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.4.3 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.4.2 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.4.1 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.4.0 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.3.9 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.3.8 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.3.7 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.3.6 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.3.5 lib/generators/jinda/templates/app/views/jinda/run_output.haml
jinda-0.3.4 lib/generators/jinda/templates/app/views/jinda/run_output.haml