PageRenderTime 383ms CodeModel.GetById 201ms app.highlight 1ms RepoModel.GetById 180ms app.codeStats 0ms

/AnotherStartup/Account/Confirm.cshtml

#
Razor | 21 lines | 19 code | 2 blank | 0 comment | 3 complexity | 95a52fc7974a5a2d7e5bc0e2c631f40a MD5 | raw file
 1@{this.Init(layout: "~/_SiteLayout.cshtml", title: "Registration Confirmation Page", action: Account.Confirm.Init);}   
 2    
 3
 4@if(Page.Confirmed) {   
 5    <p>Registration Confirmed! Click on the Login tab to log in to the site.</p>
 6} 
 7else if (@Page.Errors.ConfirmAccount.IsError) {
 8    <p class="validation-error">@Page.Errors.ConfirmAccount.Message</p>
 9} else {
10    <form method="post" action="">
11        <fieldset>
12            <legend>Confirmation Code</legend>
13            <label for="confirmationCode">
14                Please enter the confirmation code sent to you via email and 
15                then click the <em>Confirm</em> button.
16            </label>
17            <input type="text" id="confirmationCode" name="confirmationCode" title="Confirmation code" />
18            <input type="submit" value="Confirm" title="Confirm registration" />
19        </fieldset>
20    </form>
21}