-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
440 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using AppServices.Services; | ||
using Microsoft.AspNetCore.Mvc; | ||
using Web.ViewModels; | ||
|
||
namespace Web.Controllers | ||
{ | ||
public class UserProfileController : Controller | ||
{ | ||
private IJobsService _jobsService; | ||
|
||
public UserProfileController() | ||
{ | ||
_jobsService = new JobsService(); | ||
} | ||
|
||
public IActionResult Index(int id) | ||
{ | ||
var filteredJobsByUserProfile = _jobsService.GetByUserProfile(id); | ||
var viewModel = new UserProfileViewModel | ||
{ | ||
Jobs = filteredJobsByUserProfile | ||
}; | ||
return View(viewModel); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Domain; | ||
using System.Collections.Generic; | ||
|
||
namespace Web.ViewModels | ||
{ | ||
public class UserProfileViewModel : BaseViewModel | ||
{ | ||
public Company Company { get; set; } | ||
public List<Job> Jobs { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
|
||
@{ | ||
ViewData["Title"] = "User Profile"; | ||
} | ||
|
||
<!-- ============================ Hero Banner Start================================== --> | ||
<div class="page-title-wrap"> | ||
<div class="container"> | ||
<div class="col-lg-12 col-md-12"> | ||
<div class="pt-caption"> | ||
<h1>Hello! Asana</h1> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="clearfix"></div> | ||
<!-- ============================ Hero Banner End ================================== --> | ||
<!-- ============== Candidate Dashboard ====================== --> | ||
<section class="tr-single-detail gray-bg"> | ||
<div class="container"> | ||
<div class="row"> | ||
|
||
<!-- Sidebar Start --> | ||
<div class="col-md-4 col-sm-12"> | ||
<div class="dashboard-wrap"> | ||
|
||
<div class="dashboard-thumb"> | ||
<div class="dashboard-th-pic"> | ||
<img src="/img/logo.png" class="img-fluid mx-auto img-circle" alt="" /> | ||
</div> | ||
<h4 class="mb-1">Asana</h4> | ||
<span class="text-success">Project Management</span> | ||
</div> | ||
|
||
<!-- Nav tabs --> | ||
<ul class="nav dashboard-verticle-nav"> | ||
<li class="nav-item"> | ||
<a class="nav-link active" data-toggle="tab" href="#c-profile"><i class="ti-user"></i>Company Profile</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" data-toggle="tab" href="#manage-jobs"><i class="ti-file"></i>Manage jobs</a> | ||
</li> | ||
</ul> | ||
|
||
</div> | ||
</div> | ||
<!-- /col-md-4 --> | ||
|
||
<div class="col-md-8 col-sm-12"> | ||
<!-- Tab panes --> | ||
<div class="tab-content"> | ||
|
||
<partial name="_partials/CompanyProfileView" model="@Model.Company" /> | ||
|
||
<partial name="_partials/ManageJobsView" model="@Model.Jobs" /> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</section> | ||
<!-- ============== Candidate Dashboard ====================== --> |
232 changes: 232 additions & 0 deletions
232
Web/Views/UserProfile/_partials/CompanyProfileView.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,232 @@ | ||
@* | ||
For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 | ||
*@ | ||
|
||
<!-- My Profile --> | ||
<div class="tab-pane active container" id="c-profile"> | ||
|
||
<!-- Company Information --> | ||
<div class="tr-single-box"> | ||
<div class="tr-single-header"> | ||
<h4><i class="ti-home"></i> Company Information</h4> | ||
</div> | ||
|
||
<div class="tr-single-body"> | ||
<div class="row"> | ||
|
||
<div class="col-lg-12 col-md-12 col-sm-12"> | ||
<div class="form-group"> | ||
<label>Company Name</label> | ||
<input class="form-control" type="text" value="Drizvato Ltd"> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label>Company Slogan</label> | ||
<input class="form-control" type="text" value="Design & Development Company"> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label>Allow Search listing</label> | ||
<select id="search-allow" class="js-states form-control"> | ||
<option value=""> </option> | ||
<option value="1">Yes</option> | ||
<option value="2">No</option> | ||
</select> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-12 col-md-12 col-sm-12"> | ||
<div class="form-group"> | ||
<label>Overview</label> | ||
<div id="summernote"><p>Hello Description</p></div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-12 col-md-12 col-sm-12"> | ||
<div class="form-group"> | ||
<label>Employer Logo</label> | ||
<div class="custom-file"> | ||
<input type="file" class="custom-file-input" id="customFile"> | ||
<label class="custom-file-label" for="customFile">Choose file</label> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-12 col-md-12 col-sm-12"> | ||
<div class="form-group"> | ||
<label>Cover Picture</label> | ||
<div class="custom-file"> | ||
<input type="file" class="custom-file-input" id="customFile2"> | ||
<label class="custom-file-label" for="customFile2">Choose file</label> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
<!-- /Basic Info --> | ||
<!-- Contact Info --> | ||
<div class="tr-single-box"> | ||
<div class="tr-single-header"> | ||
<h4><i class="ti-headphone"></i> Contact Info</h4> | ||
</div> | ||
|
||
<div class="tr-single-body"> | ||
<div class="row"> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo">Phone Number</label> | ||
<input class="form-control" type="text" value="91 254 548 7584"> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo">Email</label> | ||
<input class="form-control" type="text" value="[email protected]"> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo">Website</label> | ||
<input class="form-control" type="text" value="https://drizvato.com"> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo">Country</label> | ||
<input class="form-control" type="text" value="India"> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo">City</label> | ||
<input class="form-control" type="text" value="Chandigarh"> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo">Complete Address</label> | ||
<input class="form-control" type="text" value="2850, Near Gurudwara"> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo">Latitude</label> | ||
<input class="form-control" type="text" value="-0.3306495"> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo">Longitude</label> | ||
<input class="form-control" type="text" value="51.5353994"> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
<!-- /Contact Info --> | ||
<!-- Social Account --> | ||
<div class="tr-single-box"> | ||
<div class="tr-single-header"> | ||
<h4><i class="ti-new-window"></i> Social Account</h4> | ||
</div> | ||
|
||
<div class="tr-single-body"> | ||
<div class="row"> | ||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo"><i class="lni-facebook"></i>Facebook URL</label> | ||
<input class="form-control" type="text" value="https://facebook.com/"> | ||
</div> | ||
</div> | ||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo"><i class="lni-linkedin"></i>LinkedIn URL</label> | ||
<input class="form-control" type="text" value="https://linkedin.com"> | ||
</div> | ||
</div> | ||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo"><i class="lni-twitter"></i>Twitter URL</label> | ||
<input class="form-control" type="text" value="htps://twitter.com"> | ||
</div> | ||
</div> | ||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo"><i class="lni-instagram"></i>Instagram URL</label> | ||
<input class="form-control" type="text" value="https://instagram.com"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<!-- /Social Account --> | ||
<!-- Advance Information --> | ||
<div class="tr-single-box"> | ||
<div class="tr-single-header"> | ||
<h4><i class="ti-heart"></i> Advance Information</h4> | ||
</div> | ||
|
||
<div class="tr-single-body"> | ||
<div class="row"> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo">Est. Since</label> | ||
<input class="form-control" type="text" value="1992"> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo">Team Size</label> | ||
<input class="form-control" type="text" value="80+"> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo">Branches</label> | ||
<input class="form-control" type="text" value="10"> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-6 col-md-6 col-sm-12"> | ||
<div class="form-group"> | ||
<label class="social-nfo">Business Type</label> | ||
<select id="business-type" class="js-states form-control"> | ||
<option value="">Please Select</option> | ||
<option value="1" selected>Limited Company</option> | ||
<option value="2">Private Limited</option> | ||
<option value="3">C Corporations</option> | ||
<option value="4">S Corporations</option> | ||
</select> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
<!-- /Advance Information --> | ||
|
||
<a href="#" class="btn btn-info btn-md full-width">Save & Update<i class="ml-2 ti-arrow-right"></i></a> | ||
|
||
</div> |
Oops, something went wrong.