Skip to content

Commit

Permalink
Patch - Degrees, Department Updation
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmurty committed Apr 21, 2015
1 parent c9edbf8 commit 753b057
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,11 @@ public function postSocialmediaInfo()
/* Home Page (GET) */
public function getAboutUs()
{
$user = DB::table('users')->orderBy('created_at', 'desc')->first();
$usercount = (int) $user->id;
//return $usercount;
View::share('usercount', $usercount);

return View::make('page.aboutus');
}

Expand Down
1 change: 1 addition & 0 deletions app/views/page/aboutus.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<p><strong>#iitmconnect</strong> is the first project that has been taken up by
the I&AR Web Operations Team.</p>
<p>The purpose of this porject is to help you stay in touch with insti forever.</p>
<p>Users registered since April 21, 2015 on <strong>#iitmconnect</strong> : {{$usercount}} </p>
</div>
</div>
<div class="row">
Expand Down
34 changes: 34 additions & 0 deletions app/views/page/basicinfo.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
@endforeach
</optgroup>
</select>
@if(!$basic_info->department == "")
<span style="font-size:14px;" >Department Saved : {{ $basic_info->department }}</span>
@endif
</div>
<div class="col-sm-12 col-md-6">
<select data-toggle="select" class="form-control select select-default" name="minor" id="minor" required>
Expand All @@ -46,6 +49,9 @@
@endforeach
</optgroup>
</select>
@if(!$basic_info->minor == "")
<span style="font-size:14px;">Minor Saved : {{ $basic_info->minor }}</span>
@endif
</div>
</div>
<!-- Field - Degree Type -->
Expand All @@ -67,6 +73,22 @@
<input type="radio" name="optionsRadiosDegree" data-toggle="radio" value="PhD" id="radio4d" required>
PhD
</label>
<label class="radio" for="radio4e">
<input type="radio" name="optionsRadiosDegree" data-toggle="radio" value="M. Tech" id="radio4e" required>
M. Tech
</label>
<label class="radio" for="radio4f">
<input type="radio" name="optionsRadiosDegree" data-toggle="radio" value="MA (HS)" id="radio4f" required>
MA (HS)
</label>
<label class="radio" for="radio4g">
<input type="radio" name="optionsRadiosDegree" data-toggle="radio" value="MBA" id="radio4g" required>
MBA
</label>
<label class="radio" for="radio4h">
<input type="radio" name="optionsRadiosDegree" data-toggle="radio" value="M.Sc" id="radio4h" required>
M.Sc
</label>
</div>
</div>
<!-- Field - Email -->
Expand Down Expand Up @@ -241,6 +263,18 @@
case "PhD":
optionsRadiosDegree_id = "radio4d";
break;
case "M. Tech":
optionsRadiosDegree_id = "radio4e";
break;
case "MA (HS)":
optionsRadiosDegree_id = "radio4f";
break;
case "MBA":
optionsRadiosDegree_id = "radio4g";
break;
case "M.Sc":
optionsRadiosDegree_id = "radio4h";
break;
default:
optionsRadiosDegree_id = "radio4a";
break;
Expand Down

0 comments on commit 753b057

Please sign in to comment.