|
94 | 94 | <div slot="header">
|
95 | 95 | <strong>Basic Form</strong> Elements
|
96 | 96 | </div>
|
| 97 | + <b-form> |
97 | 98 | <b-form-group
|
98 | 99 | description="Let us know your full name."
|
99 | 100 | label="Enter your name"
|
100 | 101 | label-for="basicName"
|
101 | 102 | :label-cols="3"
|
102 | 103 | :horizontal="true">
|
103 |
| - <b-form-input id="basicName" type="text"></b-form-input> |
| 104 | + <b-form-input id="basicName" type="text" autocomplete="name"></b-form-input> |
104 | 105 | </b-form-group>
|
105 | 106 | <b-form-group
|
106 | 107 | label="Static"
|
|
129 | 130 | label-for="basicEmail"
|
130 | 131 | :label-cols="3"
|
131 | 132 | :horizontal="true">
|
132 |
| - <b-form-input id="basicEmail" type="email" placeholder="Enter your email"></b-form-input> |
| 133 | + <b-form-input id="basicEmail" type="email" placeholder="Enter your email" autocomplete="email"></b-form-input> |
133 | 134 | </b-form-group>
|
134 | 135 | <b-form-group
|
135 | 136 | description="Please enter a complex password"
|
136 | 137 | label="Password Input"
|
137 | 138 | label-for="basicPassword"
|
138 | 139 | :label-cols="3"
|
139 | 140 | :horizontal="true">
|
140 |
| - <b-form-input id="basicPassword" type="password" placeholder="Enter your password"></b-form-input> |
| 141 | + <b-form-input id="basicPassword" type="password" placeholder="Enter your password" autocomplete="current-password"></b-form-input> |
141 | 142 | </b-form-group>
|
142 | 143 | <b-form-group
|
143 | 144 | label="Disabled Input"
|
|
388 | 389 | <b-button type="submit" size="sm" variant="primary"><i class="fa fa-dot-circle-o"></i> Submit</b-button>
|
389 | 390 | <b-button type="reset" size="sm" variant="danger"><i class="fa fa-ban"></i> Reset</b-button>
|
390 | 391 | </div>
|
| 392 | + </b-form> |
391 | 393 | </b-card>
|
392 | 394 | <b-card>
|
393 | 395 | <div slot="header">
|
|
398 | 400 | <label class="mr-sm-2" for="inlineInput1">Name: </label>
|
399 | 401 | <b-input id="inlineInput1" type="text" placeholder="Jane Doe"></b-input>
|
400 | 402 | <label class="mx-sm-2" for="inlineInput2">Email: </label>
|
401 |
| - < b-input id= "inlineInput2" type= "email" placeholder= "[email protected]"></ b-input> |
| 403 | + < b-input id= "inlineInput2" type= "email" placeholder= "[email protected]" autocomplete="email"></ b-input> |
402 | 404 | </b-form>
|
403 | 405 | <div slot="footer">
|
404 | 406 | <b-button type="submit" size="sm" variant="primary"><i class="fa fa-dot-circle-o"></i> Submit</b-button>
|
|
411 | 413 | <div slot="header">
|
412 | 414 | <strong>Horizontal</strong> Form
|
413 | 415 | </div>
|
414 |
| - <b-form-group |
415 |
| - label="Email" |
416 |
| - label-for="horizEmail" |
417 |
| - description="Please enter your email." |
418 |
| - :label-cols="3" |
419 |
| - :horizontal="true"> |
420 |
| - <b-form-input id="horizEmail" type="email" placeholder="Enter Email.."></b-form-input> |
421 |
| - </b-form-group> |
422 |
| - <b-form-group |
423 |
| - label="Password" |
424 |
| - label-for="horizPass" |
425 |
| - description="Please enter your password." |
426 |
| - :label-cols="3" |
427 |
| - :horizontal="true"> |
428 |
| - <b-form-input id="horizPass" type="password" placeholder="Enter Password.."></b-form-input> |
429 |
| - </b-form-group> |
430 |
| - <div slot="footer"> |
431 |
| - <b-button type="submit" size="sm" variant="primary"><i class="fa fa-dot-circle-o"></i> Submit</b-button> |
432 |
| - <b-button type="reset" size="sm" variant="danger"><i class="fa fa-ban"></i> Reset</b-button> |
433 |
| - </div> |
| 416 | + <b-form> |
| 417 | + <b-form-group |
| 418 | + label="Email" |
| 419 | + label-for="horizEmail" |
| 420 | + description="Please enter your email." |
| 421 | + :label-cols="3" |
| 422 | + :horizontal="true"> |
| 423 | + <b-form-input id="horizEmail" type="email" placeholder="Enter Email.." autocomplete="username email"></b-form-input> |
| 424 | + </b-form-group> |
| 425 | + <b-form-group |
| 426 | + label="Password" |
| 427 | + label-for="horizPass" |
| 428 | + description="Please enter your password." |
| 429 | + :label-cols="3" |
| 430 | + :horizontal="true"> |
| 431 | + <b-form-input id="horizPass" type="password" placeholder="Enter Password.." autocomplete="current-password"></b-form-input> |
| 432 | + </b-form-group> |
| 433 | + <div slot="footer"> |
| 434 | + <b-button type="submit" size="sm" variant="primary"><i class="fa fa-dot-circle-o"></i> Submit</b-button> |
| 435 | + <b-button type="reset" size="sm" variant="danger"><i class="fa fa-ban"></i> Reset</b-button> |
| 436 | + </div> |
| 437 | + </b-form> |
434 | 438 | </b-card>
|
435 | 439 | <b-card>
|
436 | 440 | <div slot="header">
|
437 | 441 | <strong>Normal</strong> Form
|
438 | 442 | </div>
|
439 |
| - <b-form-group validated |
440 |
| - label="Email" |
441 |
| - label-for="normalEmail" |
442 |
| - description="Please enter your email."> |
443 |
| - <b-form-input id="normalEmail" type="email" placeholder="Enter Email.." required></b-form-input> |
444 |
| - </b-form-group> |
445 |
| - <b-form-group validated |
446 |
| - label="Password" |
447 |
| - label-for="normalPass" |
448 |
| - description="Please enter your password."> |
449 |
| - <b-form-input id="normalPass" type="password" placeholder="Enter Password.." required></b-form-input> |
450 |
| - </b-form-group> |
451 |
| - <div slot="footer"> |
452 |
| - <b-button type="submit" size="sm" variant="primary"><i class="fa fa-dot-circle-o"></i> Submit</b-button> |
453 |
| - <b-button type="reset" size="sm" variant="danger"><i class="fa fa-ban"></i> Reset</b-button> |
454 |
| - </div> |
| 443 | + <b-form> |
| 444 | + <b-form-group validated |
| 445 | + label="Email" |
| 446 | + label-for="normalEmail" |
| 447 | + description="Please enter your email."> |
| 448 | + <b-form-input id="normalEmail" type="email" placeholder="Enter Email.." required autocomplete="email"></b-form-input> |
| 449 | + </b-form-group> |
| 450 | + <b-form-group validated |
| 451 | + label="Password" |
| 452 | + label-for="normalPass" |
| 453 | + description="Please enter your password."> |
| 454 | + <b-form-input id="normalPass" type="password" placeholder="Enter Password.." required autocomplete="current-password"></b-form-input> |
| 455 | + </b-form-group> |
| 456 | + <div slot="footer"> |
| 457 | + <b-button type="submit" size="sm" variant="primary"><i class="fa fa-dot-circle-o"></i> Submit</b-button> |
| 458 | + <b-button type="reset" size="sm" variant="danger"><i class="fa fa-ban"></i> Reset</b-button> |
| 459 | + </div> |
| 460 | + </b-form> |
455 | 461 | </b-card>
|
456 | 462 | <b-card no-body :no-block="true">
|
457 | 463 | <div slot="header">
|
|
617 | 623 | </b-form-group>
|
618 | 624 | <b-form-group>
|
619 | 625 | <b-input-group>
|
620 |
| - <b-form-input type="email" placeholder="Email"></b-form-input> |
| 626 | + <b-form-input type="email" placeholder="Email" autocomplete="email"></b-form-input> |
621 | 627 | <b-input-group-append><b-input-group-text><i class="fa fa-envelope-o"></i></b-input-group-text></b-input-group-append>
|
622 | 628 | </b-input-group>
|
623 | 629 | </b-form-group>
|
|
654 | 660 | </b-form-group>
|
655 | 661 | <b-form-group>
|
656 | 662 | <b-input-group>
|
657 |
| - <b-form-input type="email" placeholder="Email"></b-form-input> |
| 663 | + <b-form-input type="email" placeholder="Email" autocomplete="email"></b-form-input> |
658 | 664 | <!-- Attach Right button -->
|
659 | 665 | <b-input-group-append>
|
660 | 666 | <b-button variant="primary">Submit</b-button>
|
|
667 | 673 | <b-input-group-prepend>
|
668 | 674 | <b-button variant="primary"><i class="fa fa-facebook"></i></b-button>
|
669 | 675 | </b-input-group-prepend>
|
670 |
| - <b-form-input type="email" placeholder="Email"></b-form-input> |
| 676 | + <b-form-input type="email" placeholder="Email" autocomplete="email"></b-form-input> |
671 | 677 | <!-- Attach Left button -->
|
672 | 678 | <b-input-group-append>
|
673 | 679 | <b-button variant="primary"><i class="fa fa-twitter"></i></b-button>
|
|
859 | 865 | <div slot="header">
|
860 | 866 | Example Form
|
861 | 867 | </div>
|
862 |
| - <b-form-group> |
863 |
| - <b-input-group> |
864 |
| - <b-input-group-prepend><b-input-group-text>Username</b-input-group-text></b-input-group-prepend> |
865 |
| - <b-form-input type="text"></b-form-input> |
866 |
| - <b-input-group-append><b-input-group-text><i class="fa fa-user"></i></b-input-group-text></b-input-group-append> |
867 |
| - </b-input-group> |
868 |
| - </b-form-group> |
869 |
| - <b-form-group> |
870 |
| - <b-input-group> |
871 |
| - <b-input-group-prepend><b-input-group-text>Email</b-input-group-text></b-input-group-prepend> |
872 |
| - <b-form-input type="email"></b-form-input> |
873 |
| - <b-input-group-append><b-input-group-text><i class="fa fa-envelope"></i></b-input-group-text></b-input-group-append> |
874 |
| - </b-input-group> |
875 |
| - </b-form-group> |
876 |
| - <b-form-group> |
877 |
| - <b-input-group> |
878 |
| - <b-input-group-prepend><b-input-group-text>Password</b-input-group-text></b-input-group-prepend> |
879 |
| - <b-form-input type="password"></b-form-input> |
880 |
| - <b-input-group-append><b-input-group-text><i class="fa fa-asterisk"></i></b-input-group-text></b-input-group-append> |
881 |
| - </b-input-group> |
882 |
| - </b-form-group> |
883 |
| - <div class="form-group form-actions"> |
884 |
| - <b-button type="submit" size="sm" variant="primary">Submit</b-button> |
885 |
| - </div> |
| 868 | + <b-form> |
| 869 | + <b-form-group> |
| 870 | + <b-input-group> |
| 871 | + <b-input-group-prepend><b-input-group-text>Username</b-input-group-text></b-input-group-prepend> |
| 872 | + <b-form-input type="text"></b-form-input> |
| 873 | + <b-input-group-append><b-input-group-text><i class="fa fa-user"></i></b-input-group-text></b-input-group-append> |
| 874 | + </b-input-group> |
| 875 | + </b-form-group> |
| 876 | + <b-form-group> |
| 877 | + <b-input-group> |
| 878 | + <b-input-group-prepend><b-input-group-text>Email</b-input-group-text></b-input-group-prepend> |
| 879 | + <b-form-input type="email" autocomplete="email"></b-form-input> |
| 880 | + <b-input-group-append><b-input-group-text><i class="fa fa-envelope"></i></b-input-group-text></b-input-group-append> |
| 881 | + </b-input-group> |
| 882 | + </b-form-group> |
| 883 | + <b-form-group> |
| 884 | + <b-input-group> |
| 885 | + <b-input-group-prepend><b-input-group-text>Password</b-input-group-text></b-input-group-prepend> |
| 886 | + <b-form-input type="password" autocomplete="current-password"></b-form-input> |
| 887 | + <b-input-group-append><b-input-group-text><i class="fa fa-asterisk"></i></b-input-group-text></b-input-group-append> |
| 888 | + </b-input-group> |
| 889 | + </b-form-group> |
| 890 | + <div class="form-group form-actions"> |
| 891 | + <b-button type="submit" size="sm" variant="primary">Submit</b-button> |
| 892 | + </div> |
| 893 | + </b-form> |
886 | 894 | </b-card>
|
887 | 895 | </b-col>
|
888 | 896 | <b-col sm="4">
|
889 | 897 | <b-card>
|
890 | 898 | <div slot="header">
|
891 | 899 | Example Form
|
892 | 900 | </div>
|
893 |
| - <b-form-group> |
894 |
| - <b-input-group> |
895 |
| - <b-form-input type="text" placeholder="Username"></b-form-input> |
896 |
| - <b-input-group-append><b-input-group-text><i class="fa fa-user"></i></b-input-group-text></b-input-group-append> |
897 |
| - </b-input-group> |
898 |
| - </b-form-group> |
899 |
| - <b-form-group> |
900 |
| - <b-input-group> |
901 |
| - <b-form-input type="email" placeholder="Email"></b-form-input> |
902 |
| - <b-input-group-append><b-input-group-text><i class="fa fa-envelope"></i></b-input-group-text></b-input-group-append> |
903 |
| - </b-input-group> |
904 |
| - </b-form-group> |
905 |
| - <b-form-group> |
906 |
| - <b-input-group> |
907 |
| - <b-form-input type="password" placeholder="Password"></b-form-input> |
908 |
| - <b-input-group-append><b-input-group-text><i class="fa fa-asterisk"></i></b-input-group-text></b-input-group-append> |
909 |
| - </b-input-group> |
910 |
| - </b-form-group> |
911 |
| - <div class="form-group form-actions"> |
912 |
| - <b-button type="submit" class="btn btn-sm btn-secondary">Submit</b-button> |
913 |
| - </div> |
| 901 | + <b-form> |
| 902 | + <b-form-group> |
| 903 | + <b-input-group> |
| 904 | + <b-form-input type="text" placeholder="Username"></b-form-input> |
| 905 | + <b-input-group-append><b-input-group-text><i class="fa fa-user"></i></b-input-group-text></b-input-group-append> |
| 906 | + </b-input-group> |
| 907 | + </b-form-group> |
| 908 | + <b-form-group> |
| 909 | + <b-input-group> |
| 910 | + <b-form-input type="email" placeholder="Email" autocomplete="email"></b-form-input> |
| 911 | + <b-input-group-append><b-input-group-text><i class="fa fa-envelope"></i></b-input-group-text></b-input-group-append> |
| 912 | + </b-input-group> |
| 913 | + </b-form-group> |
| 914 | + <b-form-group> |
| 915 | + <b-input-group> |
| 916 | + <b-form-input type="password" placeholder="Password" autocomplete="current-password"></b-form-input> |
| 917 | + <b-input-group-append><b-input-group-text><i class="fa fa-asterisk"></i></b-input-group-text></b-input-group-append> |
| 918 | + </b-input-group> |
| 919 | + </b-form-group> |
| 920 | + <div class="form-group form-actions"> |
| 921 | + <b-button type="submit" class="btn btn-sm btn-secondary">Submit</b-button> |
| 922 | + </div> |
| 923 | + </b-form> |
914 | 924 | </b-card>
|
915 | 925 | </b-col>
|
916 | 926 | <b-col sm="4">
|
917 | 927 | <b-card>
|
918 | 928 | <div slot="header">
|
919 | 929 | Example Form
|
920 | 930 | </div>
|
921 |
| - <b-form-group> |
922 |
| - <b-input-group> |
923 |
| - <b-input-group-prepend> |
924 |
| - <b-input-group-text><i class="fa fa-user"></i></b-input-group-text> |
925 |
| - </b-input-group-prepend> |
926 |
| - <b-form-input type="text" placeholder="Username"></b-form-input> |
927 |
| - </b-input-group> |
928 |
| - </b-form-group> |
929 |
| - <b-form-group> |
930 |
| - <b-input-group> |
931 |
| - <b-input-group-prepend> |
932 |
| - <b-input-group-text><i class="fa fa-envelope"></i></b-input-group-text> |
933 |
| - </b-input-group-prepend> |
934 |
| - <b-form-input type="email" placeholder="Email"></b-form-input> |
935 |
| - </b-input-group> |
936 |
| - </b-form-group> |
937 |
| - <b-form-group> |
938 |
| - <b-input-group> |
939 |
| - <b-input-group-prepend> |
940 |
| - <b-input-group-text><i class="fa fa-asterisk"></i></b-input-group-text> |
941 |
| - </b-input-group-prepend> |
942 |
| - <b-form-input type="password" placeholder="Password"></b-form-input> |
943 |
| - </b-input-group> |
944 |
| - </b-form-group> |
945 |
| - <div class="form-group form-actions"> |
946 |
| - <b-button type="submit" size="sm" variant="success">Submit</b-button> |
947 |
| - </div> |
| 931 | + <b-form> |
| 932 | + <b-form-group> |
| 933 | + <b-input-group> |
| 934 | + <b-input-group-prepend> |
| 935 | + <b-input-group-text><i class="fa fa-user"></i></b-input-group-text> |
| 936 | + </b-input-group-prepend> |
| 937 | + <b-form-input type="text" placeholder="Username"></b-form-input> |
| 938 | + </b-input-group> |
| 939 | + </b-form-group> |
| 940 | + <b-form-group> |
| 941 | + <b-input-group> |
| 942 | + <b-input-group-prepend> |
| 943 | + <b-input-group-text><i class="fa fa-envelope"></i></b-input-group-text> |
| 944 | + </b-input-group-prepend> |
| 945 | + <b-form-input type="email" placeholder="Email" autocomplete="email"></b-form-input> |
| 946 | + </b-input-group> |
| 947 | + </b-form-group> |
| 948 | + <b-form-group> |
| 949 | + <b-input-group> |
| 950 | + <b-input-group-prepend> |
| 951 | + <b-input-group-text><i class="fa fa-asterisk"></i></b-input-group-text> |
| 952 | + </b-input-group-prepend> |
| 953 | + <b-form-input type="password" placeholder="Password" autocomplete="current-password"></b-form-input> |
| 954 | + </b-input-group> |
| 955 | + </b-form-group> |
| 956 | + <div class="form-group form-actions"> |
| 957 | + <b-button type="submit" size="sm" variant="success">Submit</b-button> |
| 958 | + </div> |
| 959 | + </b-form> |
948 | 960 | </b-card>
|
949 | 961 | </b-col>
|
950 | 962 | </b-row>
|
|
973 | 985 | <b-input-group-prepend>
|
974 | 986 | <b-input-group-text>@</b-input-group-text>
|
975 | 987 | </b-input-group-prepend>
|
976 |
| - <b-form-input id="elementsEmail" type="email"></b-form-input> |
| 988 | + <b-form-input id="elementsEmail" type="email" autocomplete="email"></b-form-input> |
977 | 989 | </b-input-group>
|
978 | 990 | </b-form-group>
|
979 | 991 | <b-form-group label="Appended text" label-for="elementsAppend" description="Here's some help text">
|
@@ -1039,10 +1051,12 @@ export default {
|
1039 | 1051 | </script>
|
1040 | 1052 |
|
1041 | 1053 | <style scoped>
|
1042 |
| - .fade-enter-active, .fade-leave-active { |
1043 |
| - transition: opacity .5s; |
1044 |
| - } |
1045 |
| - .fade-enter, .fade-leave-to { |
1046 |
| - opacity: 0; |
1047 |
| - } |
| 1054 | +.fade-enter-active, |
| 1055 | +.fade-leave-active { |
| 1056 | + transition: opacity 0.5s; |
| 1057 | +} |
| 1058 | +.fade-enter, |
| 1059 | +.fade-leave-to { |
| 1060 | + opacity: 0; |
| 1061 | +} |
1048 | 1062 | </style>
|
0 commit comments