Add route and HTML

This commit is contained in:
Le Libre Au Quotidien 2019-12-30 11:48:02 +01:00
parent 0730d4a6ac
commit adcdaf911f
4 changed files with 385 additions and 310 deletions

583
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -30,20 +30,20 @@
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^0.803.21", "@angular-devkit/build-angular": "^0.803.21",
"@angular/cli": "~8.2.1", "@angular/cli": "~8.3.21",
"@angular/compiler-cli": "~8.2.0", "@angular/compiler-cli": "^8.2.14",
"@angular/language-service": "~8.2.0", "@angular/language-service": "^8.2.14",
"@types/jasmine": "~3.3.8", "@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "^2.0.8",
"@types/node": "~8.9.4", "@types/node": "~8.9.4",
"codelyzer": "^5.0.0", "codelyzer": "^5.2.1",
"jasmine-core": "~3.4.0", "jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1", "jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0", "karma": "~4.1.0",
"karma-chrome-launcher": "~2.2.0", "karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1", "karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1", "karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.0", "karma-jasmine-html-reporter": "^1.5.1",
"protractor": "~5.4.0", "protractor": "~5.4.0",
"ts-node": "~7.0.0", "ts-node": "~7.0.0",
"tslint": "~5.15.0", "tslint": "~5.15.0",

View File

@ -12,6 +12,7 @@ import {HomeComponent} from "../pages/home/home.component";
import {PollGraphicComponent} from '../poll-graphic/poll-graphic.component'; import {PollGraphicComponent} from '../poll-graphic/poll-graphic.component';
import {VoteChoiceComponent} from "../vote-choice/vote-choice.component"; import {VoteChoiceComponent} from "../vote-choice/vote-choice.component";
import {VotingComponent} from "../pages/voting/voting.component"; import {VotingComponent} from "../pages/voting/voting.component";
import {PasswordComponent} from "../pages/password/password.component";
/** /**
* each step in the form is a component * each step in the form is a component
*/ */
@ -33,5 +34,6 @@ export const Routes =
{path: 'graphic/:poll', component: PollGraphicComponent}, {path: 'graphic/:poll', component: PollGraphicComponent},
{path: 'votechoice', component: VoteChoiceComponent}, {path: 'votechoice', component: VoteChoiceComponent},
{path: 'voting', component: VotingComponent}, {path: 'voting', component: VotingComponent},
{path: 'step/password', component: PasswordComponent},
] ]
; ;

View File

@ -1 +1,9 @@
<p>password works!</p> <h1>Nom du sondage</h1>
<p>Ce sondage est protégé par un mot de passe</p>
<form>
<label for="password"></label>
<input type="password" name="password">
<input type="submit" name="view" value="Voir" class="btn btn--small btn--purple">
<input type="submit" name="go" value="Accéder au sondage" class="btn btn--primary btn--full">
</form>