├── .gitattributes ├── .gitignore ├── README.md └── src ├── motekarteknologi ├── Areas │ └── crm │ │ ├── Controllers │ │ ├── ActivityTypesController.cs │ │ ├── CustomerActivitiesController.cs │ │ ├── CustomerAdditionalContactsController.cs │ │ ├── CustomerNotesController.cs │ │ ├── CustomerTypesController.cs │ │ ├── CustomersController.cs │ │ ├── DashboardsController.cs │ │ ├── LeadActivitiesController.cs │ │ ├── LeadAdditionalContactsController.cs │ │ ├── LeadNotesController.cs │ │ ├── LeadTypesController.cs │ │ ├── LeadsController.cs │ │ ├── LostReasonsController.cs │ │ ├── OpportunitiesController.cs │ │ ├── OpportunityActivitiesController.cs │ │ ├── PipelineStagesController.cs │ │ └── SalesChannelsController.cs │ │ ├── Models │ │ ├── ActivityType.cs │ │ ├── Customer.cs │ │ ├── CustomerActivity.cs │ │ ├── CustomerAdditionalContact.cs │ │ ├── CustomerNote.cs │ │ ├── CustomerType.cs │ │ ├── Lead.cs │ │ ├── LeadActivity.cs │ │ ├── LeadAdditionalContact.cs │ │ ├── LeadNote.cs │ │ ├── LeadType.cs │ │ ├── LostReason.cs │ │ ├── Opportunity.cs │ │ ├── OpportunityActivity.cs │ │ ├── PipelineStage.cs │ │ └── SalesChannel.cs │ │ ├── ViewModels │ │ └── Common │ │ │ ├── ChildActionButton.cs │ │ │ ├── ChildCreateNew.cs │ │ │ └── ChildGridAction.cs │ │ └── Views │ │ ├── ActivityTypes │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── CustomerActivities │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── CustomerAdditionalContacts │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── CustomerNotes │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── CustomerTypes │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── Customers │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── Dashboards │ │ └── Index.cshtml │ │ ├── LeadActivities │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ ├── Index.cshtml │ │ └── _CreateEdit.cshtml │ │ ├── LeadAdditionalContacts │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── LeadNotes │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── LeadTypes │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── Leads │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ ├── Index.cshtml │ │ └── _CreateEdit.cshtml │ │ ├── LostReasons │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── Opportunities │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── OpportunityActivities │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── PipelineStages │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── SalesChannels │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ │ ├── Shared │ │ ├── Error.cshtml │ │ ├── _ChildActionButtons.cshtml │ │ ├── _ChildCreateNew.cshtml │ │ ├── _ChildGridActions.cshtml │ │ ├── _Footer.cshtml │ │ ├── _Layout.cshtml │ │ ├── _LayoutAdminlte.cshtml │ │ ├── _LoginPartial.cshtml │ │ ├── _Navigation.cshtml │ │ ├── _Sidebar.cshtml │ │ └── _ValidationScriptsPartial.cshtml │ │ ├── _ViewImports.cshtml │ │ └── _ViewStart.cshtml ├── Controllers │ ├── AccountController.cs │ ├── HomeController.cs │ └── ManageController.cs ├── Data │ ├── ApplicationDbContext.cs │ └── DbInitializer.cs ├── Extensions │ ├── EmailSenderExtensions.cs │ └── UrlHelperExtensions.cs ├── Helpers │ └── HtmlHelpers.cs ├── Migrations │ ├── 20180311044756_first-migration.Designer.cs │ ├── 20180311044756_first-migration.cs │ └── ApplicationDbContextModelSnapshot.cs ├── Models │ ├── AccountViewModels │ │ ├── ExternalLoginViewModel.cs │ │ ├── ForgotPasswordViewModel.cs │ │ ├── LoginViewModel.cs │ │ ├── LoginWith2faViewModel.cs │ │ ├── LoginWithRecoveryCodeViewModel.cs │ │ ├── RegisterViewModel.cs │ │ └── ResetPasswordViewModel.cs │ ├── ApplicationUser.cs │ ├── BaseAddressModel.cs │ ├── BaseContactModel.cs │ ├── BaseModel.cs │ ├── ErrorViewModel.cs │ └── ManageViewModels │ │ ├── ChangePasswordViewModel.cs │ │ ├── EnableAuthenticatorViewModel.cs │ │ ├── ExternalLoginsViewModel.cs │ │ ├── IndexViewModel.cs │ │ ├── RemoveLoginViewModel.cs │ │ ├── SetPasswordViewModel.cs │ │ ├── ShowRecoveryCodesViewModel.cs │ │ └── TwoFactorAuthenticationViewModel.cs ├── Program.cs ├── ScaffoldingReadMe.txt ├── Services │ ├── EmailSender.cs │ └── IEmailSender.cs ├── Startup.cs ├── Statics │ └── TempDataKey.cs ├── Views │ ├── Account │ │ ├── AccessDenied.cshtml │ │ ├── ConfirmEmail.cshtml │ │ ├── ExternalLogin.cshtml │ │ ├── ForgotPassword.cshtml │ │ ├── ForgotPasswordConfirmation.cshtml │ │ ├── Lockout.cshtml │ │ ├── Login.cshtml │ │ ├── LoginWith2fa.cshtml │ │ ├── LoginWithRecoveryCode.cshtml │ │ ├── Register.cshtml │ │ ├── ResetPassword.cshtml │ │ ├── ResetPasswordConfirmation.cshtml │ │ └── SignedOut.cshtml │ ├── Home │ │ ├── About.cshtml │ │ ├── Contact.cshtml │ │ └── Index.cshtml │ ├── Manage │ │ ├── ChangePassword.cshtml │ │ ├── Disable2fa.cshtml │ │ ├── EnableAuthenticator.cshtml │ │ ├── ExternalLogins.cshtml │ │ ├── GenerateRecoveryCodes.cshtml │ │ ├── Index.cshtml │ │ ├── ManageNavPages.cs │ │ ├── ResetAuthenticator.cshtml │ │ ├── SetPassword.cshtml │ │ ├── ShowRecoveryCodes.cshtml │ │ ├── TwoFactorAuthentication.cshtml │ │ ├── _Layout.cshtml │ │ ├── _ManageNav.cshtml │ │ ├── _StatusMessage.cshtml │ │ └── _ViewImports.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ ├── _Layout.cshtml │ │ ├── _LoginPartial.cshtml │ │ └── _ValidationScriptsPartial.cshtml │ ├── _ViewImports.cshtml │ └── _ViewStart.cshtml ├── appsettings.Development.json ├── appsettings.json ├── bundleconfig.json ├── motekarteknologi.csproj └── wwwroot │ ├── css │ ├── site.css │ └── site.min.css │ ├── favicon.ico │ ├── images │ ├── banner1.svg │ ├── banner2.svg │ ├── banner3.svg │ └── banner4.svg │ ├── js │ ├── site.js │ └── site.min.js │ └── lib │ ├── bootstrap │ ├── .bower.json │ ├── LICENSE │ └── dist │ │ ├── css │ │ ├── bootstrap-theme.css │ │ ├── bootstrap-theme.css.map │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap-theme.min.css.map │ │ ├── bootstrap.css │ │ ├── bootstrap.css.map │ │ ├── bootstrap.min.css │ │ └── bootstrap.min.css.map │ │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ │ └── js │ │ ├── bootstrap.js │ │ ├── bootstrap.min.js │ │ └── npm.js │ ├── jquery-validation-unobtrusive │ ├── .bower.json │ ├── jquery.validate.unobtrusive.js │ └── jquery.validate.unobtrusive.min.js │ ├── jquery-validation │ ├── .bower.json │ ├── LICENSE.md │ └── dist │ │ ├── additional-methods.js │ │ ├── additional-methods.min.js │ │ ├── jquery.validate.js │ │ └── jquery.validate.min.js │ └── jquery │ ├── .bower.json │ ├── LICENSE.txt │ └── dist │ ├── jquery.js │ ├── jquery.min.js │ └── jquery.min.map └── src.sln /README.md: -------------------------------------------------------------------------------- 1 | # aspnetcore2-crm-plus 2 | CRM, leads, contacts directory, sales management, invoicing, subscription, purchase management, inventory management, HCM, leave management, employee management, employee directory, attendance, recruitement, expense tracker, lunch, project management, timesheets, helpdesk, project forecast 3 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Controllers/DashboardsController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Mvc; 6 | 7 | namespace motekarteknologi.Areas.crm.Controllers 8 | { 9 | [Area("crm")] 10 | public class DashboardsController : Controller 11 | { 12 | public IActionResult Index() 13 | { 14 | return View(); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/ActivityType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Areas.crm.Models 7 | { 8 | public class ActivityType : motekarteknologi.Models.BaseModel 9 | { 10 | public ActivityType() 11 | { 12 | this.NumberofDays = 0; 13 | } 14 | public int NumberofDays { get; set; } 15 | public ActivityType RecomendedNextActivity { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/Customer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.ComponentModel.DataAnnotations; 6 | 7 | namespace motekarteknologi.Areas.crm.Models 8 | { 9 | public class Customer : motekarteknologi.Models.BaseAddressModel 10 | { 11 | public Customer() 12 | { 13 | this.LineAdditionalContact = new List(); 14 | this.LineNote = new List(); 15 | } 16 | [StringLength(200)] 17 | public string ContactName { get; set; } 18 | [StringLength(100)] 19 | public string JobPosition { get; set; } 20 | [StringLength(100)] 21 | public string Email { get; set; } 22 | [StringLength(50)] 23 | public string Phone { get; set; } 24 | [StringLength(50)] 25 | public string Mobile { get; set; } 26 | public CustomerType CustomerType { get; set; } 27 | 28 | public ICollection LineAdditionalContact { get; set; } 29 | public ICollection LineNote { get; set; } 30 | public ICollection LineActivity { get; set; } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/CustomerActivity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | 8 | namespace motekarteknologi.Areas.crm.Models 9 | { 10 | public class CustomerActivity : motekarteknologi.Models.BaseModel 11 | { 12 | public CustomerActivity() 13 | { 14 | this.From = DateTime.UtcNow; 15 | this.To = DateTime.UtcNow; 16 | } 17 | public Customer Customer { get; set; } 18 | [DataType(DataType.Date)] 19 | [DisplayFormat(DataFormatString = "{0:dd-MMM-yyyy}", ApplyFormatInEditMode = true)] 20 | public DateTime From { get; set; } 21 | [DataType(DataType.Date)] 22 | [DisplayFormat(DataFormatString = "{0:dd-MMM-yyyy}", ApplyFormatInEditMode = true)] 23 | public DateTime To { get; set; } 24 | public ActivityType ActivityType { get; set; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/CustomerAdditionalContact.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Areas.crm.Models 7 | { 8 | public class CustomerAdditionalContact : motekarteknologi.Models.BaseModel 9 | { 10 | public Customer Customer { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/CustomerNote.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Areas.crm.Models 7 | { 8 | public class CustomerNote : motekarteknologi.Models.BaseModel 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/CustomerType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Areas.crm.Models 7 | { 8 | public class CustomerType : motekarteknologi.Models.BaseModel 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/Lead.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.ComponentModel.DataAnnotations; 6 | 7 | namespace motekarteknologi.Areas.crm.Models 8 | { 9 | public class Lead : motekarteknologi.Models.BaseAddressModel 10 | { 11 | public Lead() 12 | { 13 | this.Priority = 0; 14 | this.LineAdditionalContact = new List(); 15 | this.LineNote = new List(); 16 | this.IsQualified = false; 17 | } 18 | [StringLength(200)] 19 | public string ContactName { get; set; } 20 | [StringLength(100)] 21 | public string JobPosition { get; set; } 22 | [StringLength(100)] 23 | public string Email { get; set; } 24 | [StringLength(50)] 25 | public string Phone { get; set; } 26 | [StringLength(50)] 27 | public string Mobile { get; set; } 28 | 29 | public motekarteknologi.Models.ApplicationUser SalesPerson { get; set; } 30 | public SalesChannel SalesChannel { get; set; } 31 | public LeadType LeadType { get; set; } 32 | public int Priority { get; set; } 33 | public bool IsQualified { get; set; } 34 | 35 | public ICollection LineAdditionalContact { get; set; } 36 | public ICollection LineNote { get; set; } 37 | public ICollection LineActivity { get; set; } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/LeadActivity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | 8 | namespace motekarteknologi.Areas.crm.Models 9 | { 10 | public class LeadActivity : motekarteknologi.Models.BaseModel 11 | { 12 | public LeadActivity() 13 | { 14 | this.From = DateTime.UtcNow; 15 | this.To = DateTime.UtcNow; 16 | } 17 | public Lead Lead { get; set; } 18 | [DataType(DataType.Date)] 19 | [DisplayFormat(DataFormatString = "{0:dd-MMM-yyyy}", ApplyFormatInEditMode = true)] 20 | public DateTime From { get; set; } 21 | [DataType(DataType.Date)] 22 | [DisplayFormat(DataFormatString = "{0:dd-MMM-yyyy}", ApplyFormatInEditMode = true)] 23 | public DateTime To { get; set; } 24 | public ActivityType ActivityType { get; set; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/LeadAdditionalContact.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Areas.crm.Models 7 | { 8 | public class LeadAdditionalContact : motekarteknologi.Models.BaseContactModel 9 | { 10 | public Lead Lead { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/LeadNote.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Areas.crm.Models 7 | { 8 | public class LeadNote : motekarteknologi.Models.BaseModel 9 | { 10 | public Lead Lead { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/LeadType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Areas.crm.Models 7 | { 8 | public class LeadType : motekarteknologi.Models.BaseModel 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/LostReason.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Areas.crm.Models 7 | { 8 | public class LostReason : motekarteknologi.Models.BaseModel 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/Opportunity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | 8 | namespace motekarteknologi.Areas.crm.Models 9 | { 10 | public class Opportunity : motekarteknologi.Models.BaseModel 11 | { 12 | public Opportunity() 13 | { 14 | this.Priority = 0; 15 | this.ExpectedRevenue = 0; 16 | this.IsWon = false; 17 | this.IsLost = false; 18 | this.ExpectedClosing = DateTime.UtcNow; 19 | } 20 | public Lead Lead { get; set; } 21 | public Customer Customer { get; set; } 22 | [DataType(DataType.Currency)] 23 | [Column(TypeName = "money")] 24 | public decimal ExpectedRevenue { get; set; } 25 | public int Priority { get; set; } 26 | public PipelineStage PipelineStage { get; set; } 27 | public bool IsWon { get; set; } 28 | public bool IsLost { get; set; } 29 | public DateTime ExpectedClosing { get; set; } 30 | public DateTime ActualClosing { get; set; } 31 | public LostReason LostReason { get; set; } 32 | 33 | public ICollection LineActivity { get; set; } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/OpportunityActivity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | 8 | namespace motekarteknologi.Areas.crm.Models 9 | { 10 | public class OpportunityActivity : motekarteknologi.Models.BaseModel 11 | { 12 | public OpportunityActivity() 13 | { 14 | this.From = DateTime.UtcNow; 15 | this.To = DateTime.UtcNow; 16 | } 17 | public Opportunity Opportunity { get; set; } 18 | [DataType(DataType.Date)] 19 | [DisplayFormat(DataFormatString = "{0:dd-MMM-yyyy}", ApplyFormatInEditMode = true)] 20 | public DateTime From { get; set; } 21 | [DataType(DataType.Date)] 22 | [DisplayFormat(DataFormatString = "{0:dd-MMM-yyyy}", ApplyFormatInEditMode = true)] 23 | public DateTime To { get; set; } 24 | public ActivityType ActivityType { get; set; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/PipelineStage.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Areas.crm.Models 7 | { 8 | public class PipelineStage : motekarteknologi.Models.BaseModel 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Models/SalesChannel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Areas.crm.Models 7 | { 8 | public class SalesChannel : motekarteknologi.Models.BaseModel 9 | { 10 | public SalesChannel() 11 | { 12 | this.TeamMembers = new List(); 13 | } 14 | 15 | public motekarteknologi.Models.ApplicationUser ChannelLeader { get; set; } 16 | 17 | public ICollection TeamMembers { get; set; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/ViewModels/Common/ChildActionButton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Areas.crm.ViewModels.Common 7 | { 8 | public class ChildActionButton 9 | { 10 | public string MasterControllerName { get; set; } 11 | public string MasterActionName { get; set; } 12 | public Guid MasterID { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/ViewModels/Common/ChildCreateNew.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Areas.crm.ViewModels.Common 7 | { 8 | public class ChildCreateNew 9 | { 10 | public string ControllerName { get; set; } 11 | public Guid MasterID { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/ViewModels/Common/ChildGridAction.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Areas.crm.ViewModels.Common 7 | { 8 | public class ChildGridAction 9 | { 10 | public Guid ID { get; set; } 11 | public Guid MasterID { get; set; } 12 | public string DestinationControllerName { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/ActivityTypes/Create.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.ActivityType 2 | 3 | @{ 4 | ViewData["Title"] = "Create"; 5 | } 6 | 7 |

