-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor contact form to use mailto * Remove ContactPage HttpPost due to form using mailto * Remove contact page model
- Loading branch information
1 parent
10ec9d9
commit 7c4066b
Showing
3 changed files
with
8 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@model ContactPageModel | ||
@inject IConfiguration Configuration | ||
@{ | ||
ViewData["Title"] = "Contact Us"; | ||
} | ||
|
@@ -34,43 +34,31 @@ | |
<p>Suite A</p> | ||
<p>Tacoma, WA 98418</p> | ||
<br /> | ||
<a href = "mailto: [email protected]"><p>info@pc2online.org</p></a> | ||
<a href = "mailto:[email protected]"><p>info@pc2online.org</p></a> | ||
<a href="tel: +2535640707"><p>253.564.0707</p></a> | ||
<a href="tel: +8773354657"><p>877-DD-LINKS</p></a> | ||
<p>253.564.0702 (fax)</p> | ||
</div> | ||
|
||
<div class="col-7"> | ||
<form asp-action="ContactPage" method="post"> | ||
<form action="mailto:@Configuration["PC2Email"]"> | ||
<div class="row"> | ||
<div class="col"> | ||
<div class="form-group"> | ||
<input asp-for="Name" class="form-control" placeholder="Name" /> | ||
<span asp-validation-for="Name" class="text-danger"></span> | ||
</div> | ||
<br /> | ||
<div class="form-group"> | ||
<input asp-for="Email" class="form-control" placeholder="Email"/> | ||
<span asp-validation-for="Email" class="text-danger"></span> | ||
</div> | ||
<br /> | ||
<div class="form-group"> | ||
<input asp-for="Phone" class="form-control" placeholder="Phone"/> | ||
<span asp-validation-for="Phone" class="text-danger"></span> | ||
<input type="email" required name="email" class="form-control" placeholder="Your Email"/> | ||
</div> | ||
<br /> | ||
<div class="mb-3"> | ||
<input asp-for="Subject" class="form-control" placeholder="Subject"/> | ||
<span asp-validation-for="Subject" class="text-danger"></span> | ||
<input name="subject" type="text" required class="form-control" placeholder="Subject"/> | ||
</div> | ||
<br /> | ||
</div> | ||
<div class="col"> | ||
<div class="mb-3"> | ||
<textarea asp-for="Message" class="form-control" rows="6" placeholder="Message"></textarea> | ||
<span asp-validation-for="Message" class="text-danger"></span> | ||
<textarea name="body" required class="form-control" rows="6" cols="30" placeholder="Enter your name, any additional contact info, and message here"></textarea> | ||
</div> | ||
<div class="d-grid gap-2 d-md-flex justify-content-md-end"> | ||
<button type="submit" class="btn btn-primary me-md-2">Send</button> | ||
<input type="submit" class="btn btn-primary me-md-2" value="Send" /> | ||
</div> | ||
</div> | ||
</div> | ||
|