This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrations and shortlist module done
- Loading branch information
1 parent
d242302
commit 2cdfac9
Showing
9 changed files
with
291 additions
and
145 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
database/migrations/2016_08_11_001028_add_marks_and_contact_column_to_users_table.php
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,34 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class AddMarksAndContactColumnToUsersTable extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::table('users', function ($table) { | ||
$table->string('contact'); | ||
$table->float('marks')->default(0.00); | ||
|
||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::table('users', function ($table) { | ||
$table->dropColumn('contact'); | ||
$table->dropColumn('marks'); | ||
}); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions
33
resources/views/User/Admin/getShortlistedCandidates.blade.php
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,33 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-10 col-md-offset-1"> | ||
|
||
<div class="col-md-12"> | ||
<p style="color: green;">Following people are shortlisted</p> | ||
<table class="table table-hover"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Reg No</th> | ||
<th>Marks</th> | ||
|
||
</tr> | ||
</thead> | ||
<tbody> | ||
@foreach($people as $candidate) | ||
<tr> | ||
<td>{{$candidate->name}}</td> | ||
<td>{{$candidate->regno}}</td> | ||
<td>{{$candidate->marks}}</td> | ||
</tr> | ||
@endforeach | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endsection |
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,60 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-8 col-md-offset-2"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading">Shortlist Prople</div> | ||
<div class="panel-body"> | ||
|
||
<form class="form-horizontal" role="form" method="POST" action="{{ url('/admin/users/shortlist') }}"> | ||
{{ csrf_field() }} | ||
|
||
|
||
<div class="form-group{{ $errors->has('people') ? ' has-error' : '' }}"> | ||
<label for="people" class="col-md-4 control-label">Number of People you want to shortlist</label> | ||
|
||
|
||
<div class="col-md-6"> | ||
|
||
<input type="text" class="form-control" name="number"> | ||
|
||
|
||
|
||
</div> | ||
</div> | ||
<div class="form-group{{ $errors->has('people') ? ' has-error' : '' }}"> | ||
<label for="people" class="col-md-4 control-label">Domain</label> | ||
|
||
|
||
<div class="col-md-6"> | ||
|
||
<select class="form-control" name="domain"> | ||
<option value="1">Technical</option> | ||
<option value="2">Mangement</option> | ||
<option value="3">Design</option> | ||
</select> | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
<br> | ||
<div class="form-group"> | ||
<div class="col-md-6 col-md-offset-4"> | ||
<button type="submit" class="btn btn-primary"> | ||
<i class="fa fa-btn fa-sign-in"></i> Shortlist | ||
</button> | ||
|
||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endsection |
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