Create

8 | 9 |

ActivityType

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 |
21 | 22 | 23 | 24 |
25 |
26 |
27 | 30 |
31 |
32 |
33 | 34 | 35 | 36 |
37 |
38 | 39 | 40 | 41 |
42 |
43 | 44 |
45 |
46 |
47 |
48 | 49 |
50 | Back to List 51 |
52 | 53 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/ActivityTypes/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.ActivityType 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

ActivityType

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.NumberofDays) 16 |
17 |
18 | @Html.DisplayFor(model => model.NumberofDays) 19 |
20 |
21 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 22 |
23 |
24 | @Html.DisplayFor(model => model.CreatedDateUtc) 25 |
26 |
27 | @Html.DisplayNameFor(model => model.IsActive) 28 |
29 |
30 | @Html.DisplayFor(model => model.IsActive) 31 |
32 |
33 | @Html.DisplayNameFor(model => model.Name) 34 |
35 |
36 | @Html.DisplayFor(model => model.Name) 37 |
38 |
39 | @Html.DisplayNameFor(model => model.Description) 40 |
41 |
42 | @Html.DisplayFor(model => model.Description) 43 |
44 |
45 | 46 |
47 | 48 | | 49 | Back to List 50 |
51 |
52 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/ActivityTypes/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.ActivityType 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

ActivityType

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.NumberofDays) 15 |
16 |
17 | @Html.DisplayFor(model => model.NumberofDays) 18 |
19 |
20 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 21 |
22 |
23 | @Html.DisplayFor(model => model.CreatedDateUtc) 24 |
25 |
26 | @Html.DisplayNameFor(model => model.IsActive) 27 |
28 |
29 | @Html.DisplayFor(model => model.IsActive) 30 |
31 |
32 | @Html.DisplayNameFor(model => model.Name) 33 |
34 |
35 | @Html.DisplayFor(model => model.Name) 36 |
37 |
38 | @Html.DisplayNameFor(model => model.Description) 39 |
40 |
41 | @Html.DisplayFor(model => model.Description) 42 |
43 |
44 |
45 |
46 | Edit | 47 | Back to List 48 |
49 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/ActivityTypes/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.ActivityType 2 | 3 | @{ 4 | ViewData["Title"] = "Edit"; 5 | } 6 | 7 |

Edit

8 | 9 |

ActivityType

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 | 21 |
22 | 23 | 24 | 25 |
26 |
27 |
28 | 31 |
32 |
33 |
34 | 35 | 36 | 37 |
38 |
39 | 40 | 41 | 42 |
43 |
44 | 45 |
46 |
47 |
48 |
49 | 50 |
51 | Back to List 52 |
53 | 54 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/ActivityTypes/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model IEnumerable 2 | 3 | @{ 4 | ViewData["Title"] = "Index"; 5 | } 6 | 7 |

Index

8 | 9 |

10 | Create New 11 |

12 | 13 | 14 | 15 | 18 | 21 | 24 | 27 | 30 | 31 | 32 | 33 | 34 | @foreach (var item in Model) { 35 | 36 | 39 | 42 | 45 | 48 | 51 | 56 | 57 | } 58 | 59 |
16 | @Html.DisplayNameFor(model => model.NumberofDays) 17 | 19 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 20 | 22 | @Html.DisplayNameFor(model => model.IsActive) 23 | 25 | @Html.DisplayNameFor(model => model.Name) 26 | 28 | @Html.DisplayNameFor(model => model.Description) 29 |
37 | @Html.DisplayFor(modelItem => item.NumberofDays) 38 | 40 | @Html.DisplayFor(modelItem => item.CreatedDateUtc) 41 | 43 | @Html.DisplayFor(modelItem => item.IsActive) 44 | 46 | @Html.DisplayFor(modelItem => item.Name) 47 | 49 | @Html.DisplayFor(modelItem => item.Description) 50 | 52 | Edit | 53 | Details | 54 | Delete 55 |
60 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerActivities/Create.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerActivity 2 | 3 | @{ 4 | ViewData["Title"] = "Create"; 5 | } 6 | 7 |

Create

8 | 9 |

CustomerActivity

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 |
21 | 22 | 23 | 24 |
25 |
26 | 27 | 28 | 29 |
30 |
31 |
32 | 35 |
36 |
37 |
38 | 39 | 40 | 41 |
42 |
43 | 44 | 45 | 46 |
47 |
48 | 49 |
50 |
51 |
52 |
53 | 54 |
55 | Back to List 56 |
57 | 58 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerActivities/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerActivity 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

CustomerActivity

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.From) 16 |
17 |
18 | @Html.DisplayFor(model => model.From) 19 |
20 |
21 | @Html.DisplayNameFor(model => model.To) 22 |
23 |
24 | @Html.DisplayFor(model => model.To) 25 |
26 |
27 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 28 |
29 |
30 | @Html.DisplayFor(model => model.CreatedDateUtc) 31 |
32 |
33 | @Html.DisplayNameFor(model => model.IsActive) 34 |
35 |
36 | @Html.DisplayFor(model => model.IsActive) 37 |
38 |
39 | @Html.DisplayNameFor(model => model.Name) 40 |
41 |
42 | @Html.DisplayFor(model => model.Name) 43 |
44 |
45 | @Html.DisplayNameFor(model => model.Description) 46 |
47 |
48 | @Html.DisplayFor(model => model.Description) 49 |
50 |
51 | 52 |
53 | 54 | | 55 | Back to List 56 |
57 |
58 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerActivities/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerActivity 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

CustomerActivity

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.From) 15 |
16 |
17 | @Html.DisplayFor(model => model.From) 18 |
19 |
20 | @Html.DisplayNameFor(model => model.To) 21 |
22 |
23 | @Html.DisplayFor(model => model.To) 24 |
25 |
26 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 27 |
28 |
29 | @Html.DisplayFor(model => model.CreatedDateUtc) 30 |
31 |
32 | @Html.DisplayNameFor(model => model.IsActive) 33 |
34 |
35 | @Html.DisplayFor(model => model.IsActive) 36 |
37 |
38 | @Html.DisplayNameFor(model => model.Name) 39 |
40 |
41 | @Html.DisplayFor(model => model.Name) 42 |
43 |
44 | @Html.DisplayNameFor(model => model.Description) 45 |
46 |
47 | @Html.DisplayFor(model => model.Description) 48 |
49 |
50 |
51 |
52 | Edit | 53 | Back to List 54 |
55 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerActivities/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerActivity 2 | 3 | @{ 4 | ViewData["Title"] = "Edit"; 5 | } 6 | 7 |

Edit

8 | 9 |

CustomerActivity

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 |
21 | 22 | 23 | 24 |
25 | 26 |
27 | 28 | 29 | 30 |
31 |
32 |
33 | 36 |
37 |
38 |
39 | 40 | 41 | 42 |
43 |
44 | 45 | 46 | 47 |
48 |
49 | 50 |
51 |
52 |
53 |
54 | 55 |
56 | Back to List 57 |
58 | 59 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerActivities/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model IEnumerable 2 | 3 | @{ 4 | ViewData["Title"] = "Index"; 5 | } 6 | 7 |

Index

8 | 9 |

10 | Create New 11 |

12 | 13 | 14 | 15 | 18 | 21 | 24 | 27 | 30 | 33 | 34 | 35 | 36 | 37 | @foreach (var item in Model) { 38 | 39 | 42 | 45 | 48 | 51 | 54 | 57 | 62 | 63 | } 64 | 65 |
16 | @Html.DisplayNameFor(model => model.From) 17 | 19 | @Html.DisplayNameFor(model => model.To) 20 | 22 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 23 | 25 | @Html.DisplayNameFor(model => model.IsActive) 26 | 28 | @Html.DisplayNameFor(model => model.Name) 29 | 31 | @Html.DisplayNameFor(model => model.Description) 32 |
40 | @Html.DisplayFor(modelItem => item.From) 41 | 43 | @Html.DisplayFor(modelItem => item.To) 44 | 46 | @Html.DisplayFor(modelItem => item.CreatedDateUtc) 47 | 49 | @Html.DisplayFor(modelItem => item.IsActive) 50 | 52 | @Html.DisplayFor(modelItem => item.Name) 53 | 55 | @Html.DisplayFor(modelItem => item.Description) 56 | 58 | Edit | 59 | Details | 60 | Delete 61 |
66 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerAdditionalContacts/Create.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerAdditionalContact 2 | 3 | @{ 4 | ViewData["Title"] = "Create"; 5 | } 6 | 7 |

Create

8 | 9 |

CustomerAdditionalContact

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 |
21 |
22 | 25 |
26 |
27 |
28 | 29 | 30 | 31 |
32 |
33 | 34 | 35 | 36 |
37 |
38 | 39 |
40 |
41 |
42 |
43 | 44 |
45 | Back to List 46 |
47 | 48 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerAdditionalContacts/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerAdditionalContact 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

CustomerAdditionalContact

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 16 |
17 |
18 | @Html.DisplayFor(model => model.CreatedDateUtc) 19 |
20 |
21 | @Html.DisplayNameFor(model => model.IsActive) 22 |
23 |
24 | @Html.DisplayFor(model => model.IsActive) 25 |
26 |
27 | @Html.DisplayNameFor(model => model.Name) 28 |
29 |
30 | @Html.DisplayFor(model => model.Name) 31 |
32 |
33 | @Html.DisplayNameFor(model => model.Description) 34 |
35 |
36 | @Html.DisplayFor(model => model.Description) 37 |
38 |
39 | 40 |
41 | 42 | | 43 | Back to List 44 |
45 |
46 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerAdditionalContacts/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerAdditionalContact 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

CustomerAdditionalContact

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 15 |
16 |
17 | @Html.DisplayFor(model => model.CreatedDateUtc) 18 |
19 |
20 | @Html.DisplayNameFor(model => model.IsActive) 21 |
22 |
23 | @Html.DisplayFor(model => model.IsActive) 24 |
25 |
26 | @Html.DisplayNameFor(model => model.Name) 27 |
28 |
29 | @Html.DisplayFor(model => model.Name) 30 |
31 |
32 | @Html.DisplayNameFor(model => model.Description) 33 |
34 |
35 | @Html.DisplayFor(model => model.Description) 36 |
37 |
38 |
39 |
40 | Edit | 41 | Back to List 42 |
43 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerAdditionalContacts/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerAdditionalContact 2 | 3 | @{ 4 | ViewData["Title"] = "Edit"; 5 | } 6 | 7 |

Edit

8 | 9 |

CustomerAdditionalContact

10 |
11 |
12 |
13 |
14 |
15 | 16 |
17 | 18 | 19 | 20 |
21 |
22 |
23 | 26 |
27 |
28 |
29 | 30 | 31 | 32 |
33 |
34 | 35 | 36 | 37 |
38 |
39 | 40 |
41 |
42 |
43 |
44 | 45 |
46 | Back to List 47 |
48 | 49 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerAdditionalContacts/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model IEnumerable 2 | 3 | @{ 4 | ViewData["Title"] = "Index"; 5 | } 6 | 7 |

Index

8 | 9 |

10 | Create New 11 |

12 | 13 | 14 | 15 | 18 | 21 | 24 | 27 | 28 | 29 | 30 | 31 | @foreach (var item in Model) { 32 | 33 | 36 | 39 | 42 | 45 | 50 | 51 | } 52 | 53 |
16 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 17 | 19 | @Html.DisplayNameFor(model => model.IsActive) 20 | 22 | @Html.DisplayNameFor(model => model.Name) 23 | 25 | @Html.DisplayNameFor(model => model.Description) 26 |
34 | @Html.DisplayFor(modelItem => item.CreatedDateUtc) 35 | 37 | @Html.DisplayFor(modelItem => item.IsActive) 38 | 40 | @Html.DisplayFor(modelItem => item.Name) 41 | 43 | @Html.DisplayFor(modelItem => item.Description) 44 | 46 | Edit | 47 | Details | 48 | Delete 49 |
54 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerNotes/Create.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerNote 2 | 3 | @{ 4 | ViewData["Title"] = "Create"; 5 | } 6 | 7 |

