add mail sending policy for user (Web)

This commit is contained in:
mfnefd 2024-06-22 21:15:42 +04:00
parent 536a8bfe91
commit bbe1fba99e
2 changed files with 13 additions and 0 deletions

View File

@ -74,6 +74,13 @@
</label> </label>
</div> </div>
<div class="form-check d-flex justify-content-center mb-4">
<input asp-for="UserModel.OnlyImportantMails" class="form-check-input me-2" type="checkbox" id="policy" />
<label class="form-check-label" for="policy">
Send only important mails
</label>
</div>
<!-- Submit button --> <!-- Submit button -->
<button type="submit" data-mdb-button-init data-mdb-ripple-init class="btn btn-primary btn-block mb-4"> <button type="submit" data-mdb-button-init data-mdb-ripple-init class="btn btn-primary btn-block mb-4">
Sign up Sign up

View File

@ -38,6 +38,12 @@
<label class="form-label" for="birthday">Birthday</label> <label class="form-label" for="birthday">Birthday</label>
</div> </div>
<!-- Sending Policy input -->
<div class="form-outline mb-4">
<input asp-for="UserModel.OnlyImportantMails" type="checkbox" id="policy" />
<label class="form-label" for="policy">Send only important mails</label>
</div>
<!-- Hidden inputs --> <!-- Hidden inputs -->
<input type="hidden" asp-for="UserModel.Id" /> <input type="hidden" asp-for="UserModel.Id" />
<input type="hidden" asp-for="UserModel.Role.Id" /> <input type="hidden" asp-for="UserModel.Role.Id" />