.dialog.dialog-overlay-sm layout='dialog' layout-id='client-preferences-dialog' id='client-preferences-dialog'
  .content-head
    = image_tag "content/icon_add.png", {:width => 19, :height => 19, :class => 'content-icon' }
    h1 Application Preferences
  .dialog-inner
    form action='post'
      .column
        .field data-purpose="autostart"
          .input
            input type="checkbox" name="autostart"
          label for="autostart" Start JamKazam when system starts
          p.hint If you use JamKazam mostly to play with others in real-time, we recommend that you check this box to allow the JamKazam application to start each time you start your computer. It will run quietly in the background, and you won't notice it, but it will collect critical latency data periodically to help you connect with other musicians, and it will also upload/download any recordings you make in sessions.
        .field data-purpose="use-static-port"
          .input
            input type="checkbox" name="use-static-port"
          label for="use-static-port" Always use the same set of UDP ports
          p.hint If you are having problems with the network test or not hearing audio from others and need to configure Port Forwarding in your router, check this box.
        .field data-purpose="static-port"
          .input
            input type="number" name="static-port"
          label for="static-port" The first port that the client will open
          p.hint You can specify any port you like, but we recommend an even number in the range including 1026-49150 to avoid conflicts with other programs.  When configuring Port Forwarding in your router, be sure to open this port along with the next 10.  For example, if this field is 12000, then in your router, forward ports 12000-12010 to your computer's IP address.
        br clear='all'
      br clear='all'
    .buttons
      .right
        a.button-grey class='btnCancel' layout-action='cancel' CANCEL
        a.button-orange class='btnSave' SAVE