Create

8 | 9 |

CustomerNote

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 |
21 |
22 | 25 |
26 |
27 |
28 | 29 | 30 | 31 |
32 |
33 | 34 | 35 | 36 |
37 |
38 | 39 |
40 |
41 |
42 |
43 | 44 |
45 | Back to List 46 |
47 | 48 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerNotes/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerNote 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

CustomerNote

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 16 |
17 |
18 | @Html.DisplayFor(model => model.CreatedDateUtc) 19 |
20 |
21 | @Html.DisplayNameFor(model => model.IsActive) 22 |
23 |
24 | @Html.DisplayFor(model => model.IsActive) 25 |
26 |
27 | @Html.DisplayNameFor(model => model.Name) 28 |
29 |
30 | @Html.DisplayFor(model => model.Name) 31 |
32 |
33 | @Html.DisplayNameFor(model => model.Description) 34 |
35 |
36 | @Html.DisplayFor(model => model.Description) 37 |
38 |
39 | 40 |
41 | 42 | | 43 | Back to List 44 |
45 |
46 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerNotes/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerNote 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

CustomerNote

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 15 |
16 |
17 | @Html.DisplayFor(model => model.CreatedDateUtc) 18 |
19 |
20 | @Html.DisplayNameFor(model => model.IsActive) 21 |
22 |
23 | @Html.DisplayFor(model => model.IsActive) 24 |
25 |
26 | @Html.DisplayNameFor(model => model.Name) 27 |
28 |
29 | @Html.DisplayFor(model => model.Name) 30 |
31 |
32 | @Html.DisplayNameFor(model => model.Description) 33 |
34 |
35 | @Html.DisplayFor(model => model.Description) 36 |
37 |
38 |
39 |
40 | Edit | 41 | Back to List 42 |
43 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerNotes/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerNote 2 | 3 | @{ 4 | ViewData["Title"] = "Edit"; 5 | } 6 | 7 |

Edit

8 | 9 |

CustomerNote

10 |
11 |
12 |
13 |
14 |
15 | 16 |
17 | 18 | 19 | 20 |
21 |
22 |
23 | 26 |
27 |
28 |
29 | 30 | 31 | 32 |
33 |
34 | 35 | 36 | 37 |
38 |
39 | 40 |
41 |
42 |
43 |
44 | 45 |
46 | Back to List 47 |
48 | 49 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerNotes/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model IEnumerable 2 | 3 | @{ 4 | ViewData["Title"] = "Index"; 5 | } 6 | 7 |

Index

8 | 9 |

10 | Create New 11 |

12 | 13 | 14 | 15 | 18 | 21 | 24 | 27 | 28 | 29 | 30 | 31 | @foreach (var item in Model) { 32 | 33 | 36 | 39 | 42 | 45 | 50 | 51 | } 52 | 53 |
16 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 17 | 19 | @Html.DisplayNameFor(model => model.IsActive) 20 | 22 | @Html.DisplayNameFor(model => model.Name) 23 | 25 | @Html.DisplayNameFor(model => model.Description) 26 |
34 | @Html.DisplayFor(modelItem => item.CreatedDateUtc) 35 | 37 | @Html.DisplayFor(modelItem => item.IsActive) 38 | 40 | @Html.DisplayFor(modelItem => item.Name) 41 | 43 | @Html.DisplayFor(modelItem => item.Description) 44 | 46 | Edit | 47 | Details | 48 | Delete 49 |
54 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerTypes/Create.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerType 2 | 3 | @{ 4 | ViewData["Title"] = "Create"; 5 | } 6 | 7 |

Create

8 | 9 |

CustomerType

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 |
21 |
22 | 25 |
26 |
27 |
28 | 29 | 30 | 31 |
32 |
33 | 34 | 35 | 36 |
37 |
38 | 39 |
40 |
41 |
42 |
43 | 44 |
45 | Back to List 46 |
47 | 48 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerTypes/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerType 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

CustomerType

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 16 |
17 |
18 | @Html.DisplayFor(model => model.CreatedDateUtc) 19 |
20 |
21 | @Html.DisplayNameFor(model => model.IsActive) 22 |
23 |
24 | @Html.DisplayFor(model => model.IsActive) 25 |
26 |
27 | @Html.DisplayNameFor(model => model.Name) 28 |
29 |
30 | @Html.DisplayFor(model => model.Name) 31 |
32 |
33 | @Html.DisplayNameFor(model => model.Description) 34 |
35 |
36 | @Html.DisplayFor(model => model.Description) 37 |
38 |
39 | 40 |
41 | 42 | | 43 | Back to List 44 |
45 |
46 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerTypes/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerType 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

CustomerType

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 15 |
16 |
17 | @Html.DisplayFor(model => model.CreatedDateUtc) 18 |
19 |
20 | @Html.DisplayNameFor(model => model.IsActive) 21 |
22 |
23 | @Html.DisplayFor(model => model.IsActive) 24 |
25 |
26 | @Html.DisplayNameFor(model => model.Name) 27 |
28 |
29 | @Html.DisplayFor(model => model.Name) 30 |
31 |
32 | @Html.DisplayNameFor(model => model.Description) 33 |
34 |
35 | @Html.DisplayFor(model => model.Description) 36 |
37 |
38 |
39 |
40 | Edit | 41 | Back to List 42 |
43 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerTypes/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.CustomerType 2 | 3 | @{ 4 | ViewData["Title"] = "Edit"; 5 | } 6 | 7 |

Edit

8 | 9 |

CustomerType

10 |
11 |
12 |
13 |
14 |
15 | 16 |
17 | 18 | 19 | 20 |
21 |
22 |
23 | 26 |
27 |
28 |
29 | 30 | 31 | 32 |
33 |
34 | 35 | 36 | 37 |
38 |
39 | 40 |
41 |
42 |
43 |
44 | 45 |
46 | Back to List 47 |
48 | 49 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/CustomerTypes/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model IEnumerable 2 | 3 | @{ 4 | ViewData["Title"] = "Index"; 5 | } 6 | 7 |

Index

8 | 9 |

10 | Create New 11 |

12 | 13 | 14 | 15 | 18 | 21 | 24 | 27 | 28 | 29 | 30 | 31 | @foreach (var item in Model) { 32 | 33 | 36 | 39 | 42 | 45 | 50 | 51 | } 52 | 53 |
16 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 17 | 19 | @Html.DisplayNameFor(model => model.IsActive) 20 | 22 | @Html.DisplayNameFor(model => model.Name) 23 | 25 | @Html.DisplayNameFor(model => model.Description) 26 |
34 | @Html.DisplayFor(modelItem => item.CreatedDateUtc) 35 | 37 | @Html.DisplayFor(modelItem => item.IsActive) 38 | 40 | @Html.DisplayFor(modelItem => item.Name) 41 | 43 | @Html.DisplayFor(modelItem => item.Description) 44 | 46 | Edit | 47 | Details | 48 | Delete 49 |
54 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Dashboards/Index.cshtml: -------------------------------------------------------------------------------- 1 | 
2 | 3 |
4 |

5 | Blank page 6 | it all starts here 7 |

8 | 13 |
14 | 15 | 16 |
17 | 18 | 19 |
20 |
21 |

Title

22 | 23 |
24 | 28 | 31 |
32 |
33 |
34 | Start creating your amazing application! 35 |
36 | 37 | 40 | 41 |
42 | 43 | 44 |
45 | 46 |
-------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadActivities/Create.cshtml: -------------------------------------------------------------------------------- 1 | @using motekarteknologi.Areas.crm.ViewModels.Common 2 | @model motekarteknologi.Areas.crm.Models.LeadActivity 3 | 4 | @{ 5 | ViewData["Title"] = "Create"; 6 | } 7 | 8 |
9 | 10 |
11 |

12 | Create Activity 13 |

14 |
15 | 16 | 17 |
18 |
19 | @Html.Partial("_CreateEdit") 20 | @Html.Partial("_ChildActionButtons", new ChildActionButton() 21 | { 22 | MasterControllerName = "Leads", 23 | MasterActionName = "Edit", 24 | MasterID = ViewBag.MasterID 25 | }) 26 |
27 |
28 | 29 |
30 | 31 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadActivities/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @using motekarteknologi.Areas.crm.ViewModels.Common 2 | @model motekarteknologi.Areas.crm.Models.LeadActivity 3 | 4 | @{ 5 | ViewData["Title"] = "Delete"; 6 | } 7 | 8 | 9 |
10 | 11 |
12 |

Delete Activity

13 | 14 |

Are you sure you want to delete this?

15 |
16 | 17 | 18 |
19 |
20 | @Html.Partial("_CreateEdit") 21 | @Html.Partial("_ChildActionButtons", new ChildActionButton() 22 | { 23 | MasterControllerName = "Leads", 24 | MasterActionName = "Edit" 25 | }) 26 |
27 | 28 |
29 | 30 |
31 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadActivities/Details.cshtml: -------------------------------------------------------------------------------- 1 | @using motekarteknologi.Areas.crm.ViewModels.Common 2 | @model motekarteknologi.Areas.crm.Models.LeadActivity 3 | 4 | @{ 5 | ViewData["Title"] = "Details"; 6 | } 7 | 8 |
9 | 10 |
11 |

12 | Detail Activity 13 |

14 |
15 | 16 | 17 |
18 | @Html.Partial("_CreateEdit") 19 | @Html.Partial("_ChildActionButtons", new ChildActionButton() 20 | { 21 | MasterControllerName = "Leads", 22 | MasterActionName = "Edit" 23 | }) 24 |
25 | 26 |
27 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadActivities/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @using motekarteknologi.Areas.crm.ViewModels.Common 2 | @model motekarteknologi.Areas.crm.Models.LeadActivity 3 | 4 | @{ 5 | ViewData["Title"] = "Edit"; 6 | } 7 | 8 |
9 | 10 |
11 |

12 | Edit Activity 13 |

14 |
15 | 16 | 17 |
18 |
19 | 20 | @Html.Partial("_CreateEdit") 21 | @Html.Partial("_ChildActionButtons", new ChildActionButton() 22 | { 23 | MasterControllerName = "Leads", 24 | MasterActionName = "Edit" 25 | }) 26 |
27 | 28 |
29 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadActivities/Index.cshtml: -------------------------------------------------------------------------------- 1 | @using motekarteknologi.Areas.crm.ViewModels.Common 2 | @using motekarteknologi.Statics 3 | @model IEnumerable 4 | 5 | @{ 6 | ViewData["Title"] = "Index"; 7 | } 8 | 9 |

10 | @if (ViewBag.MasterID != null) 11 | { 12 | @Html.Partial("_ChildCreateNew", 13 | new ChildCreateNew() 14 | { 15 | ControllerName = "LeadActivities", 16 | MasterID = ViewBag.MasterID 17 | }) 18 | } 19 | 20 |

21 | 22 | 23 | 24 | 27 | 30 | 33 | 36 | 37 | 38 | 39 | 40 | @if (Model != null) 41 | { 42 | @foreach (var item in Model) 43 | { 44 | 45 | 48 | 51 | 54 | 57 | 65 | 66 | } 67 | } 68 | 69 | 70 |
25 | @Html.DisplayNameFor(model => model.From) 26 | 28 | @Html.DisplayNameFor(model => model.To) 29 | 31 | @Html.DisplayNameFor(model => model.Name) 32 | 34 | @Html.DisplayNameFor(model => model.Description) 35 |
46 | @Html.DisplayFor(modelItem => item.From) 47 | 49 | @Html.DisplayFor(modelItem => item.To) 50 | 52 | @Html.DisplayFor(modelItem => item.Name) 53 | 55 | @Html.DisplayFor(modelItem => item.Description) 56 | 58 | @Html.Partial("_ChildGridActions", new ChildGridAction() 59 | { 60 | ID = item.ID, 61 | MasterID = item.Lead.ID, 62 | DestinationControllerName = "LeadActivities" 63 | }) 64 |
71 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadAdditionalContacts/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LeadAdditionalContact 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

LeadAdditionalContact

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.ContactName) 16 |
17 |
18 | @Html.DisplayFor(model => model.ContactName) 19 |
20 |
21 | @Html.DisplayNameFor(model => model.JobPosition) 22 |
23 |
24 | @Html.DisplayFor(model => model.JobPosition) 25 |
26 |
27 | @Html.DisplayNameFor(model => model.Email) 28 |
29 |
30 | @Html.DisplayFor(model => model.Email) 31 |
32 |
33 | @Html.DisplayNameFor(model => model.Phone) 34 |
35 |
36 | @Html.DisplayFor(model => model.Phone) 37 |
38 |
39 | @Html.DisplayNameFor(model => model.Mobile) 40 |
41 |
42 | @Html.DisplayFor(model => model.Mobile) 43 |
44 |
45 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 46 |
47 |
48 | @Html.DisplayFor(model => model.CreatedDateUtc) 49 |
50 |
51 | @Html.DisplayNameFor(model => model.IsActive) 52 |
53 |
54 | @Html.DisplayFor(model => model.IsActive) 55 |
56 |
57 | @Html.DisplayNameFor(model => model.Name) 58 |
59 |
60 | @Html.DisplayFor(model => model.Name) 61 |
62 |
63 | @Html.DisplayNameFor(model => model.Description) 64 |
65 |
66 | @Html.DisplayFor(model => model.Description) 67 |
68 |
69 | 70 |
71 | 72 | | 73 | Back to List 74 |
75 |
76 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadAdditionalContacts/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LeadAdditionalContact 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

