-
-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tidusjar
committed
Mar 14, 2016
1 parent
5153afd
commit 334a6f3
Showing
6 changed files
with
136 additions
and
5 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
@Html.Partial("_Sidebar") | ||
@{ | ||
int port; | ||
if (Model.EmailPort == 0) | ||
{ | ||
port = 25; | ||
} | ||
else | ||
{ | ||
port = Model.EmailPort; | ||
} | ||
} | ||
<div class="col-sm-8 col-sm-push-1"> | ||
<form class="form-horizontal" method="POST" id="mainForm"> | ||
<fieldset> | ||
<legend>Email Notifications</legend> | ||
|
||
<div class="form-group"> | ||
<div class="checkbox"> | ||
<label> | ||
@if (Model.Enabled) | ||
{ | ||
<input type="checkbox" id="Enabled" name="Enabled" checked="checked"><text>Enabled</text> | ||
} | ||
else | ||
{ | ||
<input type="checkbox" id="Enabled" name="Enabled"><text>Enabled</text> | ||
} | ||
</label> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="EmailHost" class="control-label">SMTP Hostname or IP</label> | ||
<div class=""> | ||
<input type="text" class="form-control form-control-custom " id="EmailHost" name="EmailHost" placeholder="localhost" value="@Model.EmailHost"> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="EmailPort" class="control-label">SMTP Port</label> | ||
|
||
<div class=""> | ||
<input type="text" class="form-control form-control-custom " id="EmailPort" name="EmailPort" placeholder="Port Number" value="@port"> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="form-group"> | ||
<label for="RecipientEmail" class="control-label">Email Recipient</label> | ||
<div> | ||
<input type="text" class="form-control form-control-custom " id="RecipientEmail" name="RecipientEmail" value="@Model.RecipientEmail"> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="checkbox"> | ||
<label> | ||
@if (Model.EmailAuthentication) | ||
{ | ||
<input type="checkbox" id="EmailAuthentication" name="EmailAuthentication" checked="checked"><text>Authenticate</text> | ||
} | ||
else | ||
{ | ||
<input type="checkbox" id="EmailAuthentication" name="EmailAuthentication"><text>Authenticate</text> | ||
} | ||
</label> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="EmailUsername" class="control-label">Username</label> | ||
<div> | ||
<input type="text" class="form-control form-control-custom " id="EmailUsername" name="EmailUsername" value="@Model.EmailUsername"> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="EmailPassword" class="control-label">Password</label> | ||
<div> | ||
<input type="password" class="form-control form-control-custom " id="EmailPassword" name="EmailPassword" value="@Model.EmailPassword"> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="form-group"> | ||
<div> | ||
<button type="submit" class="btn btn-primary-outline">Submit</button> | ||
</div> | ||
</div> | ||
</fieldset> | ||
</form> | ||
</div> |
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