mentors

mentors Commit Details


Date:2014-06-26 22:00:58 (11 years 2 months ago)
Author:Right Or Wrong
Branch:develop
Commit:ab86cfc30c5751ce47a86228c9c475f15254796d
Parents: d48ec0c882cd6c9950041c7eda5ebfb10f1ace3b
Message:added some code

Changes:

File differences

app/controllers/SessionController.php
4848
4949
5050
51
51
5252
5353
5454
public function doLogout()
{
Auth::logout();
\Auth::logout();
return \Redirect::to('/');
}
app/controllers/UserController.php
5454
5555
5656
57
57
5858
5959
6060
*/
public function chooseGroup()
{
return View::make('users.group')->with('id', array());
return View::make('users.group');
}
/**
app/database/migrations/2014_06_27_003343_create_user_xref_role_table.php
1515
1616
1717
18
19
18
19
20
21
2022
2123
2224
Schema::create('user_xref_role', function(Blueprint $table)
{
$table->increments('id');
$table->integer('user_id');
$table->integer('role_id');
$table->integer('user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('users')->onUpdate('cascade');
$table->integer('role_id')->unsigned();
$table->foreign('role_id')->references('id')->on('roles')->onUpdate('cascade');
$table->timestamps();
});
}
app/routes.php
3131
3232
3333
34
3534
36
37
38
3935
4036
4137
Route::get('users/{id}', array('uses' => 'UserController@viewProfile'));
Route::post('users/{id}', array('uses' => 'UserController@updateProfile'));
Route::get('choose', function(){
return View::make('mentors.group');
});
/**
app/views/users/complete.blade.php
3535
3636
3737
38
38
3939
4040
4141
<div class="container padded">
<div class="container">
<legend><h2>Complete Your Profile</h2></legend>
<legend><h2>Complete Your Registration</h2></legend>
</div>
<div class="row">
app/views/users/group.blade.php
3434
3535
3636
37
37
3838
3939
4040
......
5454
5555
5656
57
57
5858
5959
6060
6161
6262
6363
64
64
6565
6666
6767
<div class="container padded">
<div class="container">
<legend><h2>Complete Your Profile</h2></legend>
<legend><h2>Complete Your Registration</h2></legend>
</div>
<div class="row">
<div class="col-lg-6">
<div class="page-header"><h1>mentor - <small>someone who teaches or gives help and advice to a less experienced and often younger person.(a friend of Odysseus entrusted with the education of Odysseus' son Telemachus)</small></h1></div>
<p id="button-row">
{{ HTML::link('mentors/create', 'Become a Mentor', array('class' => 'btn btn-large btn-primary proxima-bold')) }}
{{ HTML::linkRoute('users/create', 'Become a Mentor', array('class' => 'btn btn-large btn-primary proxima-bold')) }}
</p>
</div>
<div class="col-lg-6">
<div class="page-header"><h1>mentee - <small>a less experienced person (protege) who is offered special guidance and support by a respected and trusted person with more experience (a mentor)</small></h1></div>
<p id="button-row">
{{ HTML::link('mentees/create', 'Become a Mentee', array('class' => 'btn btn-large btn-primary proxima-bold')) }}
{{ HTML::link('users/create', 'Become a Mentee', array('class' => 'btn btn-large btn-primary proxima-bold')) }}
</p>
</div>
</div>

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.37605s using 13 queries.