LeadAdditionalContact

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.ContactName) 15 |
16 |
17 | @Html.DisplayFor(model => model.ContactName) 18 |
19 |
20 | @Html.DisplayNameFor(model => model.JobPosition) 21 |
22 |
23 | @Html.DisplayFor(model => model.JobPosition) 24 |
25 |
26 | @Html.DisplayNameFor(model => model.Email) 27 |
28 |
29 | @Html.DisplayFor(model => model.Email) 30 |
31 |
32 | @Html.DisplayNameFor(model => model.Phone) 33 |
34 |
35 | @Html.DisplayFor(model => model.Phone) 36 |
37 |
38 | @Html.DisplayNameFor(model => model.Mobile) 39 |
40 |
41 | @Html.DisplayFor(model => model.Mobile) 42 |
43 |
44 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 45 |
46 |
47 | @Html.DisplayFor(model => model.CreatedDateUtc) 48 |
49 |
50 | @Html.DisplayNameFor(model => model.IsActive) 51 |
52 |
53 | @Html.DisplayFor(model => model.IsActive) 54 |
55 |
56 | @Html.DisplayNameFor(model => model.Name) 57 |
58 |
59 | @Html.DisplayFor(model => model.Name) 60 |
61 |
62 | @Html.DisplayNameFor(model => model.Description) 63 |
64 |
65 | @Html.DisplayFor(model => model.Description) 66 |
67 |
68 |
69 |
70 | Edit | 71 | Back to List 72 |
73 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadNotes/Create.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LeadNote 2 | 3 | @{ 4 | ViewData["Title"] = "Create"; 5 | } 6 | 7 |

Create

8 | 9 |

LeadNote

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 |
21 |
22 | 25 |
26 |
27 |
28 | 29 | 30 | 31 |
32 |
33 | 34 | 35 | 36 |
37 |
38 | 39 |
40 |
41 |
42 |
43 | 44 |
45 | Back to List 46 |
47 | 48 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadNotes/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LeadNote 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

LeadNote

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 16 |
17 |
18 | @Html.DisplayFor(model => model.CreatedDateUtc) 19 |
20 |
21 | @Html.DisplayNameFor(model => model.IsActive) 22 |
23 |
24 | @Html.DisplayFor(model => model.IsActive) 25 |
26 |
27 | @Html.DisplayNameFor(model => model.Name) 28 |
29 |
30 | @Html.DisplayFor(model => model.Name) 31 |
32 |
33 | @Html.DisplayNameFor(model => model.Description) 34 |
35 |
36 | @Html.DisplayFor(model => model.Description) 37 |
38 |
39 | 40 |
41 | 42 | | 43 | Back to List 44 |
45 |
46 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadNotes/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LeadNote 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

LeadNote

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 15 |
16 |
17 | @Html.DisplayFor(model => model.CreatedDateUtc) 18 |
19 |
20 | @Html.DisplayNameFor(model => model.IsActive) 21 |
22 |
23 | @Html.DisplayFor(model => model.IsActive) 24 |
25 |
26 | @Html.DisplayNameFor(model => model.Name) 27 |
28 |
29 | @Html.DisplayFor(model => model.Name) 30 |
31 |
32 | @Html.DisplayNameFor(model => model.Description) 33 |
34 |
35 | @Html.DisplayFor(model => model.Description) 36 |
37 |
38 |
39 |
40 | Edit | 41 | Back to List 42 |
43 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadNotes/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LeadNote 2 | 3 | @{ 4 | ViewData["Title"] = "Edit"; 5 | } 6 | 7 |

Edit

8 | 9 |

LeadNote

10 |
11 |
12 |
13 |
14 |
15 | 16 |
17 | 18 | 19 | 20 |
21 |
22 |
23 | 26 |
27 |
28 |
29 | 30 | 31 | 32 |
33 |
34 | 35 | 36 | 37 |
38 |
39 | 40 |
41 |
42 |
43 |
44 | 45 |
46 | Back to List 47 |
48 | 49 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadNotes/Index.cshtml: -------------------------------------------------------------------------------- 1 | @using motekarteknologi.Areas.crm.ViewModels.Common 2 | @using motekarteknologi.Statics 3 | @model IEnumerable 4 | 5 | @{ 6 | ViewData["Title"] = "Index"; 7 | } 8 | 9 |

10 | @if (TempData[TempDataKey.MasterID] != null) 11 | { 12 | @Html.Partial("_ChildCreateNew", 13 | new ChildCreateNew() 14 | { 15 | ControllerName = "LeadNotes", 16 | MasterID = (Guid)TempData[TempDataKey.MasterID] 17 | }) 18 | } 19 | 20 |

21 | 22 | 23 | 24 | 27 | 30 | 31 | 32 | 33 | 34 | @if (Model != null) 35 | { 36 | @foreach (var item in Model) 37 | { 38 | 39 | 42 | 45 | 53 | 54 | } 55 | } 56 | 57 | 58 |
25 | @Html.DisplayNameFor(model => model.Name) 26 | 28 | @Html.DisplayNameFor(model => model.Description) 29 |
40 | @Html.DisplayFor(modelItem => item.Name) 41 | 43 | @Html.DisplayFor(modelItem => item.Description) 44 | 46 | @Html.Partial("_ChildGridActions", new ChildGridAction() 47 | { 48 | ID = item.ID, 49 | MasterID = item.Lead.ID, 50 | DestinationControllerName = "LeadNotes" 51 | }) 52 |
59 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadTypes/Create.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LeadType 2 | 3 | @{ 4 | ViewData["Title"] = "Create"; 5 | } 6 | 7 |

Create

8 | 9 |

LeadType

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 |
21 |
22 | 25 |
26 |
27 |
28 | 29 | 30 | 31 |
32 |
33 | 34 | 35 | 36 |
37 |
38 | 39 |
40 |
41 |
42 |
43 | 44 |
45 | Back to List 46 |
47 | 48 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadTypes/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LeadType 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

LeadType

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 16 |
17 |
18 | @Html.DisplayFor(model => model.CreatedDateUtc) 19 |
20 |
21 | @Html.DisplayNameFor(model => model.IsActive) 22 |
23 |
24 | @Html.DisplayFor(model => model.IsActive) 25 |
26 |
27 | @Html.DisplayNameFor(model => model.Name) 28 |
29 |
30 | @Html.DisplayFor(model => model.Name) 31 |
32 |
33 | @Html.DisplayNameFor(model => model.Description) 34 |
35 |
36 | @Html.DisplayFor(model => model.Description) 37 |
38 |
39 | 40 |
41 | 42 | | 43 | Back to List 44 |
45 |
46 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadTypes/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LeadType 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

LeadType

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 15 |
16 |
17 | @Html.DisplayFor(model => model.CreatedDateUtc) 18 |
19 |
20 | @Html.DisplayNameFor(model => model.IsActive) 21 |
22 |
23 | @Html.DisplayFor(model => model.IsActive) 24 |
25 |
26 | @Html.DisplayNameFor(model => model.Name) 27 |
28 |
29 | @Html.DisplayFor(model => model.Name) 30 |
31 |
32 | @Html.DisplayNameFor(model => model.Description) 33 |
34 |
35 | @Html.DisplayFor(model => model.Description) 36 |
37 |
38 |
39 |
40 | Edit | 41 | Back to List 42 |
43 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadTypes/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LeadType 2 | 3 | @{ 4 | ViewData["Title"] = "Edit"; 5 | } 6 | 7 |

Edit

8 | 9 |

LeadType

10 |
11 |
12 |
13 |
14 |
15 | 16 |
17 | 18 | 19 | 20 |
21 |
22 |
23 | 26 |
27 |
28 |
29 | 30 | 31 | 32 |
33 |
34 | 35 | 36 | 37 |
38 |
39 | 40 |
41 |
42 |
43 |
44 | 45 |
46 | Back to List 47 |
48 | 49 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LeadTypes/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model IEnumerable 2 | 3 | @{ 4 | ViewData["Title"] = "Index"; 5 | } 6 | 7 |

Index

8 | 9 |

10 | Create New 11 |

12 | 13 | 14 | 15 | 18 | 21 | 24 | 27 | 28 | 29 | 30 | 31 | @foreach (var item in Model) { 32 | 33 | 36 | 39 | 42 | 45 | 50 | 51 | } 52 | 53 |
16 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 17 | 19 | @Html.DisplayNameFor(model => model.IsActive) 20 | 22 | @Html.DisplayNameFor(model => model.Name) 23 | 25 | @Html.DisplayNameFor(model => model.Description) 26 |
34 | @Html.DisplayFor(modelItem => item.CreatedDateUtc) 35 | 37 | @Html.DisplayFor(modelItem => item.IsActive) 38 | 40 | @Html.DisplayFor(modelItem => item.Name) 41 | 43 | @Html.DisplayFor(modelItem => item.Description) 44 | 46 | Edit | 47 | Details | 48 | Delete 49 |
54 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Leads/Create.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.Lead 2 | 3 | @{ 4 | ViewData["Title"] = "Create"; 5 | } 6 | 7 |
8 | 9 |
10 |
11 |

12 | Create Lead 13 |

14 |
15 |
16 | 17 | 18 |
19 | 20 |
21 | @Html.Partial("_CreateEdit") 22 |
23 | 24 |
25 | 26 |
27 | 28 | 29 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Leads/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.Lead 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 | 8 | 9 |
10 | 11 |
12 |

Delete

13 | 14 |

Are you sure you want to delete this?

15 |
16 | 17 | 18 |
19 |
20 | @Html.Partial("_CreateEdit") 21 | 22 |
23 | 24 |
25 | 26 |
27 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Leads/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.Lead 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 | 8 |
9 | 10 |
11 |

12 | Detail 13 |

14 |
15 | 16 | 17 |
18 |
19 | @Html.Partial("_CreateEdit") 20 | 21 |
22 | 23 |
24 | 25 |
26 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Leads/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.Lead 2 | 3 | @{ 4 | ViewData["Title"] = "Create"; 5 | } 6 | 7 |
8 | 9 |
10 |

11 | Edit Lead 12 |

13 |
14 | 15 | 16 |
17 |
18 | 19 | @Html.Partial("_CreateEdit") 20 | 21 |
22 | 23 |
24 | 25 |
26 | 27 | 28 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Leads/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model IEnumerable 2 | 3 | @{ 4 | ViewData["Title"] = "Index"; 5 | } 6 | 7 |
8 | 9 |
10 |

11 | Leads 12 | Create New 13 |

14 |
15 | 16 | 17 |
18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 26 | 29 | 32 | 33 | 34 | 35 | 36 | @foreach (var item in Model) 37 | { 38 | 39 | 40 | 43 | 46 | 51 | 52 | } 53 | 54 |
27 | @Html.DisplayNameFor(model => model.Name) 28 | 30 | @Html.DisplayNameFor(model => model.Description) 31 |
41 | @Html.DisplayFor(modelItem => item.Name) 42 | 44 | @Html.DisplayFor(modelItem => item.Description) 45 | 47 | Edit | 48 | Details | 49 | Delete 50 |
55 | 56 |
57 |
58 | 59 | 60 |
61 | 62 |
63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LostReasons/Create.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LostReason 2 | 3 | @{ 4 | ViewData["Title"] = "Create"; 5 | } 6 | 7 |

Create

8 | 9 |

LostReason

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 |
21 |
22 | 25 |
26 |
27 |
28 | 29 | 30 | 31 |
32 |
33 | 34 | 35 | 36 |
37 |
38 | 39 |
40 |
41 |
42 |
43 | 44 |
45 | Back to List 46 |
47 | 48 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LostReasons/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LostReason 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

LostReason

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 16 |
17 |
18 | @Html.DisplayFor(model => model.CreatedDateUtc) 19 |
20 |
21 | @Html.DisplayNameFor(model => model.IsActive) 22 |
23 |
24 | @Html.DisplayFor(model => model.IsActive) 25 |
26 |
27 | @Html.DisplayNameFor(model => model.Name) 28 |
29 |
30 | @Html.DisplayFor(model => model.Name) 31 |
32 |
33 | @Html.DisplayNameFor(model => model.Description) 34 |
35 |
36 | @Html.DisplayFor(model => model.Description) 37 |
38 |
39 | 40 |
41 | 42 | | 43 | Back to List 44 |
45 |
46 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LostReasons/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LostReason 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

LostReason

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 15 |
16 |
17 | @Html.DisplayFor(model => model.CreatedDateUtc) 18 |
19 |
20 | @Html.DisplayNameFor(model => model.IsActive) 21 |
22 |
23 | @Html.DisplayFor(model => model.IsActive) 24 |
25 |
26 | @Html.DisplayNameFor(model => model.Name) 27 |
28 |
29 | @Html.DisplayFor(model => model.Name) 30 |
31 |
32 | @Html.DisplayNameFor(model => model.Description) 33 |
34 |
35 | @Html.DisplayFor(model => model.Description) 36 |
37 |
38 |
39 |
40 | Edit | 41 | Back to List 42 |
43 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LostReasons/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.LostReason 2 | 3 | @{ 4 | ViewData["Title"] = "Edit"; 5 | } 6 | 7 |

Edit

8 | 9 |

LostReason

10 |
11 |
12 |
13 |
14 |
15 | 16 |
17 | 18 | 19 | 20 |
21 |
22 |
23 | 26 |
27 |
28 |
29 | 30 | 31 | 32 |
33 |
34 | 35 | 36 | 37 |
38 |
39 | 40 |
41 |
42 |
43 |
44 | 45 |
46 | Back to List 47 |
48 | 49 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/LostReasons/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model IEnumerable 2 | 3 | @{ 4 | ViewData["Title"] = "Index"; 5 | } 6 | 7 |

Index

8 | 9 |

10 | Create New 11 |

12 | 13 | 14 | 15 | 18 | 21 | 24 | 27 | 28 | 29 | 30 | 31 | @foreach (var item in Model) { 32 | 33 | 36 | 39 | 42 | 45 | 50 | 51 | } 52 | 53 |
16 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 17 | 19 | @Html.DisplayNameFor(model => model.IsActive) 20 | 22 | @Html.DisplayNameFor(model => model.Name) 23 | 25 | @Html.DisplayNameFor(model => model.Description) 26 |
34 | @Html.DisplayFor(modelItem => item.CreatedDateUtc) 35 | 37 | @Html.DisplayFor(modelItem => item.IsActive) 38 | 40 | @Html.DisplayFor(modelItem => item.Name) 41 | 43 | @Html.DisplayFor(modelItem => item.Description) 44 | 46 | Edit | 47 | Details | 48 | Delete 49 |
54 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Opportunities/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.Opportunity 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

