|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace Diligent.WebAPI.Business.Helper
- {
- public static class HTMLHelper
- {
- public static string RenderForgotPasswordPage(string url)
- {
- return "<div style=\"font-family: sans-serif\">" +
- "<div style=\"font-family: sans-serif;text-align: center;\">" +
- "<h2 style=\"color: #017397;\">HR Center Password Reset</h2>" +
- "<p style=\"font-size: 20px\">" +
- "To reset your HR Center password, please click on the button below." +
- "</p>" +
- "<a style = \"color: white;text-decoration:none;background-color: #017397;cursor: pointer;font-size: 20px;width: 220px;text-align: center;border-radius: 5px;padding: 5px 15px;height: 25px;\" " +
- $"href=\"{url}\">" +
- " RESET PASSWORD" +
- "</a>" +
- "<p style = \"font-size: 12px; margin-top: 25px;\" >" +
- "Please do not reply to this email.This message was sent from a notification-only address that is not monitored." +
- "</p>" +
- "</div>" +
- "</div>";
- }
- public static string RenderRegisterPage(string url)
- {
- return "<div style=\"font-family: sans-serif\">" +
- "<div style=\"font-family: sans-serif;text-align: center;\">" +
- "<h2 style=\"color: #017397;\">Welcome to HR Center</h2>" +
- "<p style=\"font-size: 20px\">" +
- "To register, please click on the button below." +
- "</p>" +
- "<a style = \"color: white;text-decoration:none;background-color: #017397;cursor: pointer;font-size: 20px;width: 220px;text-align: center;border-radius: 5px;padding: 5px 15px;height: 25px;\" " +
- $"href=\"{url}\">" +
- " Click here to register" +
- "</a>" +
- "<p style = \"font-size: 12px; margin-top: 25px;\" >" +
- "Please do not reply to this email.This message was sent from a notification-only address that is not monitored." +
- "</p>" +
- "</div>" +
- "</div>";
- }
-
- public static string RenderTagPage(string url)
- {
- return "<div>" +
- "<a style = \"color: white;text-decoration:none;background-color: #017397;cursor: pointer;font-size: 20px;border-radius: 5px;padding: 5px 15px;height: 25px;margin-top:10px;\" " +
- $"href=\"{url}\">" +
- "Click here to see the comment" +
- "</a>" +
- "</div>";
- }
-
- public static string SuccessfulStep(string message, string pattern, string date)
- {
- return "<div style=\"font-family: sans-serif\">" +
- "<div style=\"font-family: sans-serif; text-align: center; \">" +
- "<h2 style=\"color: #017397;\">" + pattern + "</h2>" +
- "</div>" +
- "<div style=\"padding: 0.25rem 2rem 0 2rem\">" +
- "<p style=\"color: #017397;\">Poštovani,</p >" +
- "</div>" +
- "<div style=\"padding: 0 13rem 0 4rem; \">" +
- "<p style=\"color: #017397;\">" + message + " " + date + "</p>" +
- "</div>" + "<div style=\"padding: 0 2rem; \">" +
- "<p style=\"color: #017397;\">Srdačan pozdrav,<br>Diligent HR Team</p>" +
- "</div>" +
- "</div>";
- }
-
- //public static string ScheduleInterview(string pattern, string message)
- //{
- // Dictionary<string, string> Patterns = new Dictionary<string, string>
- // {
- // { "Neuspesan korak", $"<div><p>Neuspesan korak: {message}</p></div>" },
- // { "Uspesan korak", SuccessfulStep(message, pattern) }
- // };
-
- // return Patterns[pattern];
- //}
- }
- }
|