<!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="modalNewTabWrapper" style="height:100%">
      <div class="optionsContainer">
       <div class="modalTitle"> Create new tab</div>
       <div class="modalSubTitle">Tabs help you to organize logically your flows. Inside each tab you can mix both logic and test flows.</div>
        <!-- tab name -->
        <div class="option">
          <div class="option-label">Name: </div>
          <input id="newTabName" placeholder="(max 22 characters long)"type="text" maxlength="22" ></input>
          <span id="charLeftCounter" style="line-height: 4px; padding: 14px;"></span>
        </div>
      </div>
       <!-- Buttons -->
      <div class="actionsContainer">
        <div class="editor-tray-toolbar">
            <button id="btn-new-tab-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-tab-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>

    <script src="../vendor/vendor.js"></script>
    <script src="../vendor/jqtree/tree.jquery.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>