Opportunity

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.ExpectedRevenue) 16 |
17 |
18 | @Html.DisplayFor(model => model.ExpectedRevenue) 19 |
20 |
21 | @Html.DisplayNameFor(model => model.Priority) 22 |
23 |
24 | @Html.DisplayFor(model => model.Priority) 25 |
26 |
27 | @Html.DisplayNameFor(model => model.IsWon) 28 |
29 |
30 | @Html.DisplayFor(model => model.IsWon) 31 |
32 |
33 | @Html.DisplayNameFor(model => model.IsLost) 34 |
35 |
36 | @Html.DisplayFor(model => model.IsLost) 37 |
38 |
39 | @Html.DisplayNameFor(model => model.ExpectedClosing) 40 |
41 |
42 | @Html.DisplayFor(model => model.ExpectedClosing) 43 |
44 |
45 | @Html.DisplayNameFor(model => model.ActualClosing) 46 |
47 |
48 | @Html.DisplayFor(model => model.ActualClosing) 49 |
50 |
51 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 52 |
53 |
54 | @Html.DisplayFor(model => model.CreatedDateUtc) 55 |
56 |
57 | @Html.DisplayNameFor(model => model.IsActive) 58 |
59 |
60 | @Html.DisplayFor(model => model.IsActive) 61 |
62 |
63 | @Html.DisplayNameFor(model => model.Name) 64 |
65 |
66 | @Html.DisplayFor(model => model.Name) 67 |
68 |
69 | @Html.DisplayNameFor(model => model.Description) 70 |
71 |
72 | @Html.DisplayFor(model => model.Description) 73 |
74 |
75 | 76 |
77 | 78 | | 79 | Back to List 80 |
81 |
82 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Opportunities/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.Opportunity 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

Opportunity

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.ExpectedRevenue) 15 |
16 |
17 | @Html.DisplayFor(model => model.ExpectedRevenue) 18 |
19 |
20 | @Html.DisplayNameFor(model => model.Priority) 21 |
22 |
23 | @Html.DisplayFor(model => model.Priority) 24 |
25 |
26 | @Html.DisplayNameFor(model => model.IsWon) 27 |
28 |
29 | @Html.DisplayFor(model => model.IsWon) 30 |
31 |
32 | @Html.DisplayNameFor(model => model.IsLost) 33 |
34 |
35 | @Html.DisplayFor(model => model.IsLost) 36 |
37 |
38 | @Html.DisplayNameFor(model => model.ExpectedClosing) 39 |
40 |
41 | @Html.DisplayFor(model => model.ExpectedClosing) 42 |
43 |
44 | @Html.DisplayNameFor(model => model.ActualClosing) 45 |
46 |
47 | @Html.DisplayFor(model => model.ActualClosing) 48 |
49 |
50 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 51 |
52 |
53 | @Html.DisplayFor(model => model.CreatedDateUtc) 54 |
55 |
56 | @Html.DisplayNameFor(model => model.IsActive) 57 |
58 |
59 | @Html.DisplayFor(model => model.IsActive) 60 |
61 |
62 | @Html.DisplayNameFor(model => model.Name) 63 |
64 |
65 | @Html.DisplayFor(model => model.Name) 66 |
67 |
68 | @Html.DisplayNameFor(model => model.Description) 69 |
70 |
71 | @Html.DisplayFor(model => model.Description) 72 |
73 |
74 |
75 |
76 | Edit | 77 | Back to List 78 |
79 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/OpportunityActivities/Create.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.OpportunityActivity 2 | 3 | @{ 4 | ViewData["Title"] = "Create"; 5 | } 6 | 7 |

Create

8 | 9 |

OpportunityActivity

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 |
21 | 22 | 23 | 24 |
25 |
26 | 27 | 28 | 29 |
30 |
31 |
32 | 35 |
36 |
37 |
38 | 39 | 40 | 41 |
42 |
43 | 44 | 45 | 46 |
47 |
48 | 49 |
50 |
51 |
52 |
53 | 54 |
55 | Back to List 56 |
57 | 58 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/OpportunityActivities/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.OpportunityActivity 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

OpportunityActivity

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.From) 16 |
17 |
18 | @Html.DisplayFor(model => model.From) 19 |
20 |
21 | @Html.DisplayNameFor(model => model.To) 22 |
23 |
24 | @Html.DisplayFor(model => model.To) 25 |
26 |
27 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 28 |
29 |
30 | @Html.DisplayFor(model => model.CreatedDateUtc) 31 |
32 |
33 | @Html.DisplayNameFor(model => model.IsActive) 34 |
35 |
36 | @Html.DisplayFor(model => model.IsActive) 37 |
38 |
39 | @Html.DisplayNameFor(model => model.Name) 40 |
41 |
42 | @Html.DisplayFor(model => model.Name) 43 |
44 |
45 | @Html.DisplayNameFor(model => model.Description) 46 |
47 |
48 | @Html.DisplayFor(model => model.Description) 49 |
50 |
51 | 52 |
53 | 54 | | 55 | Back to List 56 |
57 |
58 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/OpportunityActivities/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.OpportunityActivity 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

OpportunityActivity

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.From) 15 |
16 |
17 | @Html.DisplayFor(model => model.From) 18 |
19 |
20 | @Html.DisplayNameFor(model => model.To) 21 |
22 |
23 | @Html.DisplayFor(model => model.To) 24 |
25 |
26 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 27 |
28 |
29 | @Html.DisplayFor(model => model.CreatedDateUtc) 30 |
31 |
32 | @Html.DisplayNameFor(model => model.IsActive) 33 |
34 |
35 | @Html.DisplayFor(model => model.IsActive) 36 |
37 |
38 | @Html.DisplayNameFor(model => model.Name) 39 |
40 |
41 | @Html.DisplayFor(model => model.Name) 42 |
43 |
44 | @Html.DisplayNameFor(model => model.Description) 45 |
46 |
47 | @Html.DisplayFor(model => model.Description) 48 |
49 |
50 |
51 |
52 | Edit | 53 | Back to List 54 |
55 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/OpportunityActivities/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.OpportunityActivity 2 | 3 | @{ 4 | ViewData["Title"] = "Edit"; 5 | } 6 | 7 |

Edit

8 | 9 |

OpportunityActivity

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 |
21 | 22 | 23 | 24 |
25 | 26 |
27 | 28 | 29 | 30 |
31 |
32 |
33 | 36 |
37 |
38 |
39 | 40 | 41 | 42 |
43 |
44 | 45 | 46 | 47 |
48 |
49 | 50 |
51 |
52 |
53 |
54 | 55 |
56 | Back to List 57 |
58 | 59 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/OpportunityActivities/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model IEnumerable 2 | 3 | @{ 4 | ViewData["Title"] = "Index"; 5 | } 6 | 7 |

Index

8 | 9 |

10 | Create New 11 |

12 | 13 | 14 | 15 | 18 | 21 | 24 | 27 | 30 | 33 | 34 | 35 | 36 | 37 | @foreach (var item in Model) { 38 | 39 | 42 | 45 | 48 | 51 | 54 | 57 | 62 | 63 | } 64 | 65 |
16 | @Html.DisplayNameFor(model => model.From) 17 | 19 | @Html.DisplayNameFor(model => model.To) 20 | 22 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 23 | 25 | @Html.DisplayNameFor(model => model.IsActive) 26 | 28 | @Html.DisplayNameFor(model => model.Name) 29 | 31 | @Html.DisplayNameFor(model => model.Description) 32 |
40 | @Html.DisplayFor(modelItem => item.From) 41 | 43 | @Html.DisplayFor(modelItem => item.To) 44 | 46 | @Html.DisplayFor(modelItem => item.CreatedDateUtc) 47 | 49 | @Html.DisplayFor(modelItem => item.IsActive) 50 | 52 | @Html.DisplayFor(modelItem => item.Name) 53 | 55 | @Html.DisplayFor(modelItem => item.Description) 56 | 58 | Edit | 59 | Details | 60 | Delete 61 |
66 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/PipelineStages/Create.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.PipelineStage 2 | 3 | @{ 4 | ViewData["Title"] = "Create"; 5 | } 6 | 7 |

Create

8 | 9 |

PipelineStage

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 |
21 |
22 | 25 |
26 |
27 |
28 | 29 | 30 | 31 |
32 |
33 | 34 | 35 | 36 |
37 |
38 | 39 |
40 |
41 |
42 |
43 | 44 |
45 | Back to List 46 |
47 | 48 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/PipelineStages/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.PipelineStage 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

PipelineStage

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 16 |
17 |
18 | @Html.DisplayFor(model => model.CreatedDateUtc) 19 |
20 |
21 | @Html.DisplayNameFor(model => model.IsActive) 22 |
23 |
24 | @Html.DisplayFor(model => model.IsActive) 25 |
26 |
27 | @Html.DisplayNameFor(model => model.Name) 28 |
29 |
30 | @Html.DisplayFor(model => model.Name) 31 |
32 |
33 | @Html.DisplayNameFor(model => model.Description) 34 |
35 |
36 | @Html.DisplayFor(model => model.Description) 37 |
38 |
39 | 40 |
41 | 42 | | 43 | Back to List 44 |
45 |
46 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/PipelineStages/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.PipelineStage 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

PipelineStage

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 15 |
16 |
17 | @Html.DisplayFor(model => model.CreatedDateUtc) 18 |
19 |
20 | @Html.DisplayNameFor(model => model.IsActive) 21 |
22 |
23 | @Html.DisplayFor(model => model.IsActive) 24 |
25 |
26 | @Html.DisplayNameFor(model => model.Name) 27 |
28 |
29 | @Html.DisplayFor(model => model.Name) 30 |
31 |
32 | @Html.DisplayNameFor(model => model.Description) 33 |
34 |
35 | @Html.DisplayFor(model => model.Description) 36 |
37 |
38 |
39 |
40 | Edit | 41 | Back to List 42 |
43 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/PipelineStages/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.PipelineStage 2 | 3 | @{ 4 | ViewData["Title"] = "Edit"; 5 | } 6 | 7 |

Edit

8 | 9 |

PipelineStage

10 |
11 |
12 |
13 |
14 |
15 | 16 |
17 | 18 | 19 | 20 |
21 |
22 |
23 | 26 |
27 |
28 |
29 | 30 | 31 | 32 |
33 |
34 | 35 | 36 | 37 |
38 |
39 | 40 |
41 |
42 |
43 |
44 | 45 |
46 | Back to List 47 |
48 | 49 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/PipelineStages/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model IEnumerable 2 | 3 | @{ 4 | ViewData["Title"] = "Index"; 5 | } 6 | 7 |

Index

8 | 9 |

10 | Create New 11 |

12 | 13 | 14 | 15 | 18 | 21 | 24 | 27 | 28 | 29 | 30 | 31 | @foreach (var item in Model) { 32 | 33 | 36 | 39 | 42 | 45 | 50 | 51 | } 52 | 53 |
16 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 17 | 19 | @Html.DisplayNameFor(model => model.IsActive) 20 | 22 | @Html.DisplayNameFor(model => model.Name) 23 | 25 | @Html.DisplayNameFor(model => model.Description) 26 |
34 | @Html.DisplayFor(modelItem => item.CreatedDateUtc) 35 | 37 | @Html.DisplayFor(modelItem => item.IsActive) 38 | 40 | @Html.DisplayFor(modelItem => item.Name) 41 | 43 | @Html.DisplayFor(modelItem => item.Description) 44 | 46 | Edit | 47 | Details | 48 | Delete 49 |
54 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/SalesChannels/Create.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.SalesChannel 2 | 3 | @{ 4 | ViewData["Title"] = "Create"; 5 | } 6 | 7 |

Create

8 | 9 |

SalesChannel

10 |
11 |
12 |
13 |
14 |
15 |
16 | 17 | 18 | 19 |
20 |
21 |
22 | 25 |
26 |
27 |
28 | 29 | 30 | 31 |
32 |
33 | 34 | 35 | 36 |
37 |
38 | 39 |
40 |
41 |
42 |
43 | 44 |
45 | Back to List 46 |
47 | 48 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/SalesChannels/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.SalesChannel 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

