%script{src:"#{url("bootstrap.file-input.js")}"}
%a{href:"/", class:"btn btn-default"} Back
%div.col-md-6.col-md-offset-3
  %h2 Import from CSV
  %form{action: "/transaction/import", method: "post", enctype: "multipart/form-data",  class: "form-horizontal"}
    %div.form-group
      %label.col-md-2 CSV file
      %div.col-md-10
        %input.file-inputs{type: "file", name: "file"}
    %div.form-group
      %div.col-md-10.col-md-offset-2
        %label Default shared for imported transactions
        %input{type: "checkbox", value: "t", checked: true, name: "shared"}
    %div.form-group
      %button{type: "submit", class: "btn btn-primary"} Submit

%div.col-md-6.col-md-offset-3
  %h2 Export to CSV
  %form{action: "/transaction/export", method: "post"}
    %button.btn.btn-primary{type: "submit"} Export
%script{src: "/input.js", type: "text/javascript"}

%script{src:"#{url("bootstrap.file-input.js")}"}


%div.col-md-10.col-md-offset-1{style: "margin-bottom: 50px;"}
  %a.btn.btn-default.pull-right{href:"/"} Back
  %h2 CSV Import / Export


%div.col-md-5.col-md-offset-1
  %div.panel.panel-default
    %div.panel-heading Import
    %div.panel-body
      %form{action: "/transaction/import", method: "post", enctype: "multipart/form-data",  class: "form-horizontal"}
        %div.form-group.col-md-12
          %label CSV file:
          %input.file-inputs{type: "file", name: "file"}
        %div.form-group.col-md-12
          %label Shared:
          %input{type: "checkbox", value: "t", checked: true, name: "shared"}
        %div.form-group.col-md-12
          %button.pull-right{type: "submit", class: "btn btn-primary"} Import transactions

%div.col-md-5
  %div.panel.panel-default
    %div.panel-heading Export
    %div.panel-body
      Export all the transactions in a CSV file
      %form{action: "/transaction/export", method: "post"}
        %button.btn.btn-primary.pull-right{type: "submit"} Export transactions

%script{src: "/input.js", type: "text/javascript"}

Rewrite CSV page using two parallel panels (import/export)
Rewrite CSV page using two parallel panels (import/export)
