templates/form-elements.html.twig line 1

Open in your IDE?
  1. {{ include('partials/main.html.twig') }}
  2.     <head>
  3.         
  4.         {{ include('partials/title-meta.html.twig', {title: 'Basic Elements'}) }}
  5.         {{ include('partials/head-css.html.twig') }}
  6.     </head>
  7.     {{ include('partials/body.html.twig') }}
  8.         <!-- Begin page -->
  9.         <div id="layout-wrapper">
  10.             {{ include('partials/menu.html.twig') }}
  11.             <!-- ============================================================== -->
  12.             <!-- Start right Content here -->
  13.             <!-- ============================================================== -->
  14.             <div class="main-content">
  15.                 <div class="page-content">
  16.                     <div class="container-fluid">
  17.                         {{ include('partials/page-title.html.twig', {pagetitle: 'Forms', title: 'Basic Elements'}) }}
  18.                         <div class="row">
  19.                             <div class="col-12">
  20.                                 <div class="card">
  21.                                     <div class="card-header">
  22.                                         <h4 class="card-title">Textual inputs</h4>
  23.                                         <p class="card-title-desc">Here are examples of <code>.form-control</code> applied to each
  24.                                             textual HTML5 <code>&lt;input&gt;</code> <code>type</code>.</p>
  25.                                     </div>
  26.                                     <div class="card-body p-4">
  27.         
  28.                                         <div class="row">
  29.                                             <div class="col-lg-6">
  30.                                                 <div>
  31.                                                     <div class="mb-3">
  32.                                                         <label for="example-text-input" class="form-label">Text</label>
  33.                                                         <input class="form-control" type="text" value="Artisanal kale" id="example-text-input">
  34.                                                     </div>
  35.                                                     <div class="mb-3">
  36.                                                         <label for="example-search-input" class="form-label">Search</label>
  37.                                                         <input class="form-control" type="search" value="How do I shoot web" id="example-search-input">
  38.                                                     </div>
  39.                                                     <div class="mb-3">
  40.                                                         <label for="example-email-input" class="form-label">Email</label>
  41.                                                         <input class="form-control" type="email" value="bootstrap@example.com" id="example-email-input">
  42.                                                     </div>
  43.                                                     <div class="mb-3">
  44.                                                         <label for="example-url-input" class="form-label">URL</label>
  45.                                                         <input class="form-control" type="url" value="https://getbootstrap.com" id="example-url-input">
  46.                                                     </div>
  47.                                                     <div class="mb-3">
  48.                                                         <label for="example-tel-input" class="form-label">Telephone</label>
  49.                                                         <input class="form-control" type="tel" value="1-(555)-555-5555" id="example-tel-input">
  50.                                                     </div>
  51.                                                     <div class="mb-3">
  52.                                                         <label for="example-password-input" class="form-label">Password</label>
  53.                                                         <input class="form-control" type="password" value="hunter2" id="example-password-input">
  54.                                                     </div>
  55.                                                     <div class="mb-3">
  56.                                                         <label for="example-number-input" class="form-label">Number</label>
  57.                                                         <input class="form-control" type="number" value="42" id="example-number-input">
  58.                                                     </div>
  59.                                                     <div>
  60.                                                         <label for="example-datetime-local-input" class="form-label">Date and time</label>
  61.                                                         <input class="form-control" type="datetime-local" value="2019-08-19T13:45:00" id="example-datetime-local-input">
  62.                                                     </div>
  63.                                                     
  64.                                                 </div>
  65.                                             </div>
  66.                                             <div class="col-lg-6">
  67.                                                 <div class="mt-3 mt-lg-0">
  68.                                                     <div class="mb-3">
  69.                                                         <label for="example-date-input" class="form-label">Date</label>
  70.                                                         <input class="form-control" type="date" value="2019-08-19" id="example-date-input">
  71.                                                     </div>
  72.                                                     <div class="mb-3">
  73.                                                         <label for="example-month-input" class="form-label">Month</label>
  74.                                                         <input class="form-control" type="month" value="2019-08" id="example-month-input">
  75.                                                     </div>
  76.                                                     <div class="mb-3">
  77.                                                         <label for="example-week-input" class="form-label">Week</label>
  78.                                                         <input class="form-control" type="week" value="2019-W33" id="example-week-input">
  79.                                                     </div>
  80.                                                     <div class="mb-3">
  81.                                                         <label for="example-time-input" class="form-label">Time</label>
  82.                                                         <input class="form-control" type="time" value="13:45:00" id="example-time-input">
  83.                                                     </div>
  84.                                                     <div class="mb-3">
  85.                                                         <label for="example-color-input" class="form-label">Color picker</label>
  86.                                                         <input type="color" class="form-control form-control-color mw-100" id="example-color-input" value="#5156be" title="Choose your color">
  87.                                                     </div>
  88.                                                     <div class="mb-3">
  89.                                                         <label class="form-label">Select</label>
  90.                                                         <select class="form-select">
  91.                                                             <option>Select</option>
  92.                                                             <option>Large select</option>
  93.                                                             <option>Small select</option>
  94.                                                         </select>
  95.                                                     </div>
  96.             
  97.                                                     <div>
  98.                                                         <label for="exampleDataList" class="form-label">Datalists</label>
  99.                                                         <input class="form-control" list="datalistOptions" id="exampleDataList" placeholder="Type to search...">
  100.                                                         <datalist id="datalistOptions">
  101.                                                             <option value="San Francisco">
  102.                                                             <option value="New York">
  103.                                                             <option value="Seattle">
  104.                                                             <option value="Los Angeles">
  105.                                                             <option value="Chicago">
  106.                                                         </datalist>
  107.                                                     </div>
  108.                                                 </div>
  109.                                             </div>
  110.                                         </div>
  111.                                     </div>
  112.                                 </div>
  113.                             </div> <!-- end col -->
  114.                         </div>
  115.                         <!-- end row -->
  116.                         <!-- Start row -->
  117.                         <div class="row">
  118.                             <div class="col-lg-6">
  119.                                 <div class="card">
  120.                                     <div class="card-header">
  121.                                         <h4 class="card-title">Sizing</h4>
  122.                                         <p class="card-title-desc">Set heights using classes like <code>.form-control-lg</code> and <code>.form-control-sm</code>.</p>
  123.                                     </div>
  124.                                     <div class="card-body">
  125.                                         <form>
  126.                                             <div class="mb-4">
  127.                                                 <label class="form-label" for="default-input">Default input</label>
  128.                                                 <input class="form-control" type="text" id="default-input" placeholder="Default input">
  129.                                             </div>
  130.                                             <div class="mb-4">
  131.                                                 <label class="form-label" for="form-sm-input">Form Small input</label>
  132.                                                 <input class="form-control form-control-sm" type="text" id="form-sm-input" placeholder=".form-control-sm">
  133.                                             </div>
  134.                                             <div>
  135.                                                 <label class="form-label" for="form-lg-input">Form Large input</label>
  136.                                                 <input class="form-control form-control-lg" type="text" id="form-lg-input" placeholder=".form-control-lg">
  137.                                             </div>
  138.                                         </form>
  139.                                     </div>
  140.                                 </div>
  141.                             </div>
  142.                             <!-- end col -->
  143.                             <div class="col-lg-6">
  144.                                 <div class="card">
  145.                                     <div class="card-header">
  146.                                         <h4 class="card-title">Range Inputs</h4>
  147.                                         <p class="card-title-desc">Create custom <code>&lt;input type="range"&gt;</code>
  148.                                             controls with <code>.form-range</code>.</p>
  149.                                     </div>
  150.                                     <div class="card-body">
  151.                                         
  152.                                         <div class="mb-3">
  153.                                             <label for="customRange1" class="form-label">Example range</label>
  154.                                             <input type="range" class="form-range" id="customRange1">
  155.                                         </div>
  156.                                         <div class="mb-4">
  157.                                             <h5 class="font-size-14 mb-1">Min and max</h5>
  158.                                             <p class="card-title-desc mb-2">Range inputs have implicit values for min and
  159.                                                 max—0 and 100, respectively.</p>
  160.                                             <input type="range" class="form-range" min="0" max="5" id="customRange2">
  161.                                         </div>
  162.                                         <div>
  163.                                             <h5 class="font-size-14 mb-1">Steps</h5>
  164.                                             <p class="card-title-desc mb-2">By default, range inputs “snap” to integer
  165.                                                 values. To change this, you can specify a <code>step</code> value.</p>
  166.                                             <input type="range" class="form-range" min="0" max="5" id="customRange3">
  167.                                         </div>
  168.                                     </div>
  169.                                 </div>
  170.                             </div>
  171.                             <!-- end col -->
  172.                         </div>
  173.                         <!-- End row -->
  174.                         <div class="row">
  175.                             <div class="col-lg-12">
  176.                                 <div class="card">
  177.                                     <div class="card-header">
  178.                                         <h4 class="card-title">Form layouts</h4>
  179.                                         <p class="card-title-desc">Form layout options : from inline, horizontal & custom grid implementations</p>
  180.                                     </div>
  181.                                     <div class="card-body p-4">
  182.                                         
  183.                                         <div class="row">
  184.                                             <div class="col-lg-5">
  185.                                                 <div>
  186.                                                     <h5 class="font-size-14 mb-4"><i class="mdi mdi-arrow-right text-primary me-1"></i> Form groups</h5>
  187.                                                     <form>
  188.                                                         <div class="mb-3">
  189.                                                             <label class="form-label" for="formrow-firstname-input">First name</label>
  190.                                                             <input type="text" class="form-control" id="formrow-firstname-input" placeholder="Enter Name">
  191.                                                         </div>
  192.             
  193.                                                         <div class="row">                                                            
  194.                                                             <div class="col-md-6">
  195.                                                                 <div class="mb-3">
  196.                                                                     <label class="form-label" for="formrow-email-input">Email</label>
  197.                                                                     <input type="email" class="form-control" id="formrow-email-input" placeholder="Enter your Email">
  198.                                                                 </div>
  199.                                                             </div>
  200.                                                             <div class="col-md-6">
  201.                                                                 <div class="mb-3">
  202.                                                                     <label class="form-label" for="formrow-password-input">Password</label>
  203.                                                                     <input type="password" class="form-control" id="formrow-password-input" placeholder="Enter your password">
  204.                                                                 </div>
  205.                                                             </div>
  206.                                                         </div>
  207.             
  208.             
  209.                                                         <div class="form-group">
  210.                                                             
  211.                                                             <div class="form-check">
  212.                                                                 <input type="checkbox" class="form-check-input" id="formrow-customCheck">
  213.                                                                 <label class="form-check-label" for="formrow-customCheck">Check me out</label>
  214.                                                             </div>
  215.                                                         </div>
  216.                                                         <div class="mt-4">
  217.                                                             <button type="submit" class="btn btn-primary w-md">Submit</button>
  218.                                                         </div>
  219.                                                     </form>
  220.                                                 </div>
  221.                                             </div>
  222.                                             <div class="col-lg-6 ms-lg-auto">
  223.                                                 <div class="mt-4 mt-lg-0">
  224.                                                     <h5 class="font-size-14 mb-4"><i class="mdi mdi-arrow-right text-primary me-1"></i> Horizontal form</h5>
  225.                                                     
  226.                                                     <form>
  227.                                                         <div class="row mb-4">
  228.                                                             <label for="horizontal-firstname-input" class="col-sm-3 col-form-label">First name</label>
  229.                                                             <div class="col-sm-9">
  230.                                                               <input type="text" class="form-control" id="horizontal-firstname-input" placeholder="Enter your First Name">
  231.                                                             </div>
  232.                                                         </div>
  233.                                                         <div class="row mb-4">
  234.                                                             <label for="horizontal-email-input" class="col-sm-3 col-form-label">Email</label>
  235.                                                             <div class="col-sm-9">
  236.                                                                 <input type="email" class="form-control" id="horizontal-email-input" placeholder="Enter your Email">
  237.                                                             </div>
  238.                                                         </div>
  239.                                                         <div class="row mb-4">
  240.                                                             <label for="horizontal-password-input" class="col-sm-3 col-form-label">Password</label>
  241.                                                             <div class="col-sm-9">
  242.                                                               <input type="password" class="form-control" id="horizontal-password-input" placeholder="Enter your password">
  243.                                                             </div>
  244.                                                         </div>
  245.             
  246.                                                         <div class="row justify-content-end">
  247.                                                             <div class="col-sm-9">
  248.                                                                 <div class="form-check mb-4">
  249.                                                                     <input type="checkbox" class="form-check-input" id="horizontal-customCheck">
  250.                                                                     <label class="form-check-label" for="horizontal-customCheck">Remember me</label>
  251.                                                                 </div>
  252.             
  253.                                                                 <div>
  254.                                                                     <button type="submit" class="btn btn-primary w-md">Submit</button>
  255.                                                                 </div>
  256.                                                             </div>
  257.                                                         </div>
  258.                                                     </form>
  259.                                                 </div>
  260.                                             </div>
  261.                                         </div>
  262.                                         <div class="row mt-4">
  263.                                             <div class="col-lg-6">
  264.                                                 <h5 class="font-size-14 mb-4"><i class="mdi mdi-arrow-right text-primary me-1"></i> Inline forms layout</h5>
  265.                                         
  266.                                                 <form class="row gx-3 gy-2 align-items-center mb-4 mb-lg-0">
  267.                                                     <div class="col-sm-4">
  268.                                                         <label class="visually-hidden" for="specificSizeInputName">Name</label>
  269.                                                         <input type="text" class="form-control" id="specificSizeInputName" placeholder="Enter Name">
  270.                                                     </div>
  271.                                                     <div class="col-sm-4">
  272.                                                         <label class="visually-hidden" for="specificSizeInputGroupUsername">Username</label>
  273.                                                         <div class="input-group">
  274.                                                             <div class="input-group-text">@</div>
  275.                                                             <input type="text" class="form-control" id="specificSizeInputGroupUsername" placeholder="Username">
  276.                                                         </div>
  277.                                                     </div>
  278.                                                     <div class="col-sm-auto">
  279.                                                         <div class="form-check">
  280.                                                             <input class="form-check-input" type="checkbox" id="autoSizingCheck2">
  281.                                                             <label class="form-check-label" for="autoSizingCheck2">
  282.                                                                 Remember me
  283.                                                             </label>
  284.                                                         </div>
  285.                                                     </div>
  286.                                                     <div class="col-sm-auto">
  287.                                                         <button type="submit" class="btn btn-primary">Submit</button>
  288.                                                     </div>
  289.                                                 </form>
  290.                                             </div>
  291.                                             <div class="col-lg-6">
  292.                                                 <h5 class="font-size-14 mb-4"><i class="mdi mdi-arrow-right text-primary me-1"></i> Floating Label</h5>
  293.                                                 <div class="row">
  294.                                                     <div class="col-lg-6">
  295.                                                         <div class="form-floating mb-3 mb-lg-0">
  296.                                                             <input type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
  297.                                                             <label for="floatingInput">Email address</label>
  298.                                                         </div>                                                        
  299.                                                     </div>
  300.                                                     <div class="col-lg-6">
  301.                                                         <div class="form-floating">
  302.                                                             <input type="password" class="form-control" id="floatingPassword" placeholder="Password">
  303.                                                             <label for="floatingPassword">Password</label>
  304.                                                         </div>
  305.                                                     </div>
  306.                                                 </div>
  307.                                             </div>
  308.                                         </div>
  309.                                         <div class="row mt-4">
  310.                                             <div class="col-lg-6">
  311.                                                 <h5 class="font-size-14 mb-4"><i class="mdi mdi-arrow-right text-primary me-1"></i> Inline forms layout used by hstack</h5>
  312.                                                 <form class="row gx-3 gy-2 align-items-center">
  313.                                                     <div class="hstack gap-3">
  314.                                                         <input class="form-control me-auto" type="text" placeholder="Add your item here...">
  315.                                                         <button type="button" class="btn btn-secondary">Submit</button>
  316.                                                         <div class="vr"></div>
  317.                                                         <button type="reset" class="btn btn-outline-danger">Reset</button>
  318.                                                     </div>
  319.                                                 </form>
  320.                                             </div>
  321.                                         </div>
  322.                                     </div>
  323.                                 </div>
  324.                             </div>
  325.                         </div>
  326.                         <!-- End Form Layout -->
  327.                         <div class="row">
  328.                             <div class="col-xl-6">
  329.                                 <div class="card">
  330.                                     <div class="card-header">
  331.                                         <h4 class="card-title mb-0">Checkboxes</h4>
  332.                                     </div>
  333.                                     <div class="card-body">
  334.                                         <div class="row">
  335.                                             <div class="col-md-6">
  336.                                                 <div >
  337.                                                     <h5 class="font-size-14 mb-3"><i class="mdi mdi-arrow-right text-primary me-1"></i> Form Checkboxes
  338.                                                     </h5>
  339.                                                     <div class="form-check mb-3">
  340.                                                         <input class="form-check-input" type="checkbox" id="formCheck1">
  341.                                                         <label class="form-check-label" for="formCheck1">
  342.                                                             Form Checkbox
  343.                                                         </label>
  344.                                                     </div>
  345.                                                     <div class="form-check">
  346.                                                         <input class="form-check-input" type="checkbox" id="formCheck2" checked>
  347.                                                         <label class="form-check-label" for="formCheck2">
  348.                                                             Form Checkbox checked
  349.                                                         </label>
  350.                                                     </div>
  351.                                                 </div>
  352.                                             </div>
  353.                                             
  354.                                             <div class="col-md-6">
  355.                                                 <div class="mt-4 mt-md-0">
  356.                                                     <h5 class="font-size-14 mb-3"><i class="mdi mdi-arrow-right text-primary me-1"></i> Form Checkboxes
  357.                                                         Right</h5>
  358.                                                     <div>
  359.                                                         <div class="form-check form-check-right mb-3">
  360.                                                             <input class="form-check-input" type="checkbox" id="formCheckRight1">
  361.                                                             <label class="form-check-label" for="formCheckRight1">
  362.                                                                 Form Checkbox Right
  363.                                                             </label>
  364.                                                         </div>
  365.                                                     </div>
  366.                                                     <div>
  367.                                                         <div class="form-check form-check-right">
  368.                                                             <input class="form-check-input" type="checkbox" id="formCheckRight2"
  369.                                                                 checked>
  370.                                                             <label class="form-check-label" for="formCheckRight2">
  371.                                                                 Form Checkbox Right checked
  372.                                                             </label>
  373.                                                         </div>
  374.                                                     </div>
  375.                                                     
  376.                                                 </div>
  377.                                             </div>
  378.                                         </div>
  379.                                     </div>
  380.                                 </div>
  381.                             </div> 
  382.                             <div class="col-xl-6">
  383.                                 <div class="card">
  384.                                     <div class="card-header">
  385.                                         <h4 class="card-title mb-0">Radios</h4>
  386.                                     </div>
  387.                                     <div class="card-body">
  388.                                         <div class="row">
  389.                                             <div class="col-md-6">
  390.                                                 <div>
  391.                                                     <h5 class="font-size-14 mb-3"><i class="mdi mdi-arrow-right text-primary me-1"></i>Form Radios</h5>
  392.                                                     <div class="form-check mb-3">
  393.                                                         <input class="form-check-input" type="radio" name="formRadios"
  394.                                                             id="formRadios1" checked>
  395.                                                         <label class="form-check-label" for="formRadios1">
  396.                                                             Form Radio
  397.                                                         </label>
  398.                                                     </div>
  399.                                                     <div class="form-check">
  400.                                                         <input class="form-check-input" type="radio" name="formRadios"
  401.                                                             id="formRadios2">
  402.                                                         <label class="form-check-label" for="formRadios2">
  403.                                                             Form Radio checked
  404.                                                         </label>
  405.                                                     </div>
  406.                                                 </div>
  407.                                             </div>
  408.                                             <div class="col-md-6">
  409.                                                 <div class="mt-4 mt-md-0">
  410.                                                     <h5 class="font-size-14 mb-3"><i class="mdi mdi-arrow-right text-primary me-1"></i>Form Radios Right</h5>
  411.                                                     <div>
  412.                                                         <div class="form-check form-check-right mb-3">
  413.                                                             <input class="form-check-input" type="radio" name="formRadiosRight"
  414.                                                                 id="formRadiosRight1" checked>
  415.                                                             <label class="form-check-label" for="formRadiosRight1">
  416.                                                                 Form Radio Right
  417.                                                             </label>
  418.                                                         </div>
  419.                                                     </div>
  420.                                                     <div>
  421.                                                         <div class="form-check form-check-right">
  422.                                                             <input class="form-check-input" type="radio" name="formRadiosRight"
  423.                                                                 id="formRadiosRight2">
  424.                                                             <label class="form-check-label" for="formRadiosRight2">
  425.                                                                 Form Radio Right checked
  426.                                                             </label>
  427.                                                         </div>
  428.                                                     </div>
  429.                                                 </div>
  430.                                             </div>
  431.                                         </div>
  432.                                     </div>
  433.                                 </div>
  434.                             </div> 
  435.                         </div>
  436.                         <!-- end row -->
  437.                         <div class="row">
  438.                             <div class="col-lg-12">
  439.                                 <div class="card">
  440.                                     <div class="card-header">
  441.                                         <h4 class="card-title">Switches</h4>
  442.                                         <p class="card-title-desc">A switch has the markup of a custom checkbox but uses the <code>.form-switch</code> class to render a toggle switch. Switches also support the <code>disabled</code> attribute.</p>
  443.                                     </div>
  444.                                     <div class="card-body">
  445.                                         
  446.                                         <div class="row">
  447.                                             <div class="col-md-6">
  448.                                                 <div>
  449.                                                     <h5 class="font-size-14 mb-3"><i class="mdi mdi-arrow-right text-primary me-1"></i>Switch examples</h5>
  450.                                                     <div class="form-check form-switch mb-3" dir="ltr">
  451.                                                         <input type="checkbox" class="form-check-input" id="customSwitch1" checked>
  452.                                                         <label class="form-check-label" for="customSwitch1">Toggle this switch element</label>
  453.                                                     </div>
  454.                                                     <div class="form-check form-switch" dir="ltr">
  455.                                                         <input type="checkbox" class="form-check-input" disabled id="customSwitch2">
  456.                                                         <label class="form-check-label" for="customSwitch2">Disabled switch element</label>
  457.                                                     </div>
  458.                                                 </div>
  459.                                             </div>
  460.                                             <div class="col-md-6">
  461.                                                 <div class="mt-4 mt-md-0">
  462.                                                     <h5 class="font-size-14 mb-3"><i class="mdi mdi-arrow-right text-primary me-1"></i>Switch sizes</h5>
  463.         
  464.                                                     <div class="form-check form-switch mb-3" dir="ltr">
  465.                                                         <input type="checkbox" class="form-check-input" id="customSwitchsizesm" checked>
  466.                                                         <label class="form-check-label" for="customSwitchsizesm">Small Size Switch</label>
  467.                                                     </div>
  468.         
  469.                                                     <div class="form-check form-switch form-switch-md mb-3" dir="ltr">
  470.                                                         <input type="checkbox" class="form-check-input" id="customSwitchsizemd">
  471.                                                         <label class="form-check-label" for="customSwitchsizemd">Medium Size Switch</label>
  472.                                                     </div>
  473.         
  474.                                                     <div class="form-check form-switch form-switch-lg mb-3" dir="ltr">
  475.                                                         <input type="checkbox" class="form-check-input" id="customSwitchsizelg" checked>
  476.                                                         <label class="form-check-label" for="customSwitchsizelg">Large Size Switch</label>
  477.                                                     </div>
  478.                                                 </div>
  479.                                             </div>
  480.                                         </div>
  481.                                     </div>
  482.                                 </div>
  483.                             </div>
  484.                         </div>
  485.                         <!-- end row -->
  486.                     </div> <!-- container-fluid -->
  487.                 </div>
  488.                 <!-- End Page-content -->
  489.                 
  490.                 {{ include('partials/footer.html.twig') }}
  491.             </div>
  492.             <!-- end main content-->
  493.         </div>
  494.         <!-- END layout-wrapper -->
  495.         {{ include('partials/right-sidebar.html.twig') }}
  496.         {{ include('partials/vendor-scripts.html.twig') }}
  497.         <script src="/js/app.js"></script>
  498.     </body>
  499. </html>