SalesChannel

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 16 |
17 |
18 | @Html.DisplayFor(model => model.CreatedDateUtc) 19 |
20 |
21 | @Html.DisplayNameFor(model => model.IsActive) 22 |
23 |
24 | @Html.DisplayFor(model => model.IsActive) 25 |
26 |
27 | @Html.DisplayNameFor(model => model.Name) 28 |
29 |
30 | @Html.DisplayFor(model => model.Name) 31 |
32 |
33 | @Html.DisplayNameFor(model => model.Description) 34 |
35 |
36 | @Html.DisplayFor(model => model.Description) 37 |
38 |
39 | 40 |
41 | 42 | | 43 | Back to List 44 |
45 |
46 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/SalesChannels/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.SalesChannel 2 | 3 | @{ 4 | ViewData["Title"] = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

SalesChannel

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 15 |
16 |
17 | @Html.DisplayFor(model => model.CreatedDateUtc) 18 |
19 |
20 | @Html.DisplayNameFor(model => model.IsActive) 21 |
22 |
23 | @Html.DisplayFor(model => model.IsActive) 24 |
25 |
26 | @Html.DisplayNameFor(model => model.Name) 27 |
28 |
29 | @Html.DisplayFor(model => model.Name) 30 |
31 |
32 | @Html.DisplayNameFor(model => model.Description) 33 |
34 |
35 | @Html.DisplayFor(model => model.Description) 36 |
37 |
38 |
39 |
40 | Edit | 41 | Back to List 42 |
43 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/SalesChannels/Edit.cshtml: -------------------------------------------------------------------------------- 1 | @model motekarteknologi.Areas.crm.Models.SalesChannel 2 | 3 | @{ 4 | ViewData["Title"] = "Edit"; 5 | } 6 | 7 |

Edit

8 | 9 |

SalesChannel

10 |
11 |
12 |
13 |
14 |
15 | 16 |
17 | 18 | 19 | 20 |
21 |
22 |
23 | 26 |
27 |
28 |
29 | 30 | 31 | 32 |
33 |
34 | 35 | 36 | 37 |
38 |
39 | 40 |
41 |
42 |
43 |
44 | 45 |
46 | Back to List 47 |
48 | 49 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/SalesChannels/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model IEnumerable 2 | 3 | @{ 4 | ViewData["Title"] = "Index"; 5 | } 6 | 7 |

Index

8 | 9 |

10 | Create New 11 |

12 | 13 | 14 | 15 | 18 | 21 | 24 | 27 | 28 | 29 | 30 | 31 | @foreach (var item in Model) { 32 | 33 | 36 | 39 | 42 | 45 | 50 | 51 | } 52 | 53 |
16 | @Html.DisplayNameFor(model => model.CreatedDateUtc) 17 | 19 | @Html.DisplayNameFor(model => model.IsActive) 20 | 22 | @Html.DisplayNameFor(model => model.Name) 23 | 25 | @Html.DisplayNameFor(model => model.Description) 26 |
34 | @Html.DisplayFor(modelItem => item.CreatedDateUtc) 35 | 37 | @Html.DisplayFor(modelItem => item.IsActive) 38 | 40 | @Html.DisplayFor(modelItem => item.Name) 41 | 43 | @Html.DisplayFor(modelItem => item.Description) 44 | 46 | Edit | 47 | Details | 48 | Delete 49 |
54 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |

Error.

7 |

An error occurred while processing your request.

8 | 9 | @if (Model.ShowRequestId) 10 | { 11 |

12 | Request ID: @Model.RequestId 13 |

14 | } 15 | 16 |

Development Mode

17 |

18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |

20 |

21 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 22 |

23 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Shared/_ChildActionButtons.cshtml: -------------------------------------------------------------------------------- 1 | @using motekarteknologi.Areas.crm.ViewModels.Common 2 | @model ChildActionButton 3 | 4 | @{ 5 | string currentAction = (string)this.ViewContext.RouteData.Values["action"]; 6 | string currentController = (string)this.ViewContext.RouteData.Values["controller"]; 7 | } 8 | 9 | Cancel 10 | @if (currentAction.Equals("Create")) 11 | { 12 | 13 | } 14 | else if (currentAction.Equals("Edit")) 15 | { 16 | 17 | } 18 | else if (currentAction.Equals("Delete")) 19 | { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Shared/_ChildCreateNew.cshtml: -------------------------------------------------------------------------------- 1 | @using motekarteknologi.Areas.crm.ViewModels.Common 2 | @model ChildCreateNew 3 | 4 | Create New -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Shared/_ChildGridActions.cshtml: -------------------------------------------------------------------------------- 1 | @using motekarteknologi.Areas.crm.ViewModels.Common 2 | @model ChildGridAction 3 | 4 | @{ 5 | string currentAction = (string)this.ViewContext.RouteData.Values["action"]; 6 | } 7 | @if (!String.IsNullOrEmpty(currentAction) 8 | && currentAction.Equals("Edit")) 9 | { 10 | Edit 11 | Details 12 | Delete 13 | } 14 | 15 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Shared/_Footer.cshtml: -------------------------------------------------------------------------------- 1 | 
2 | 5 | Copyright © 2014-2016 Almsaeed Studio. All rights 6 | reserved. 7 |
-------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Shared/_LoginPartial.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNetCore.Identity 2 | @using motekarteknologi.Models 3 | 4 | @inject SignInManager SignInManager 5 | @inject UserManager UserManager 6 | 7 | @if (SignInManager.IsSignedIn(User)) 8 | { 9 | 19 | } 20 | else 21 | { 22 | 26 | } 27 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Shared/_Navigation.cshtml: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12 | 18 | 19 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNetCore.Identity 2 | @using motekarteknologi 3 | @using motekarteknologi.Models 4 | @using motekarteknologi.Models.AccountViewModels 5 | @using motekarteknologi.Models.ManageViewModels 6 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 7 | -------------------------------------------------------------------------------- /src/motekarteknologi/Areas/crm/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_LayoutAdminlte"; 3 | } 4 | -------------------------------------------------------------------------------- /src/motekarteknologi/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore.Mvc; 7 | using motekarteknologi.Models; 8 | 9 | namespace motekarteknologi.Controllers 10 | { 11 | public class HomeController : Controller 12 | { 13 | public IActionResult Index() 14 | { 15 | return View(); 16 | } 17 | 18 | public IActionResult About() 19 | { 20 | ViewData["Message"] = "Your application description page."; 21 | 22 | return View(); 23 | } 24 | 25 | public IActionResult Contact() 26 | { 27 | ViewData["Message"] = "Your contact page."; 28 | 29 | return View(); 30 | } 31 | 32 | public IActionResult Error() 33 | { 34 | return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/motekarteknologi/Extensions/EmailSenderExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text.Encodings.Web; 5 | using System.Threading.Tasks; 6 | using motekarteknologi.Services; 7 | 8 | namespace motekarteknologi.Services 9 | { 10 | public static class EmailSenderExtensions 11 | { 12 | public static Task SendEmailConfirmationAsync(this IEmailSender emailSender, string email, string link) 13 | { 14 | return emailSender.SendEmailAsync(email, "Confirm your email", 15 | $"Please confirm your account by clicking this link: link"); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/motekarteknologi/Extensions/UrlHelperExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using motekarteknologi.Controllers; 6 | 7 | namespace Microsoft.AspNetCore.Mvc 8 | { 9 | public static class UrlHelperExtensions 10 | { 11 | public static string EmailConfirmationLink(this IUrlHelper urlHelper, string userId, string code, string scheme) 12 | { 13 | return urlHelper.Action( 14 | action: nameof(AccountController.ConfirmEmail), 15 | controller: "Account", 16 | values: new { userId, code }, 17 | protocol: scheme); 18 | } 19 | 20 | public static string ResetPasswordCallbackLink(this IUrlHelper urlHelper, string userId, string code, string scheme) 21 | { 22 | return urlHelper.Action( 23 | action: nameof(AccountController.ResetPassword), 24 | controller: "Account", 25 | values: new { userId, code }, 26 | protocol: scheme); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/motekarteknologi/Helpers/HtmlHelpers.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Mvc.Rendering; 6 | 7 | 8 | namespace motekarteknologi 9 | { 10 | public static class HtmlHelpers 11 | { 12 | public static string IsSelected(this IHtmlHelper html, string area = null, string controller = null, string action = null, string cssClass = null) 13 | { 14 | if (String.IsNullOrEmpty(cssClass)) 15 | cssClass = "active"; 16 | 17 | string currentAction = (string)html.ViewContext.RouteData.Values["action"]; 18 | string currentController = (string)html.ViewContext.RouteData.Values["controller"]; 19 | string currentArea = (string)html.ViewContext.RouteData.Values["area"]; 20 | 21 | if (String.IsNullOrEmpty(area)) 22 | area = currentArea; 23 | 24 | if (String.IsNullOrEmpty(controller)) 25 | controller = currentController; 26 | 27 | if (String.IsNullOrEmpty(action)) 28 | action = currentAction; 29 | 30 | return controller == currentController 31 | && area == currentArea 32 | && action == currentAction ? 33 | cssClass : String.Empty; 34 | } 35 | 36 | public static string PageClass(this IHtmlHelper htmlHelper) 37 | { 38 | string currentAction = (string)htmlHelper.ViewContext.RouteData.Values["action"]; 39 | return currentAction; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/AccountViewModels/ExternalLoginViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace motekarteknologi.Models.AccountViewModels 8 | { 9 | public class ExternalLoginViewModel 10 | { 11 | [Required] 12 | [EmailAddress] 13 | public string Email { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/AccountViewModels/ForgotPasswordViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace motekarteknologi.Models.AccountViewModels 8 | { 9 | public class ForgotPasswordViewModel 10 | { 11 | [Required] 12 | [EmailAddress] 13 | public string Email { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/AccountViewModels/LoginViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace motekarteknologi.Models.AccountViewModels 8 | { 9 | public class LoginViewModel 10 | { 11 | [Required] 12 | [EmailAddress] 13 | public string Email { get; set; } 14 | 15 | [Required] 16 | [DataType(DataType.Password)] 17 | public string Password { get; set; } 18 | 19 | [Display(Name = "Remember me?")] 20 | public bool RememberMe { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/AccountViewModels/LoginWith2faViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace motekarteknologi.Models.AccountViewModels 8 | { 9 | public class LoginWith2faViewModel 10 | { 11 | [Required] 12 | [StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] 13 | [DataType(DataType.Text)] 14 | [Display(Name = "Authenticator code")] 15 | public string TwoFactorCode { get; set; } 16 | 17 | [Display(Name = "Remember this machine")] 18 | public bool RememberMachine { get; set; } 19 | 20 | public bool RememberMe { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/AccountViewModels/LoginWithRecoveryCodeViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace motekarteknologi.Models.AccountViewModels 8 | { 9 | public class LoginWithRecoveryCodeViewModel 10 | { 11 | [Required] 12 | [DataType(DataType.Text)] 13 | [Display(Name = "Recovery Code")] 14 | public string RecoveryCode { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/AccountViewModels/RegisterViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace motekarteknologi.Models.AccountViewModels 8 | { 9 | public class RegisterViewModel 10 | { 11 | [Required] 12 | [EmailAddress] 13 | [Display(Name = "Email")] 14 | public string Email { get; set; } 15 | 16 | [Required] 17 | [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] 18 | [DataType(DataType.Password)] 19 | [Display(Name = "Password")] 20 | public string Password { get; set; } 21 | 22 | [DataType(DataType.Password)] 23 | [Display(Name = "Confirm password")] 24 | [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")] 25 | public string ConfirmPassword { get; set; } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/AccountViewModels/ResetPasswordViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace motekarteknologi.Models.AccountViewModels 8 | { 9 | public class ResetPasswordViewModel 10 | { 11 | [Required] 12 | [EmailAddress] 13 | public string Email { get; set; } 14 | 15 | [Required] 16 | [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] 17 | [DataType(DataType.Password)] 18 | public string Password { get; set; } 19 | 20 | [DataType(DataType.Password)] 21 | [Display(Name = "Confirm password")] 22 | [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")] 23 | public string ConfirmPassword { get; set; } 24 | 25 | public string Code { get; set; } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/ApplicationUser.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Identity; 6 | 7 | namespace motekarteknologi.Models 8 | { 9 | // Add profile data for application users by adding properties to the ApplicationUser class 10 | public class ApplicationUser : IdentityUser 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/BaseAddressModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.ComponentModel.DataAnnotations; 6 | 7 | namespace motekarteknologi.Models 8 | { 9 | public class BaseAddressModel : BaseModel 10 | { 11 | [StringLength(100)] 12 | public string Street { get; set; } 13 | [StringLength(100)] 14 | public string Street2 { get; set; } 15 | [StringLength(100)] 16 | public string City { get; set; } 17 | [StringLength(100)] 18 | public string State { get; set; } 19 | [StringLength(20)] 20 | public string ZIP { get; set; } 21 | [StringLength(100)] 22 | public string Country { get; set; } 23 | [StringLength(100)] 24 | public string Website { get; set; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/BaseContactModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.ComponentModel.DataAnnotations; 6 | 7 | namespace motekarteknologi.Models 8 | { 9 | public class BaseContactModel : BaseModel 10 | { 11 | [StringLength(200)] 12 | public string ContactName { get; set; } 13 | [StringLength(100)] 14 | public string JobPosition { get; set; } 15 | [StringLength(100)] 16 | public string Email { get; set; } 17 | [StringLength(50)] 18 | public string Phone { get; set; } 19 | [StringLength(50)] 20 | public string Mobile { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/BaseModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.ComponentModel.DataAnnotations; 6 | 7 | namespace motekarteknologi.Models 8 | { 9 | //about datetime, offset and timezone: https://docs.microsoft.com/en-us/dotnet/standard/datetime/index 10 | public class BaseModel 11 | { 12 | public BaseModel() 13 | { 14 | this.CreatedDateUtc = DateTime.UtcNow; 15 | this.IsActive = true; 16 | 17 | } 18 | public Guid ID { get; set; } 19 | public DateTime CreatedDateUtc { get; set; } 20 | public bool IsActive { get; set; } 21 | [Required] 22 | [StringLength(100, MinimumLength = 3, ErrorMessage = "Max 100, Min 3 characters.")] 23 | public string Name { get; set; } 24 | [StringLength(200, MinimumLength = 3, ErrorMessage = "Max 200, Min 3 characters.")] 25 | public string Description { get; set; } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace motekarteknologi.Models 4 | { 5 | public class ErrorViewModel 6 | { 7 | public string RequestId { get; set; } 8 | 9 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 10 | } 11 | } -------------------------------------------------------------------------------- /src/motekarteknologi/Models/ManageViewModels/ChangePasswordViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace motekarteknologi.Models.ManageViewModels 8 | { 9 | public class ChangePasswordViewModel 10 | { 11 | [Required] 12 | [DataType(DataType.Password)] 13 | [Display(Name = "Current password")] 14 | public string OldPassword { get; set; } 15 | 16 | [Required] 17 | [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] 18 | [DataType(DataType.Password)] 19 | [Display(Name = "New password")] 20 | public string NewPassword { get; set; } 21 | 22 | [DataType(DataType.Password)] 23 | [Display(Name = "Confirm new password")] 24 | [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")] 25 | public string ConfirmPassword { get; set; } 26 | 27 | public string StatusMessage { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/ManageViewModels/EnableAuthenticatorViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.ComponentModel.DataAnnotations; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using Microsoft.AspNetCore.Mvc.ModelBinding; 8 | 9 | namespace motekarteknologi.Models.ManageViewModels 10 | { 11 | public class EnableAuthenticatorViewModel 12 | { 13 | [Required] 14 | [StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] 15 | [DataType(DataType.Text)] 16 | [Display(Name = "Verification Code")] 17 | public string Code { get; set; } 18 | 19 | [BindNever] 20 | public string SharedKey { get; set; } 21 | 22 | [BindNever] 23 | public string AuthenticatorUri { get; set; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/ManageViewModels/ExternalLoginsViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Authentication; 6 | using Microsoft.AspNetCore.Identity; 7 | 8 | namespace motekarteknologi.Models.ManageViewModels 9 | { 10 | public class ExternalLoginsViewModel 11 | { 12 | public IList CurrentLogins { get; set; } 13 | 14 | public IList OtherLogins { get; set; } 15 | 16 | public bool ShowRemoveButton { get; set; } 17 | 18 | public string StatusMessage { get; set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/ManageViewModels/IndexViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace motekarteknologi.Models.ManageViewModels 8 | { 9 | public class IndexViewModel 10 | { 11 | public string Username { get; set; } 12 | 13 | public bool IsEmailConfirmed { get; set; } 14 | 15 | [Required] 16 | [EmailAddress] 17 | public string Email { get; set; } 18 | 19 | [Phone] 20 | [Display(Name = "Phone number")] 21 | public string PhoneNumber { get; set; } 22 | 23 | public string StatusMessage { get; set; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/ManageViewModels/RemoveLoginViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace motekarteknologi.Models.ManageViewModels 8 | { 9 | public class RemoveLoginViewModel 10 | { 11 | public string LoginProvider { get; set; } 12 | public string ProviderKey { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/ManageViewModels/SetPasswordViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace motekarteknologi.Models.ManageViewModels 8 | { 9 | public class SetPasswordViewModel 10 | { 11 | [Required] 12 | [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] 13 | [DataType(DataType.Password)] 14 | [Display(Name = "New password")] 15 | public string NewPassword { get; set; } 16 | 17 | [DataType(DataType.Password)] 18 | [Display(Name = "Confirm new password")] 19 | [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")] 20 | public string ConfirmPassword { get; set; } 21 | 22 | public string StatusMessage { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/ManageViewModels/ShowRecoveryCodesViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace motekarteknologi.Models.ManageViewModels 8 | { 9 | public class ShowRecoveryCodesViewModel 10 | { 11 | public string[] RecoveryCodes { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/motekarteknologi/Models/ManageViewModels/TwoFactorAuthenticationViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace motekarteknologi.Models.ManageViewModels 8 | { 9 | public class TwoFactorAuthenticationViewModel 10 | { 11 | public bool HasAuthenticator { get; set; } 12 | 13 | public int RecoveryCodesLeft { get; set; } 14 | 15 | public bool Is2faEnabled { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/motekarteknologi/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore; 7 | using Microsoft.AspNetCore.Hosting; 8 | using Microsoft.Extensions.Configuration; 9 | using Microsoft.Extensions.Logging; 10 | //tambahan 11 | using Microsoft.Extensions.DependencyInjection; 12 | using motekarteknologi.Data; 13 | 14 | namespace motekarteknologi 15 | { 16 | public class Program 17 | { 18 | public static void Main(string[] args) 19 | { 20 | var host = BuildWebHost(args); 21 | 22 | using (var scope = host.Services.CreateScope()) 23 | { 24 | var services = scope.ServiceProvider; 25 | try 26 | { 27 | var context = services.GetRequiredService(); 28 | DbInitializer.Initialize(context); 29 | } 30 | catch (Exception ex) 31 | { 32 | var logger = services.GetRequiredService>(); 33 | logger.LogError(ex, "An error occurred while seeding the database."); 34 | } 35 | } 36 | 37 | host.Run(); 38 | } 39 | 40 | public static IWebHost BuildWebHost(string[] args) => 41 | WebHost.CreateDefaultBuilder(args) 42 | .UseStartup() 43 | .Build(); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/motekarteknologi/ScaffoldingReadMe.txt: -------------------------------------------------------------------------------- 1 | Scaffolding has generated all the files and added the required dependencies. 2 | 3 | However the Application's Startup code may required additional changes for things to work end to end. 4 | Add the following code to the Configure method in your Application's Startup class if not already done: 5 | 6 | app.UseMvc(routes => 7 | { 8 | route.MapRoute( 9 | name : "areas", 10 | template : "{area:exists}/{controller=Home}/{action=Index}/{id?}" 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /src/motekarteknologi/Services/EmailSender.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Services 7 | { 8 | // This class is used by the application to send email for account confirmation and password reset. 9 | // For more details see https://go.microsoft.com/fwlink/?LinkID=532713 10 | public class EmailSender : IEmailSender 11 | { 12 | public Task SendEmailAsync(string email, string subject, string message) 13 | { 14 | return Task.CompletedTask; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/motekarteknologi/Services/IEmailSender.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Services 7 | { 8 | public interface IEmailSender 9 | { 10 | Task SendEmailAsync(string email, string subject, string message); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/motekarteknologi/Statics/TempDataKey.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace motekarteknologi.Statics 7 | { 8 | public static class TempDataKey 9 | { 10 | public const string ActiveTab = "ActiveTab"; 11 | public const string MasterID = "MasterID"; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Account/AccessDenied.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Access denied"; 3 | } 4 | 5 |
6 |

@ViewData["Title"]

7 |

You do not have access to this resource.

8 |
9 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Account/ConfirmEmail.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Confirm email"; 3 | } 4 | 5 |

@ViewData["Title"]

6 |
7 |

8 | Thank you for confirming your email. 9 |

10 |
11 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Account/ExternalLogin.cshtml: -------------------------------------------------------------------------------- 1 | @model ExternalLoginViewModel 2 | @{ 3 | ViewData["Title"] = "Register"; 4 | } 5 | 6 |

@ViewData["Title"]

7 |

Associate your @ViewData["LoginProvider"] account.

8 |
9 | 10 |

11 | You've successfully authenticated with @ViewData["LoginProvider"]. 12 | Please enter an email address for this site below and click the Register button to finish 13 | logging in. 14 |

15 | 16 |
17 |
18 |
19 |
20 |
21 | 22 | 23 | 24 |
25 | 26 |
27 |
28 |
29 | 30 | @section Scripts { 31 | @await Html.PartialAsync("_ValidationScriptsPartial") 32 | } 33 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Account/ForgotPassword.cshtml: -------------------------------------------------------------------------------- 1 | @model ForgotPasswordViewModel 2 | @{ 3 | ViewData["Title"] = "Forgot your password?"; 4 | } 5 | 6 |

@ViewData["Title"]

7 |

Enter your email.

8 |
9 |
10 |
11 |
12 |
13 |
14 | 15 | 16 | 17 |
18 | 19 |
20 |
21 |
22 | 23 | @section Scripts { 24 | @await Html.PartialAsync("_ValidationScriptsPartial") 25 | } 26 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Account/ForgotPasswordConfirmation.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Forgot password confirmation"; 3 | } 4 | 5 |

@ViewData["Title"]

6 |

7 | Please check your email to reset your password. 8 |

9 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Account/Lockout.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Locked out"; 3 | } 4 | 5 |
6 |

@ViewData["Title"]

7 |

This account has been locked out, please try again later.

8 |
9 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Account/LoginWith2fa.cshtml: -------------------------------------------------------------------------------- 1 | @model LoginWith2faViewModel 2 | @{ 3 | ViewData["Title"] = "Two-factor authentication"; 4 | } 5 | 6 |

@ViewData["Title"]

7 |
8 |

Your login is protected with an authenticator app. Enter your authenticator code below.

9 |
10 |
11 |
12 | 13 |
14 |
15 | 16 | 17 | 18 |
19 |
20 |
21 | 25 |
26 |
27 |
28 | 29 |
30 |
31 |
32 |
33 |

34 | Don't have access to your authenticator device? You can 35 | log in with a recovery code. 36 |

37 | 38 | @section Scripts { 39 | @await Html.PartialAsync("_ValidationScriptsPartial") 40 | } -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Account/LoginWithRecoveryCode.cshtml: -------------------------------------------------------------------------------- 1 | @model LoginWithRecoveryCodeViewModel 2 | @{ 3 | ViewData["Title"] = "Recovery code verification"; 4 | } 5 | 6 |

@ViewData["Title"]

7 |
8 |

9 | You have requested to login with a recovery code. This login will not be remembered until you provide 10 | an authenticator app code at login or disable 2FA and login again. 11 |

12 |
13 |
14 |
15 |
16 |
17 | 18 | 19 | 20 |
21 | 22 |
23 |
24 |
25 | 26 | @section Scripts { 27 | @await Html.PartialAsync("_ValidationScriptsPartial") 28 | } -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Account/Register.cshtml: -------------------------------------------------------------------------------- 1 | @model RegisterViewModel 2 | @{ 3 | ViewData["Title"] = "Register"; 4 | } 5 | 6 |

@ViewData["Title"]

7 | 8 |
9 |
10 |
11 |

Create a new account.

12 |
13 |
14 |
15 | 16 | 17 | 18 |
19 |
20 | 21 | 22 | 23 |
24 |
25 | 26 | 27 | 28 |
29 | 30 |
31 |
32 |
33 | 34 | @section Scripts { 35 | @await Html.PartialAsync("_ValidationScriptsPartial") 36 | } 37 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Account/ResetPassword.cshtml: -------------------------------------------------------------------------------- 1 | @model ResetPasswordViewModel 2 | @{ 3 | ViewData["Title"] = "Reset password"; 4 | } 5 | 6 |

@ViewData["Title"]

7 |

Reset your password.

8 |
9 |
10 |
11 |
12 |
13 | 14 |
15 | 16 | 17 | 18 |
19 |
20 | 21 | 22 | 23 |
24 |
25 | 26 | 27 | 28 |
29 | 30 |
31 |
32 |
33 | 34 | @section Scripts { 35 | @await Html.PartialAsync("_ValidationScriptsPartial") 36 | } 37 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Account/ResetPasswordConfirmation.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Reset password confirmation"; 3 | } 4 | 5 |

@ViewData["Title"]

6 |

7 | Your password has been reset. Please click here to log in. 8 |

9 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Account/SignedOut.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Signed out"; 3 | } 4 | 5 |

@ViewData["Title"]

6 |

7 | You have successfully signed out. 8 |

9 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "About"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |

Use this area to provide additional information.

8 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Home/Contact.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Contact"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |
8 | One Microsoft Way
9 | Redmond, WA 98052-6399
10 | P: 11 | 425.555.0100 12 |
13 | 14 |
15 | Support: Support@example.com
16 | Marketing: Marketing@example.com 17 |
18 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/ChangePassword.cshtml: -------------------------------------------------------------------------------- 1 | @model ChangePasswordViewModel 2 | @{ 3 | ViewData["Title"] = "Change password"; 4 | ViewData.AddActivePage(ManageNavPages.ChangePassword); 5 | } 6 | 7 |

@ViewData["Title"]

8 | @Html.Partial("_StatusMessage", Model.StatusMessage) 9 |
10 |
11 |
12 |
13 |
14 | 15 | 16 | 17 |
18 |
19 | 20 | 21 | 22 |
23 |
24 | 25 | 26 | 27 |
28 | 29 |
30 |
31 |
32 | 33 | @section Scripts { 34 | @await Html.PartialAsync("_ValidationScriptsPartial") 35 | } 36 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/Disable2fa.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Disable two-factor authentication (2FA)"; 3 | ViewData.AddActivePage(ManageNavPages.TwoFactorAuthentication); 4 | } 5 | 6 |

@ViewData["Title"]

7 | 8 | 19 | 20 |
21 |
22 | 23 |
24 |
25 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/ExternalLogins.cshtml: -------------------------------------------------------------------------------- 1 | @model ExternalLoginsViewModel 2 | @{ 3 | ViewData["Title"] = "Manage your external logins"; 4 | ViewData.AddActivePage(ManageNavPages.ExternalLogins); 5 | } 6 | 7 | @Html.Partial("_StatusMessage", Model.StatusMessage) 8 | @if (Model.CurrentLogins?.Count > 0) 9 | { 10 |

Registered Logins

11 | 12 | 13 | @foreach (var login in Model.CurrentLogins) 14 | { 15 | 16 | 17 | 33 | 34 | } 35 | 36 |
@login.LoginProvider 18 | @if (Model.ShowRemoveButton) 19 | { 20 |
21 |
22 | 23 | 24 | 25 |
26 |
27 | } 28 | else 29 | { 30 | @:   31 | } 32 |
37 | } 38 | @if (Model.OtherLogins?.Count > 0) 39 | { 40 |

Add another service to log in.

41 |
42 |
43 |
44 |

45 | @foreach (var provider in Model.OtherLogins) 46 | { 47 | 48 | } 49 |

50 |
51 |
52 | } 53 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/GenerateRecoveryCodes.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Generate two-factor authentication (2FA) recovery codes"; 3 | ViewData.AddActivePage(ManageNavPages.TwoFactorAuthentication); 4 | } 5 | 6 |

@ViewData["Title"]

7 | 8 | 21 | 22 |
23 |
24 | 25 |
26 |
27 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model IndexViewModel 2 | @{ 3 | ViewData["Title"] = "Profile"; 4 | ViewData.AddActivePage(ManageNavPages.Index); 5 | } 6 | 7 |

@ViewData["Title"]

8 | @Html.Partial("_StatusMessage", Model.StatusMessage) 9 |
10 |
11 |
12 |
13 |
14 | 15 | 16 |
17 |
18 | 19 | @if (Model.IsEmailConfirmed) 20 | { 21 |
22 | 23 | 24 |
25 | } 26 | else 27 | { 28 | 29 | 30 | } 31 | 32 |
33 |
34 | 35 | 36 | 37 |
38 | 39 |
40 |
41 |
42 | 43 | @section Scripts { 44 | @await Html.PartialAsync("_ValidationScriptsPartial") 45 | } 46 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/ManageNavPages.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Mvc.Rendering; 6 | using Microsoft.AspNetCore.Mvc.ViewFeatures; 7 | 8 | namespace motekarteknologi.Views.Manage 9 | { 10 | public static class ManageNavPages 11 | { 12 | public static string ActivePageKey => "ActivePage"; 13 | 14 | public static string Index => "Index"; 15 | 16 | public static string ChangePassword => "ChangePassword"; 17 | 18 | public static string ExternalLogins => "ExternalLogins"; 19 | 20 | public static string TwoFactorAuthentication => "TwoFactorAuthentication"; 21 | 22 | public static string IndexNavClass(ViewContext viewContext) => PageNavClass(viewContext, Index); 23 | 24 | public static string ChangePasswordNavClass(ViewContext viewContext) => PageNavClass(viewContext, ChangePassword); 25 | 26 | public static string ExternalLoginsNavClass(ViewContext viewContext) => PageNavClass(viewContext, ExternalLogins); 27 | 28 | public static string TwoFactorAuthenticationNavClass(ViewContext viewContext) => PageNavClass(viewContext, TwoFactorAuthentication); 29 | 30 | public static string PageNavClass(ViewContext viewContext, string page) 31 | { 32 | var activePage = viewContext.ViewData["ActivePage"] as string; 33 | return string.Equals(activePage, page, StringComparison.OrdinalIgnoreCase) ? "active" : null; 34 | } 35 | 36 | public static void AddActivePage(this ViewDataDictionary viewData, string activePage) => viewData[ActivePageKey] = activePage; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/ResetAuthenticator.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Reset authenticator key"; 3 | ViewData.AddActivePage(ManageNavPages.TwoFactorAuthentication); 4 | } 5 | 6 |

@ViewData["Title"]

7 | 17 |
18 |
19 | 20 |
21 |
-------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/SetPassword.cshtml: -------------------------------------------------------------------------------- 1 | @model SetPasswordViewModel 2 | @{ 3 | ViewData["Title"] = "Set password"; 4 | ViewData.AddActivePage(ManageNavPages.ChangePassword); 5 | } 6 | 7 |

Set your password

8 | @Html.Partial("_StatusMessage", Model.StatusMessage) 9 |

10 | You do not have a local username/password for this site. Add a local 11 | account so you can log in without an external login. 12 |

13 |
14 |
15 |
16 |
17 |
18 | 19 | 20 | 21 |
22 |
23 | 24 | 25 | 26 |
27 | 28 |
29 |
30 |
31 | 32 | @section Scripts { 33 | @await Html.PartialAsync("_ValidationScriptsPartial") 34 | } 35 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/ShowRecoveryCodes.cshtml: -------------------------------------------------------------------------------- 1 | @model ShowRecoveryCodesViewModel 2 | @{ 3 | ViewData["Title"] = "Recovery codes"; 4 | ViewData.AddActivePage(ManageNavPages.TwoFactorAuthentication); 5 | } 6 | 7 |

@ViewData["Title"]

8 | 17 |
18 |
19 | @for (var row = 0; row < Model.RecoveryCodes.Length; row += 2) 20 | { 21 | @Model.RecoveryCodes[row] @Model.RecoveryCodes[row + 1]
22 | } 23 |
24 |
-------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/TwoFactorAuthentication.cshtml: -------------------------------------------------------------------------------- 1 | @model TwoFactorAuthenticationViewModel 2 | @{ 3 | ViewData["Title"] = "Two-factor authentication"; 4 | ViewData.AddActivePage(ManageNavPages.TwoFactorAuthentication); 5 | } 6 | 7 |

@ViewData["Title"]

8 | @if (Model.Is2faEnabled) 9 | { 10 | if (Model.RecoveryCodesLeft == 0) 11 | { 12 |
13 | You have no recovery codes left. 14 |

You must generate a new set of recovery codes before you can log in with a recovery code.

15 |
16 | } 17 | else if (Model.RecoveryCodesLeft == 1) 18 | { 19 |
20 | You have 1 recovery code left. 21 |

You can generate a new set of recovery codes.

22 |
23 | } 24 | else if (Model.RecoveryCodesLeft <= 3) 25 | { 26 |
27 | You have @Model.RecoveryCodesLeft recovery codes left. 28 |

You should generate a new set of recovery codes.

29 |
30 | } 31 | 32 | Disable 2FA 33 | Reset recovery codes 34 | } 35 | 36 |
Authenticator app
37 | @if (!Model.HasAuthenticator) 38 | { 39 | Add authenticator app 40 | } 41 | else 42 | { 43 | Configure authenticator app 44 | Reset authenticator key 45 | } 46 | 47 | @section Scripts { 48 | @await Html.PartialAsync("_ValidationScriptsPartial") 49 | } 50 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "/Views/Shared/_Layout.cshtml"; 3 | } 4 | 5 |

Manage your account

6 | 7 |
8 |

Change your account settings

9 |
10 |
11 |
12 | @await Html.PartialAsync("_ManageNav") 13 |
14 |
15 | @RenderBody() 16 |
17 |
18 |
19 | 20 | @section Scripts { 21 | @RenderSection("Scripts", required: false) 22 | } 23 | 24 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/_ManageNav.cshtml: -------------------------------------------------------------------------------- 1 | @using motekarteknologi.Views.Manage 2 | @inject SignInManager SignInManager 3 | @{ 4 | var hasExternalLogins = (await SignInManager.GetExternalAuthenticationSchemesAsync()).Any(); 5 | } 6 | 7 | 16 | 17 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/_StatusMessage.cshtml: -------------------------------------------------------------------------------- 1 | @model string 2 | 3 | @if (!String.IsNullOrEmpty(Model)) 4 | { 5 | var statusMessageClass = Model.StartsWith("Error") ? "danger" : "success"; 6 | 10 | } 11 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Manage/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using motekarteknologi.Views.Manage -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |

Error.

7 |

An error occurred while processing your request.

8 | 9 | @if (Model.ShowRequestId) 10 | { 11 |

12 | Request ID: @Model.RequestId 13 |

14 | } 15 | 16 |

Development Mode

17 |

18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |

20 |

21 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 22 |

23 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Shared/_LoginPartial.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNetCore.Identity 2 | @using motekarteknologi.Models 3 | 4 | @inject SignInManager SignInManager 5 | @inject UserManager UserManager 6 | 7 | @if (SignInManager.IsSignedIn(User)) 8 | { 9 | 19 | } 20 | else 21 | { 22 | 26 | } 27 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12 | 18 | 19 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNetCore.Identity 2 | @using motekarteknologi 3 | @using motekarteknologi.Models 4 | @using motekarteknologi.Models.AccountViewModels 5 | @using motekarteknologi.Models.ManageViewModels 6 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 7 | -------------------------------------------------------------------------------- /src/motekarteknologi/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /src/motekarteknologi/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/motekarteknologi/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-motekarteknologi-crm-plus;Trusted_Connection=True;MultipleActiveResultSets=true;AttachDbFileName=D:\\temp\\motekarteknologi-crm-plus.mdf" 4 | }, 5 | "Logging": { 6 | "IncludeScopes": false, 7 | "LogLevel": { 8 | "Default": "Warning" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/motekarteknologi/bundleconfig.json: -------------------------------------------------------------------------------- 1 | // Configure bundling and minification for the project. 2 | // More info at https://go.microsoft.com/fwlink/?LinkId=808241 3 | [ 4 | { 5 | "outputFileName": "wwwroot/css/site.min.css", 6 | // An array of relative input file paths. Globbing patterns supported 7 | "inputFiles": [ 8 | "wwwroot/css/site.css" 9 | ] 10 | }, 11 | { 12 | "outputFileName": "wwwroot/js/site.min.js", 13 | "inputFiles": [ 14 | "wwwroot/js/site.js" 15 | ], 16 | // Optionally specify minification options 17 | "minify": { 18 | "enabled": true, 19 | "renameLocals": true 20 | }, 21 | // Optionally generate .map file 22 | "sourceMap": false 23 | } 24 | ] 25 | -------------------------------------------------------------------------------- /src/motekarteknologi/motekarteknologi.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | aspnet-motekarteknologi-A3B7E1D1-DA3F-41D7-A714-2F7BD6BD6B72 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/css/site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Wrapping element */ 7 | /* Set some basic padding to keep content from hitting the edges */ 8 | .body-content { 9 | padding-left: 15px; 10 | padding-right: 15px; 11 | } 12 | 13 | /* Carousel */ 14 | .carousel-caption p { 15 | font-size: 20px; 16 | line-height: 1.4; 17 | } 18 | 19 | /* Make .svg files in the carousel display properly in older browsers */ 20 | .carousel-inner .item img[src$=".svg"] { 21 | width: 100%; 22 | } 23 | 24 | /* QR code generator */ 25 | #qrCode { 26 | margin: 15px; 27 | } 28 | 29 | /* Hide/rearrange for smaller screens */ 30 | @media screen and (max-width: 767px) { 31 | /* Hide captions */ 32 | .carousel-caption { 33 | display: none; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}#qrCode{margin:15px}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go2ismail/aspnetcore2-crm-plus/1a3624e6abf9a4a1be50c38bc41f15c6b01edef7/src/motekarteknologi/wwwroot/favicon.ico -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your JavaScript code. 2 | -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go2ismail/aspnetcore2-crm-plus/1a3624e6abf9a4a1be50c38bc41f15c6b01edef7/src/motekarteknologi/wwwroot/js/site.min.js -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/lib/bootstrap/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.", 4 | "keywords": [ 5 | "css", 6 | "js", 7 | "less", 8 | "mobile-first", 9 | "responsive", 10 | "front-end", 11 | "framework", 12 | "web" 13 | ], 14 | "homepage": "http://getbootstrap.com", 15 | "license": "MIT", 16 | "moduleType": "globals", 17 | "main": [ 18 | "less/bootstrap.less", 19 | "dist/js/bootstrap.js" 20 | ], 21 | "ignore": [ 22 | "/.*", 23 | "_config.yml", 24 | "CNAME", 25 | "composer.json", 26 | "CONTRIBUTING.md", 27 | "docs", 28 | "js/tests", 29 | "test-infra" 30 | ], 31 | "dependencies": { 32 | "jquery": "1.9.1 - 3" 33 | }, 34 | "version": "3.3.7", 35 | "_release": "3.3.7", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.3.7", 39 | "commit": "0b9c4a4007c44201dce9a6cc1a38407005c26c86" 40 | }, 41 | "_source": "https://github.com/twbs/bootstrap.git", 42 | "_target": "v3.3.7", 43 | "_originalSource": "bootstrap", 44 | "_direct": true 45 | } -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/lib/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2016 Twitter, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go2ismail/aspnetcore2-crm-plus/1a3624e6abf9a4a1be50c38bc41f15c6b01edef7/src/motekarteknologi/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go2ismail/aspnetcore2-crm-plus/1a3624e6abf9a4a1be50c38bc41f15c6b01edef7/src/motekarteknologi/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go2ismail/aspnetcore2-crm-plus/1a3624e6abf9a4a1be50c38bc41f15c6b01edef7/src/motekarteknologi/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go2ismail/aspnetcore2-crm-plus/1a3624e6abf9a4a1be50c38bc41f15c6b01edef7/src/motekarteknologi/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/lib/bootstrap/dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/lib/jquery-validation-unobtrusive/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation-unobtrusive", 3 | "version": "3.2.6", 4 | "homepage": "https://github.com/aspnet/jquery-validation-unobtrusive", 5 | "description": "Add-on to jQuery Validation to enable unobtrusive validation options in data-* attributes.", 6 | "main": [ 7 | "jquery.validate.unobtrusive.js" 8 | ], 9 | "ignore": [ 10 | "**/.*", 11 | "*.json", 12 | "*.md", 13 | "*.txt", 14 | "gulpfile.js" 15 | ], 16 | "keywords": [ 17 | "jquery", 18 | "asp.net", 19 | "mvc", 20 | "validation", 21 | "unobtrusive" 22 | ], 23 | "authors": [ 24 | "Microsoft" 25 | ], 26 | "license": "http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm", 27 | "repository": { 28 | "type": "git", 29 | "url": "git://github.com/aspnet/jquery-validation-unobtrusive.git" 30 | }, 31 | "dependencies": { 32 | "jquery-validation": ">=1.8", 33 | "jquery": ">=1.8" 34 | }, 35 | "_release": "3.2.6", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.2.6", 39 | "commit": "13386cd1b5947d8a5d23a12b531ce3960be1eba7" 40 | }, 41 | "_source": "git://github.com/aspnet/jquery-validation-unobtrusive.git", 42 | "_target": "3.2.6", 43 | "_originalSource": "jquery-validation-unobtrusive" 44 | } -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/lib/jquery-validation/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation", 3 | "homepage": "http://jqueryvalidation.org/", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/jzaefferer/jquery-validation.git" 7 | }, 8 | "authors": [ 9 | "Jörn Zaefferer " 10 | ], 11 | "description": "Form validation made easy", 12 | "main": "dist/jquery.validate.js", 13 | "keywords": [ 14 | "forms", 15 | "validation", 16 | "validate" 17 | ], 18 | "license": "MIT", 19 | "ignore": [ 20 | "**/.*", 21 | "node_modules", 22 | "bower_components", 23 | "test", 24 | "demo", 25 | "lib" 26 | ], 27 | "dependencies": { 28 | "jquery": ">= 1.7.2" 29 | }, 30 | "version": "1.14.0", 31 | "_release": "1.14.0", 32 | "_resolution": { 33 | "type": "version", 34 | "tag": "1.14.0", 35 | "commit": "c1343fb9823392aa9acbe1c3ffd337b8c92fed48" 36 | }, 37 | "_source": "git://github.com/jzaefferer/jquery-validation.git", 38 | "_target": ">=1.8", 39 | "_originalSource": "jquery-validation" 40 | } -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/lib/jquery-validation/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | ===================== 3 | 4 | Copyright Jörn Zaefferer 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/lib/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "main": "dist/jquery.js", 4 | "license": "MIT", 5 | "ignore": [ 6 | "package.json" 7 | ], 8 | "keywords": [ 9 | "jquery", 10 | "javascript", 11 | "browser", 12 | "library" 13 | ], 14 | "homepage": "https://github.com/jquery/jquery-dist", 15 | "version": "2.2.0", 16 | "_release": "2.2.0", 17 | "_resolution": { 18 | "type": "version", 19 | "tag": "2.2.0", 20 | "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5" 21 | }, 22 | "_source": "git://github.com/jquery/jquery-dist.git", 23 | "_target": "2.2.0", 24 | "_originalSource": "jquery" 25 | } -------------------------------------------------------------------------------- /src/motekarteknologi/wwwroot/lib/jquery/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright jQuery Foundation and other contributors, https://jquery.org/ 2 | 3 | This software consists of voluntary contributions made by many 4 | individuals. For exact contribution history, see the revision history 5 | available at https://github.com/jquery/jquery 6 | 7 | The following license applies to all parts of this software except as 8 | documented below: 9 | 10 | ==== 11 | 12 | Permission is hereby granted, free of charge, to any person obtaining 13 | a copy of this software and associated documentation files (the 14 | "Software"), to deal in the Software without restriction, including 15 | without limitation the rights to use, copy, modify, merge, publish, 16 | distribute, sublicense, and/or sell copies of the Software, and to 17 | permit persons to whom the Software is furnished to do so, subject to 18 | the following conditions: 19 | 20 | The above copyright notice and this permission notice shall be 21 | included in all copies or substantial portions of the Software. 22 | 23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 24 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 25 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 26 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 27 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 28 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 29 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 30 | 31 | ==== 32 | 33 | All files located in the node_modules and external directories are 34 | externally maintained libraries used by this software which have their 35 | own licenses; we recommend you read them, as their terms may differ from 36 | the terms above. 37 | -------------------------------------------------------------------------------- /src/src.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27130.2036 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "motekarteknologi", "motekarteknologi\motekarteknologi.csproj", "{1F966BA2-7438-4A4E-9FAC-D9C22456E6D9}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {1F966BA2-7438-4A4E-9FAC-D9C22456E6D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {1F966BA2-7438-4A4E-9FAC-D9C22456E6D9}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {1F966BA2-7438-4A4E-9FAC-D9C22456E6D9}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {1F966BA2-7438-4A4E-9FAC-D9C22456E6D9}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {07B496B2-A9D8-4308-B903-EC3F57672E9F} 24 | EndGlobalSection 25 | EndGlobal 26 | --------------------------------------------------------------------------------