<!DOCTYPE html>
<html>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta
    name="viewport"
    content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"
  />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="mobile-web-app-capable" content="yes" />

  <head>
    <link rel="icon" type="image/png" href="{{ page.favicon }}" />
    <link rel="mask-icon" href="{{ page.tabicon }}" color="#8f0000" />

    <link
      href="../vendor/bootstrap/css/bootstrap.min.css"
      rel="stylesheet"
      media="screen"
    />

    <!-- Split button -->
    <link
      href="../vendor/jquery/css/smoothness/jquery-ui-1.10.3.custom.min.css"
      rel="stylesheet"
      media="screen"
    />
    <link
      rel="stylesheet"
      href="../vendor/font-awesome/css/font-awesome.min.css"
    />
    <link rel="stylesheet" href="../vendor/vendor.css" />
    <link rel="stylesheet" href="../red/style.min.css" />
    {{#page.css}}
    <link rel="stylesheet" href="{{..}}" />
    {{/page.css}}
  </head>

  <body spellcheck="false" style="padding: 0px; margin: 0px; height: 100vh; overflow: hidden;">
    <div id="modalNewProjectWrapper" style="height:100%">
      <div class="optionsContainer">
        <!-- project name -->
        <div class="option">
          <div class="option-label">Project name</div>
          <input id="projectNameSelected" type="text"></input>
        </div>
        
        <div class="option-separator"></div>
        
        <!-- save to-->
        <div class="option-label">Save to</div>
        <div id="projectPathSelectedDiv">
            <input id="projectPathSelected" type="text"></input>
            <button id="yourComputer" style="margin-bottom: 10px; width: 15%; border: 1px solid #ddd;">
                <i class="fa fa-folder-open horizontal-space"></i>
            </button>
        </div>

        <!-- sources -->
        <div class="option-label">Sources</div>
          <div id="projectFromSourcesOptions">
            <div class="checkboxes">
              <form id="newProjectSources">
                <label for="emptyProjectCheckbox"><input type="radio" name="projectSources" value="emptyProject" checked/><span style="padding-left: 3px;"> Empty Project</span></label>
                <label for="importJsonCheckbox"><input type="radio" name="projectSources" value="fromExistingFlow" /><span style="padding-left: 3px;"> From Existing Flow...</span></label>
              </form>
            </div>
          </div>
        </div>
     

      <div style="display:flex; flex-direction: column">
        <div id="flowtoimportSection" style="display: none; margin-bottom: 10px;">
          <div class="option-label">Paste below the content of the flow json file</div>
          <textarea id="flowtoimport" rows="11" style="resize: none; overflow: scroll; height: 155px;"></textarea>
        </div>

         <!-- Buttons -->
        <div class="actionsContainer">
          <div class="editor-tray-toolbar" style="display: flex; position:static; margin-right: 37px">
              <button id="btn-new-project-cancel" 
                      type="button" 
                      class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only secondary"
                      style="border-color: #d8d8d8">
                Cancel
              </button>
              <button id="btn-new-project-create" type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only primary disabled">
                Create
              </button>
          </div>
        </div>
      </div>
    </div>

    <script src="../vendor/vendor.js"></script>
    <script src="../vendor/ace/ace.js"></script>
    <script src="../vendor/ace/ext-language_tools.js"></script>
    <script src="../{{ asset.red }}"></script>
    <script src="../red/main-modals.js"></script>
    {{# page.scripts }}
    <script src="../{{.}}"></script>
    {{/ page.scripts }}
  </body>
</html>
