ALPHA 3.0.3
@@ -258,6 +258,7 @@ class CalendarController extends Controller
|
||||
<tr style="border:none;">
|
||||
<td style="border:none; width:80%">'.User::find($date->data['n1_p1_instructor'])->fullname().'</td>
|
||||
<td style="border:none;">'.$isdone_n1_p1.'</td>
|
||||
<td style="border:none;"><a href="/admin/inventory/'.$date->id.'/1/1" type="button" class="btn btn-info"><i class="fa fa-archive" style="color:white;"></i></a></td>
|
||||
</tr>
|
||||
<tr style="border:none;">
|
||||
<td style="border:none;width:80%">'.$date->data['n1_p1_ocom'].' - '.$date->data['n1_p1_name'].'</td>
|
||||
@@ -272,6 +273,7 @@ class CalendarController extends Controller
|
||||
<tr style="border:none;">
|
||||
<td style="border:none;width:80%">'.User::find($date->data['n1_p2_instructor'])->fullname().'</td>
|
||||
<td style="border:none;">'.$isdone_n1_p2.'</td>
|
||||
<td style="border:none;"><a href="/admin/inventory/'.$date->id.'/2/1" type="button" class="btn btn-info"><i class="fa fa-archive" style="color:white;"></i></a></td>
|
||||
</tr>
|
||||
<tr style="border:none;">
|
||||
<td style="border:none;width:80%">'.$date->data['n1_p2_ocom'].' - '.$date->data['n1_p2_name'].'</td>
|
||||
@@ -289,6 +291,7 @@ class CalendarController extends Controller
|
||||
<tr style="border:none;">
|
||||
<td style="border:none;width:80%">'.User::find($date->data['n2_p1_instructor'])->fullname().'</td>
|
||||
<td style="border:none;">'.$isdone_n2_p1.'</td>
|
||||
<td style="border:none;"><a href="/admin/inventory/'.$date->id.'/1/2" type="button" class="btn btn-info"><i class="fa fa-archive" style="color:white;"></i></a></td>
|
||||
</tr>
|
||||
<tr style="border:none;">
|
||||
<td style="border:none;width:80%">'.$date->data['n2_p1_ocom'].' - '.$date->data['n2_p1_name'].'</td>
|
||||
@@ -303,6 +306,7 @@ class CalendarController extends Controller
|
||||
<tr style="border:none;">
|
||||
<td style="border:none;width:80%">'.User::find($date->data['n2_p2_instructor'])->fullname().'</td>
|
||||
<td style="border:none;">'.$isdone_n2_p2.'</td>
|
||||
<td style="border:none;"><a href="/admin/inventory/'.$date->id.'/2/2" type="button" class="btn btn-info"><i class="fa fa-archive" style="color:white;"></i></a></td>
|
||||
</tr>
|
||||
<tr style="border:none;">
|
||||
<td style="border:none;width:80%">'.$date->data['n2_p2_ocom'].' - '.$date->data['n2_p2_name'].'</td>
|
||||
@@ -320,6 +324,7 @@ class CalendarController extends Controller
|
||||
<tr style="border:none;">
|
||||
<td style="border:none;width:80%">'.User::find($date->data['n3_p1_instructor'])->fullname().'</td>
|
||||
<td style="border:none;">'.$isdone_n3_p1.'</td>
|
||||
<td style="border:none;"><a href="/admin/inventory/'.$date->id.'/1/3" type="button" class="btn btn-info"><i class="fa fa-archive" style="color:white;"></i></a></td>
|
||||
</tr>
|
||||
<tr style="border:none;">
|
||||
<td style="border:none;width:80%">'.$date->data['n3_p1_ocom'].' - '.$date->data['n3_p1_name'].'</td>
|
||||
@@ -334,6 +339,7 @@ class CalendarController extends Controller
|
||||
<tr style="border:none;">
|
||||
<td style="border:none;width:80%">'.User::find($date->data['n3_p2_instructor'])->fullname().'</td>
|
||||
<td style="border:none;">'.$isdone_n3_p2.'</td>
|
||||
<td style="border:none;"><a href="/admin/inventory/'.$date->id.'/2/3" type="button" class="btn btn-info"><i class="fa fa-archive" style="color:white;"></i></a></td>
|
||||
</tr>
|
||||
<tr style="border:none;">
|
||||
<td style="border:none;width:80%">'.$date->data['n3_p2_ocom'].' - '.$date->data['n3_p2_name'].'</td>
|
||||
|
||||
154
app/Http/Controllers/InventoryController.php
Normal file
@@ -0,0 +1,154 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Item;
|
||||
use App\Schedule;
|
||||
|
||||
class InventoryController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$items = Item::all();
|
||||
|
||||
return view('admin.inventory.index',[ 'items' => $items]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public function booking()
|
||||
{
|
||||
$items = Item::all();
|
||||
$schedules = Schedule::all()->where('type','regular')->sortBy('date');
|
||||
|
||||
$filtered = collect();
|
||||
|
||||
foreach ($schedules as $day) {
|
||||
if ($day->date >= date('Y-m-d')) {
|
||||
$filtered->push($day);
|
||||
}
|
||||
}
|
||||
|
||||
return view('admin.inventory.booking',[ 'items' => $items, 'schedules' => $filtered]);
|
||||
}
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store($id,$periode,$niveau)
|
||||
{
|
||||
$schedule = Schedule::find($id);
|
||||
|
||||
$periode_item = 'n'.$niveau.'_p'.$periode.'_item';
|
||||
|
||||
if (isset($schedule->$periode_item)) {
|
||||
$array_items = explode("-",$schedule->$periode_item);
|
||||
array_push($array_items,request('add'));
|
||||
} else {
|
||||
$array_items = [];
|
||||
array_push($array_items,request('add'));
|
||||
}
|
||||
|
||||
$final_items = implode("-",$array_items);
|
||||
|
||||
$schedule->$periode_item = $final_items;
|
||||
|
||||
$schedule->save();
|
||||
|
||||
return redirect('/admin/inventory/'.$id.'/'.$periode.'/'.$niveau);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show($id,$periode,$niveau)
|
||||
{
|
||||
$schedule = Schedule::find($id);
|
||||
|
||||
$periode_item = 'n'.$niveau.'_p'.$periode.'_item';
|
||||
$items = collect();
|
||||
if (isset($schedule->$periode_item)) {
|
||||
$items_array = explode("-",$schedule->$periode_item);
|
||||
|
||||
foreach ($items_array as $item_array) {
|
||||
if ($item_array != "") {
|
||||
$items->push(Item::find($item_array));
|
||||
}
|
||||
}
|
||||
}
|
||||
return view('admin.inventory.show',['schedule' => $schedule, 'periode' => $periode, 'niveau' => $niveau, 'items' => $items, 'dispo_item' => $schedule->getInventory($periode)]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
if (!isset($schedule->data[$periode])) {
|
||||
dd('Null');
|
||||
} else {
|
||||
dd($schedule->data[$periode]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Request $request, $id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy($id,$periode,$niveau)
|
||||
{
|
||||
$schedule = Schedule::find($id);
|
||||
$remove = [request('remove')];
|
||||
$periode_item = 'n'.$niveau.'_p'.$periode.'_item';
|
||||
|
||||
if (isset($schedule->$periode_item)) {
|
||||
$array_items = explode("-",$schedule->$periode_item);
|
||||
$array_items = array_diff($array_items,$remove);
|
||||
} else {
|
||||
$array_items = [];
|
||||
$array_items = array_diff($array_items,$remove);
|
||||
}
|
||||
|
||||
$final_items = implode("-",$array_items);
|
||||
$schedule->$periode_item = $final_items;
|
||||
$schedule->save();
|
||||
|
||||
return redirect('/admin/inventory/'.$id.'/'.$periode.'/'.$niveau);
|
||||
}
|
||||
}
|
||||
103
app/Http/Controllers/ItemController.php
Normal file
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Item;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ItemController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return view('admin.item.add');
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
$item = new Item;
|
||||
|
||||
$item->name = request('name');
|
||||
$item->desc = request('desc');
|
||||
|
||||
$item->save();
|
||||
|
||||
return redirect('/admin/inventory');
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param \App\Item $item
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show(Item $item)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param \App\Item $item
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
$item = Item::find($id);
|
||||
|
||||
return view('admin.item.edit',['item' => $item]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \App\Item $item
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update($id)
|
||||
{
|
||||
$item = Item::find($id);
|
||||
|
||||
$item->name = request('name');
|
||||
$item->desc = request('desc');
|
||||
|
||||
$item->save();
|
||||
|
||||
return redirect('/admin/inventory');
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param \App\Item $item
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy()
|
||||
{
|
||||
$item = Item::find(request('id'));
|
||||
|
||||
$item->delete();
|
||||
}
|
||||
}
|
||||
@@ -30,7 +30,7 @@ class JobController extends Controller
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
return view('admin.job.add');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -41,7 +41,92 @@ class JobController extends Controller
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
//
|
||||
$job = new Job;
|
||||
|
||||
$job->name = request('name');
|
||||
$job->acces_level = request('acces_level');
|
||||
$job->desc = request('desc');
|
||||
|
||||
if (null !==(request('schedule_see'))) {
|
||||
$job->schedule_see = request('schedule_see');
|
||||
} else {
|
||||
$job->schedule_see = false;
|
||||
}
|
||||
|
||||
if (null !==(request('schedule_edit'))) {
|
||||
$job->schedule_edit = 1;
|
||||
} else {
|
||||
$job->schedule_edit = false;
|
||||
}
|
||||
if (null !==(request('schedule_notify'))) {
|
||||
$job->schedule_notify = 1;
|
||||
} else {
|
||||
$job->schedule_notify = false;
|
||||
}
|
||||
if (null !==(request('message_see'))) {
|
||||
$job->message_see = 1;
|
||||
} else {
|
||||
$job->message_see = false;
|
||||
}
|
||||
if (null !==(request('message_edit'))) {
|
||||
$job->message_edit = 1;
|
||||
} else {
|
||||
$job->message_edit = false;
|
||||
}
|
||||
if (null !==(request('message_notify'))) {
|
||||
$job->message_notify = 1;
|
||||
} else {
|
||||
$job->message_notify = false;
|
||||
}
|
||||
if (null !==(request('paper_edit'))) {
|
||||
$job->paper_edit = 1;
|
||||
} else {
|
||||
$job->paper_edit = false;
|
||||
}
|
||||
if (null !==(request('paper_publish'))) {
|
||||
$job->paper_publish = 1;
|
||||
} else {
|
||||
$job->paper_publish = false;
|
||||
}
|
||||
if (null !==(request('paper_notify'))) {
|
||||
$job->paper_notify = 1;
|
||||
} else {
|
||||
$job->paper_notify = false;
|
||||
}
|
||||
if (null !==(request('inventory_see'))) {
|
||||
$job->inventory_see = 1;
|
||||
} else {
|
||||
$job->inventory_see = false;
|
||||
}
|
||||
if (null !==(request('inventory_edit'))) {
|
||||
$job->inventory_edit = 1;
|
||||
} else {
|
||||
$job->inventory_edit = false;
|
||||
}
|
||||
if (null !==(request('inventory_notify'))) {
|
||||
$job->inventory_notify = 1;
|
||||
} else {
|
||||
$job->inventory_notify = false;
|
||||
}
|
||||
if (null !==(request('user_see'))) {
|
||||
$job->user_see = 1;
|
||||
} else {
|
||||
$job->user_see = false;
|
||||
}
|
||||
if (null !==(request('user_edit'))) {
|
||||
$job->user_edit = 1;
|
||||
} else {
|
||||
$job->user_edit = false;
|
||||
}
|
||||
if (null !==(request('user_notify'))) {
|
||||
$job->user_notify = 1;
|
||||
} else {
|
||||
$job->user_notify = false;
|
||||
}
|
||||
|
||||
$job->save();
|
||||
|
||||
return redirect('/admin/config/job/'.$job->id);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -50,9 +135,11 @@ class JobController extends Controller
|
||||
* @param \App\Job $job
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show(Job $job)
|
||||
public function show($id)
|
||||
{
|
||||
//
|
||||
$job = Job::find($id);
|
||||
|
||||
return view('admin.job.show', ['job' => $job]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -61,9 +148,11 @@ class JobController extends Controller
|
||||
* @param \App\Job $job
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit(Job $job)
|
||||
public function edit($id)
|
||||
{
|
||||
//
|
||||
$job = Job::find($id);
|
||||
|
||||
return view('admin.job.edit', ['job' => $job]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
87
app/Http/Controllers/LocalController.php
Normal file
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Local;
|
||||
|
||||
class LocalController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$locals = Local::all();
|
||||
|
||||
return view('admin.local.index',[ 'locals' => $locals]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Request $request, $id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -47,13 +47,13 @@ class UserController extends Controller
|
||||
$user->email = request('email');
|
||||
|
||||
if (request('adresse') == null) {
|
||||
$user->adress = "unknown";
|
||||
$user->adress = "Inconnu";
|
||||
} else {
|
||||
$user->adress = request('adresse');
|
||||
}
|
||||
|
||||
if (request('telephone') == null) {
|
||||
$user->telephone = "unknown";
|
||||
$user->telephone = "Inconnu";
|
||||
} else {
|
||||
$user->telephone = request('telephone');
|
||||
}
|
||||
@@ -61,14 +61,16 @@ class UserController extends Controller
|
||||
$user->sexe = request('sexe');
|
||||
|
||||
if (request('age') == null) {
|
||||
$user->age = "unknown";
|
||||
$user->age = "Inconnu";
|
||||
} else {
|
||||
$user->age = request('age');
|
||||
}
|
||||
|
||||
$user->avatar = rand(1,16);
|
||||
$user->rank = request('rank');
|
||||
$user->job = request('job');
|
||||
$user->password = bcrypt(request('psw'));
|
||||
$user->api_token = str_random(60);
|
||||
|
||||
$user->save();
|
||||
|
||||
@@ -94,7 +96,12 @@ class UserController extends Controller
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
//
|
||||
$jobs = \App\Job::all();
|
||||
$ranks = \App\Rank::all();
|
||||
|
||||
$user = \App\User::find($id);
|
||||
|
||||
return view('admin.user.edit', ['JobsList' => $jobs, 'RankList' => $ranks, 'user' => $user]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -104,9 +111,44 @@ class UserController extends Controller
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Request $request, $id)
|
||||
public function update(Request $request)
|
||||
{
|
||||
//
|
||||
$user = User::where('email', request('email'))->first();
|
||||
|
||||
$user->firstname = request('firstname');
|
||||
$user->lastname = request('lastname');
|
||||
$user->email = request('email');
|
||||
|
||||
if (request('adresse') == null) {
|
||||
$user->adress = "Inconnu";
|
||||
} else {
|
||||
$user->adress = request('adresse');
|
||||
}
|
||||
|
||||
if (request('telephone') == null) {
|
||||
$user->telephone = "Inconnu";
|
||||
} else {
|
||||
$user->telephone = request('telephone');
|
||||
}
|
||||
|
||||
$user->sexe = request('sexe');
|
||||
|
||||
if (request('age') == null) {
|
||||
$user->age = "Inconnu";
|
||||
} else {
|
||||
$user->age = request('age');
|
||||
}
|
||||
|
||||
$user->rank = request('rank');
|
||||
$user->job = request('job');
|
||||
if (request('psw') != null) {
|
||||
$user->password = bcrypt(request('psw'));
|
||||
}
|
||||
$user->api_token = str_random(60);
|
||||
|
||||
$user->save();
|
||||
|
||||
return redirect('/admin/user');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
10
app/Item.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Item extends Model
|
||||
{
|
||||
//
|
||||
}
|
||||
@@ -3,10 +3,55 @@
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Item;
|
||||
|
||||
class Schedule extends Model
|
||||
{
|
||||
protected $casts = [
|
||||
'data' => 'array',
|
||||
];
|
||||
|
||||
public function getInventory($periode)
|
||||
{
|
||||
$dispo = [];
|
||||
$used = [];
|
||||
$dispo_item = collect();
|
||||
|
||||
$string_periode = 'p'.$periode;
|
||||
|
||||
$inventory = Item::all();
|
||||
|
||||
foreach ($inventory as $item) {
|
||||
array_push($dispo, $item->id);
|
||||
}
|
||||
|
||||
$n1 = 'n1_'.$string_periode.'_item';
|
||||
$items_array = explode("-",$this->$n1);
|
||||
|
||||
foreach ($items_array as $item_array) {
|
||||
array_push($used,$item_array);
|
||||
}
|
||||
|
||||
$n2 = 'n2_'.$string_periode.'_item';
|
||||
$items_array = explode("-",$this->$n2);
|
||||
|
||||
foreach ($items_array as $item_array) {
|
||||
array_push($used,$item_array);
|
||||
}
|
||||
|
||||
$n3 = 'n3_'.$string_periode.'_item';
|
||||
$items_array = explode("-",$this->$n3);
|
||||
|
||||
foreach ($items_array as $item_array) {
|
||||
array_push($used,$item_array);
|
||||
}
|
||||
|
||||
$dispo = array_diff($dispo,$used);
|
||||
|
||||
foreach ($dispo as $key) {
|
||||
$dispo_item->push(Item::find($key));
|
||||
}
|
||||
|
||||
return $dispo_item;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,12 @@ class CreateSchedulesTable extends Migration
|
||||
$table->increments('id');
|
||||
$table->string('date');
|
||||
$table->string('type');
|
||||
$table->string('n1_p1_item')->default('');
|
||||
$table->string('n1_p2_item')->default('');
|
||||
$table->string('n2_p1_item')->default('');
|
||||
$table->string('n2_p2_item')->default('');
|
||||
$table->string('n3_p1_item')->default('');
|
||||
$table->string('n3_p2_item')->default('');
|
||||
$table->text('data');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -16,6 +16,7 @@ class CreateLocalsTable extends Migration
|
||||
Schema::create('locals', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('desc');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
33
database/migrations/2018_09_07_104706_create_items_table.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateItemsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('items', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('desc');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('items');
|
||||
}
|
||||
}
|
||||
4
public/assets/ecc/assets/css/font-awesome.min.css
vendored
Normal file
4653
public/assets/ecc/assets/css/main.css
vendored
Normal file
36
public/assets/ecc/assets/css/noscript.css
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
@import url(font-awesome.min.css);
|
||||
|
||||
/*
|
||||
Massively by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
*/
|
||||
|
||||
/* Wrapper */
|
||||
|
||||
#wrapper {
|
||||
background-color: #212931;
|
||||
background-image: url("../../images/overlay.png"), linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url("../../images/bg.jpg");
|
||||
background-size: auto, auto, 100% auto;
|
||||
background-position: center, center, top center;
|
||||
background-repeat: repeat, no-repeat, no-repeat;
|
||||
background-attachment: fixed, fixed, fixed;
|
||||
}
|
||||
|
||||
#wrapper.fade-in:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Intro */
|
||||
|
||||
body.is-preload #intro {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
body.is-preload #intro:not(.hidden) + #header + #nav {
|
||||
-moz-transform: none;
|
||||
-webkit-transform: none;
|
||||
-ms-transform: none;
|
||||
transform: none;
|
||||
opacity: 1;
|
||||
}
|
||||
BIN
public/assets/ecc/assets/fonts/FontAwesome.otf
Normal file
BIN
public/assets/ecc/assets/fonts/fontawesome-webfont.eot
Normal file
2671
public/assets/ecc/assets/fonts/fontawesome-webfont.svg
Normal file
|
After Width: | Height: | Size: 434 KiB |
BIN
public/assets/ecc/assets/fonts/fontawesome-webfont.ttf
Normal file
BIN
public/assets/ecc/assets/fonts/fontawesome-webfont.woff
Normal file
BIN
public/assets/ecc/assets/fonts/fontawesome-webfont.woff2
Normal file
2
public/assets/ecc/assets/js/breakpoints.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* breakpoints.js v1.0 | @ajlkn | MIT licensed */
|
||||
var breakpoints=function(){"use strict";function e(e){t.init(e)}var t={list:null,media:{},events:[],init:function(e){t.list=e,window.addEventListener("resize",t.poll),window.addEventListener("orientationchange",t.poll),window.addEventListener("load",t.poll),window.addEventListener("fullscreenchange",t.poll)},active:function(e){var n,a,s,i,r,d,c;if(!(e in t.media)){if(">="==e.substr(0,2)?(a="gte",n=e.substr(2)):"<="==e.substr(0,2)?(a="lte",n=e.substr(2)):">"==e.substr(0,1)?(a="gt",n=e.substr(1)):"<"==e.substr(0,1)?(a="lt",n=e.substr(1)):"!"==e.substr(0,1)?(a="not",n=e.substr(1)):(a="eq",n=e),n&&n in t.list)if(i=t.list[n],Array.isArray(i)){if(r=parseInt(i[0]),d=parseInt(i[1]),isNaN(r)){if(isNaN(d))return;c=i[1].substr(String(d).length)}else c=i[0].substr(String(r).length);if(isNaN(r))switch(a){case"gte":s="screen";break;case"lte":s="screen and (max-width: "+d+c+")";break;case"gt":s="screen and (min-width: "+(d+1)+c+")";break;case"lt":s="screen and (max-width: -1px)";break;case"not":s="screen and (min-width: "+(d+1)+c+")";break;default:s="screen and (max-width: "+d+c+")"}else if(isNaN(d))switch(a){case"gte":s="screen and (min-width: "+r+c+")";break;case"lte":s="screen";break;case"gt":s="screen and (max-width: -1px)";break;case"lt":s="screen and (max-width: "+(r-1)+c+")";break;case"not":s="screen and (max-width: "+(r-1)+c+")";break;default:s="screen and (min-width: "+r+c+")"}else switch(a){case"gte":s="screen and (min-width: "+r+c+")";break;case"lte":s="screen and (max-width: "+d+c+")";break;case"gt":s="screen and (min-width: "+(d+1)+c+")";break;case"lt":s="screen and (max-width: "+(r-1)+c+")";break;case"not":s="screen and (max-width: "+(r-1)+c+"), screen and (min-width: "+(d+1)+c+")";break;default:s="screen and (min-width: "+r+c+") and (max-width: "+d+c+")"}}else s="("==i.charAt(0)?"screen and "+i:i;t.media[e]=!!s&&s}return t.media[e]!==!1&&window.matchMedia(t.media[e]).matches},on:function(e,n){t.events.push({query:e,handler:n,state:!1}),t.active(e)&&n()},poll:function(){var e,n;for(e=0;e<t.events.length;e++)n=t.events[e],t.active(n.query)?n.state||(n.state=!0,n.handler()):n.state&&(n.state=!1)}};return e._=t,e.on=function(e,n){t.on(e,n)},e.active=function(e){return t.active(e)},e}();!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.breakpoints=t()}(this,function(){return breakpoints});
|
||||
2
public/assets/ecc/assets/js/browser.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* browser.js v1.0 | @ajlkn | MIT licensed */
|
||||
var browser=function(){"use strict";var e={name:null,version:null,os:null,osVersion:null,touch:null,mobile:null,_canUse:null,canUse:function(n){e._canUse||(e._canUse=document.createElement("div"));var o=e._canUse.style,r=n.charAt(0).toUpperCase()+n.slice(1);return n in o||"Moz"+r in o||"Webkit"+r in o||"O"+r in o||"ms"+r in o},init:function(){var n,o,r,i,t=navigator.userAgent;for(n="other",o=0,r=[["firefox",/Firefox\/([0-9\.]+)/],["bb",/BlackBerry.+Version\/([0-9\.]+)/],["bb",/BB[0-9]+.+Version\/([0-9\.]+)/],["opera",/OPR\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)/],["edge",/Edge\/([0-9\.]+)/],["safari",/Version\/([0-9\.]+).+Safari/],["chrome",/Chrome\/([0-9\.]+)/],["ie",/MSIE ([0-9]+)/],["ie",/Trident\/.+rv:([0-9]+)/]],i=0;i<r.length;i++)if(t.match(r[i][1])){n=r[i][0],o=parseFloat(RegExp.$1);break}for(e.name=n,e.version=o,n="other",o=0,r=[["ios",/([0-9_]+) like Mac OS X/,function(e){return e.replace("_",".").replace("_","")}],["ios",/CPU like Mac OS X/,function(e){return 0}],["wp",/Windows Phone ([0-9\.]+)/,null],["android",/Android ([0-9\.]+)/,null],["mac",/Macintosh.+Mac OS X ([0-9_]+)/,function(e){return e.replace("_",".").replace("_","")}],["windows",/Windows NT ([0-9\.]+)/,null],["bb",/BlackBerry.+Version\/([0-9\.]+)/,null],["bb",/BB[0-9]+.+Version\/([0-9\.]+)/,null],["linux",/Linux/,null],["bsd",/BSD/,null],["unix",/X11/,null]],i=0;i<r.length;i++)if(t.match(r[i][1])){n=r[i][0],o=parseFloat(r[i][2]?r[i][2](RegExp.$1):RegExp.$1);break}e.os=n,e.osVersion=o,e.touch="wp"==e.os?navigator.msMaxTouchPoints>0:!!("ontouchstart"in window),e.mobile="wp"==e.os||"android"==e.os||"ios"==e.os||"bb"==e.os}};return e.init(),e}();!function(e,n){"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?module.exports=n():e.browser=n()}(this,function(){return browser});
|
||||
2
public/assets/ecc/assets/js/jquery.min.js
vendored
Normal file
2
public/assets/ecc/assets/js/jquery.scrollex.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jquery.scrollex v0.2.1 | (c) @ajlkn | github.com/ajlkn/jquery.scrollex | MIT licensed */
|
||||
!function(t){function e(t,e,n){return"string"==typeof t&&("%"==t.slice(-1)?t=parseInt(t.substring(0,t.length-1))/100*e:"vh"==t.slice(-2)?t=parseInt(t.substring(0,t.length-2))/100*n:"px"==t.slice(-2)&&(t=parseInt(t.substring(0,t.length-2)))),t}var n=t(window),i=1,o={};n.on("scroll",function(){var e=n.scrollTop();t.map(o,function(t){window.clearTimeout(t.timeoutId),t.timeoutId=window.setTimeout(function(){t.handler(e)},t.options.delay)})}).on("load",function(){n.trigger("scroll")}),jQuery.fn.scrollex=function(l){var s=t(this);if(0==this.length)return s;if(this.length>1){for(var r=0;r<this.length;r++)t(this[r]).scrollex(l);return s}if(s.data("_scrollexId"))return s;var a,u,h,c,p;switch(a=i++,u=jQuery.extend({top:0,bottom:0,delay:0,mode:"default",enter:null,leave:null,initialize:null,terminate:null,scroll:null},l),u.mode){case"top":h=function(t,e,n,i,o){return t>=i&&o>=t};break;case"bottom":h=function(t,e,n,i,o){return n>=i&&o>=n};break;case"middle":h=function(t,e,n,i,o){return e>=i&&o>=e};break;case"top-only":h=function(t,e,n,i,o){return i>=t&&n>=i};break;case"bottom-only":h=function(t,e,n,i,o){return n>=o&&o>=t};break;default:case"default":h=function(t,e,n,i,o){return n>=i&&o>=t}}return c=function(t){var i,o,l,s,r,a,u=this.state,h=!1,c=this.$element.offset();i=n.height(),o=t+i/2,l=t+i,s=this.$element.outerHeight(),r=c.top+e(this.options.top,s,i),a=c.top+s-e(this.options.bottom,s,i),h=this.test(t,o,l,r,a),h!=u&&(this.state=h,h?this.options.enter&&this.options.enter.apply(this.element):this.options.leave&&this.options.leave.apply(this.element)),this.options.scroll&&this.options.scroll.apply(this.element,[(o-r)/(a-r)])},p={id:a,options:u,test:h,handler:c,state:null,element:this,$element:s,timeoutId:null},o[a]=p,s.data("_scrollexId",p.id),p.options.initialize&&p.options.initialize.apply(this),s},jQuery.fn.unscrollex=function(){var e=t(this);if(0==this.length)return e;if(this.length>1){for(var n=0;n<this.length;n++)t(this[n]).unscrollex();return e}var i,l;return(i=e.data("_scrollexId"))?(l=o[i],window.clearTimeout(l.timeoutId),delete o[i],e.removeData("_scrollexId"),l.options.terminate&&l.options.terminate.apply(this),e):e}}(jQuery);
|
||||
2
public/assets/ecc/assets/js/jquery.scrolly.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jquery.scrolly v1.0.0-dev | (c) @ajlkn | MIT licensed */
|
||||
(function(e){function u(s,o){var u,a,f;if((u=e(s))[t]==0)return n;a=u[i]()[r];switch(o.anchor){case"middle":f=a-(e(window).height()-u.outerHeight())/2;break;default:case r:f=Math.max(a,0)}return typeof o[i]=="function"?f-=o[i]():f-=o[i],f}var t="length",n=null,r="top",i="offset",s="click.scrolly",o=e(window);e.fn.scrolly=function(i){var o,a,f,l,c=e(this);if(this[t]==0)return c;if(this[t]>1){for(o=0;o<this[t];o++)e(this[o]).scrolly(i);return c}l=n,f=c.attr("href");if(f.charAt(0)!="#"||f[t]<2)return c;a=jQuery.extend({anchor:r,easing:"swing",offset:0,parent:e("body,html"),pollOnce:!1,speed:1e3},i),a.pollOnce&&(l=u(f,a)),c.off(s).on(s,function(e){var t=l!==n?l:u(f,a);t!==n&&(e.preventDefault(),a.parent.stop().animate({scrollTop:t},a.speed,a.easing))})}})(jQuery);
|
||||
258
public/assets/ecc/assets/js/main.js
vendored
Normal file
@@ -0,0 +1,258 @@
|
||||
/*
|
||||
Massively by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
var $window = $(window),
|
||||
$body = $('body'),
|
||||
$wrapper = $('#wrapper'),
|
||||
$header = $('#header'),
|
||||
$nav = $('#nav'),
|
||||
$main = $('#main'),
|
||||
$navPanelToggle, $navPanel, $navPanelInner;
|
||||
|
||||
// Breakpoints.
|
||||
breakpoints({
|
||||
default: ['1681px', null ],
|
||||
xlarge: ['1281px', '1680px' ],
|
||||
large: ['981px', '1280px' ],
|
||||
medium: ['737px', '980px' ],
|
||||
small: ['481px', '736px' ],
|
||||
xsmall: ['361px', '480px' ],
|
||||
xxsmall: [null, '360px' ]
|
||||
});
|
||||
|
||||
/**
|
||||
* Applies parallax scrolling to an element's background image.
|
||||
* @return {jQuery} jQuery object.
|
||||
*/
|
||||
$.fn._parallax = function(intensity) {
|
||||
|
||||
var $window = $(window),
|
||||
$this = $(this);
|
||||
|
||||
if (this.length == 0 || intensity === 0)
|
||||
return $this;
|
||||
|
||||
if (this.length > 1) {
|
||||
|
||||
for (var i=0; i < this.length; i++)
|
||||
$(this[i])._parallax(intensity);
|
||||
|
||||
return $this;
|
||||
|
||||
}
|
||||
|
||||
if (!intensity)
|
||||
intensity = 0.25;
|
||||
|
||||
$this.each(function() {
|
||||
|
||||
var $t = $(this),
|
||||
$bg = $('<div class="bg"></div>').appendTo($t),
|
||||
on, off;
|
||||
|
||||
on = function() {
|
||||
|
||||
$bg
|
||||
.removeClass('fixed')
|
||||
.css('transform', 'matrix(1,0,0,1,0,0)');
|
||||
|
||||
$window
|
||||
.on('scroll._parallax', function() {
|
||||
|
||||
var pos = parseInt($window.scrollTop()) - parseInt($t.position().top);
|
||||
|
||||
$bg.css('transform', 'matrix(1,0,0,1,0,' + (pos * intensity) + ')');
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
off = function() {
|
||||
|
||||
$bg
|
||||
.addClass('fixed')
|
||||
.css('transform', 'none');
|
||||
|
||||
$window
|
||||
.off('scroll._parallax');
|
||||
|
||||
};
|
||||
|
||||
// Disable parallax on ..
|
||||
if (browser.name == 'ie' // IE
|
||||
|| browser.name == 'edge' // Edge
|
||||
|| window.devicePixelRatio > 1 // Retina/HiDPI (= poor performance)
|
||||
|| browser.mobile) // Mobile devices
|
||||
off();
|
||||
|
||||
// Enable everywhere else.
|
||||
else {
|
||||
|
||||
breakpoints.on('>large', on);
|
||||
breakpoints.on('<=large', off);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$window
|
||||
.off('load._parallax resize._parallax')
|
||||
.on('load._parallax resize._parallax', function() {
|
||||
$window.trigger('scroll');
|
||||
});
|
||||
|
||||
return $(this);
|
||||
|
||||
};
|
||||
|
||||
// Play initial animations on page load.
|
||||
$window.on('load', function() {
|
||||
window.setTimeout(function() {
|
||||
$body.removeClass('is-preload');
|
||||
}, 100);
|
||||
});
|
||||
|
||||
// Scrolly.
|
||||
$('.scrolly').scrolly();
|
||||
|
||||
// Background.
|
||||
$wrapper._parallax(0.925);
|
||||
|
||||
// Nav Panel.
|
||||
|
||||
// Toggle.
|
||||
$navPanelToggle = $(
|
||||
'<a href="#navPanel" id="navPanelToggle">Menu</a>'
|
||||
)
|
||||
.appendTo($wrapper);
|
||||
|
||||
// Change toggle styling once we've scrolled past the header.
|
||||
$header.scrollex({
|
||||
bottom: '5vh',
|
||||
enter: function() {
|
||||
$navPanelToggle.removeClass('alt');
|
||||
},
|
||||
leave: function() {
|
||||
$navPanelToggle.addClass('alt');
|
||||
}
|
||||
});
|
||||
|
||||
// Panel.
|
||||
$navPanel = $(
|
||||
'<div id="navPanel">' +
|
||||
'<nav>' +
|
||||
'</nav>' +
|
||||
'<a href="#navPanel" class="close"></a>' +
|
||||
'</div>'
|
||||
)
|
||||
.appendTo($body)
|
||||
.panel({
|
||||
delay: 500,
|
||||
hideOnClick: true,
|
||||
hideOnSwipe: true,
|
||||
resetScroll: true,
|
||||
resetForms: true,
|
||||
side: 'right',
|
||||
target: $body,
|
||||
visibleClass: 'is-navPanel-visible'
|
||||
});
|
||||
|
||||
// Get inner.
|
||||
$navPanelInner = $navPanel.children('nav');
|
||||
|
||||
// Move nav content on breakpoint change.
|
||||
var $navContent = $nav.children();
|
||||
|
||||
breakpoints.on('>medium', function() {
|
||||
|
||||
// NavPanel -> Nav.
|
||||
$navContent.appendTo($nav);
|
||||
|
||||
// Flip icon classes.
|
||||
$nav.find('.icons, .icon')
|
||||
.removeClass('alt');
|
||||
|
||||
});
|
||||
|
||||
breakpoints.on('<=medium', function() {
|
||||
|
||||
// Nav -> NavPanel.
|
||||
$navContent.appendTo($navPanelInner);
|
||||
|
||||
// Flip icon classes.
|
||||
$navPanelInner.find('.icons, .icon')
|
||||
.addClass('alt');
|
||||
|
||||
});
|
||||
|
||||
// Hack: Disable transitions on WP.
|
||||
if (browser.os == 'wp'
|
||||
&& browser.osVersion < 10)
|
||||
$navPanel
|
||||
.css('transition', 'none');
|
||||
|
||||
// Intro.
|
||||
var $intro = $('#intro');
|
||||
|
||||
if ($intro.length > 0) {
|
||||
|
||||
// Hack: Fix flex min-height on IE.
|
||||
if (browser.name == 'ie') {
|
||||
$window.on('resize.ie-intro-fix', function() {
|
||||
|
||||
var h = $intro.height();
|
||||
|
||||
if (h > $window.height())
|
||||
$intro.css('height', 'auto');
|
||||
else
|
||||
$intro.css('height', h);
|
||||
|
||||
}).trigger('resize.ie-intro-fix');
|
||||
}
|
||||
|
||||
// Hide intro on scroll (> small).
|
||||
breakpoints.on('>small', function() {
|
||||
|
||||
$main.unscrollex();
|
||||
|
||||
$main.scrollex({
|
||||
mode: 'bottom',
|
||||
top: '25vh',
|
||||
bottom: '-50vh',
|
||||
enter: function() {
|
||||
$intro.addClass('hidden');
|
||||
},
|
||||
leave: function() {
|
||||
$intro.removeClass('hidden');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// Hide intro on scroll (<= small).
|
||||
breakpoints.on('<=small', function() {
|
||||
|
||||
$main.unscrollex();
|
||||
|
||||
$main.scrollex({
|
||||
mode: 'middle',
|
||||
top: '15vh',
|
||||
bottom: '-15vh',
|
||||
enter: function() {
|
||||
$intro.addClass('hidden');
|
||||
},
|
||||
leave: function() {
|
||||
$intro.removeClass('hidden');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
587
public/assets/ecc/assets/js/util.js
vendored
Normal file
@@ -0,0 +1,587 @@
|
||||
(function($) {
|
||||
|
||||
/**
|
||||
* Generate an indented list of links from a nav. Meant for use with panel().
|
||||
* @return {jQuery} jQuery object.
|
||||
*/
|
||||
$.fn.navList = function() {
|
||||
|
||||
var $this = $(this);
|
||||
$a = $this.find('a'),
|
||||
b = [];
|
||||
|
||||
$a.each(function() {
|
||||
|
||||
var $this = $(this),
|
||||
indent = Math.max(0, $this.parents('li').length - 1),
|
||||
href = $this.attr('href'),
|
||||
target = $this.attr('target');
|
||||
|
||||
b.push(
|
||||
'<a ' +
|
||||
'class="link depth-' + indent + '"' +
|
||||
( (typeof target !== 'undefined' && target != '') ? ' target="' + target + '"' : '') +
|
||||
( (typeof href !== 'undefined' && href != '') ? ' href="' + href + '"' : '') +
|
||||
'>' +
|
||||
'<span class="indent-' + indent + '"></span>' +
|
||||
$this.text() +
|
||||
'</a>'
|
||||
);
|
||||
|
||||
});
|
||||
|
||||
return b.join('');
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Panel-ify an element.
|
||||
* @param {object} userConfig User config.
|
||||
* @return {jQuery} jQuery object.
|
||||
*/
|
||||
$.fn.panel = function(userConfig) {
|
||||
|
||||
// No elements?
|
||||
if (this.length == 0)
|
||||
return $this;
|
||||
|
||||
// Multiple elements?
|
||||
if (this.length > 1) {
|
||||
|
||||
for (var i=0; i < this.length; i++)
|
||||
$(this[i]).panel(userConfig);
|
||||
|
||||
return $this;
|
||||
|
||||
}
|
||||
|
||||
// Vars.
|
||||
var $this = $(this),
|
||||
$body = $('body'),
|
||||
$window = $(window),
|
||||
id = $this.attr('id'),
|
||||
config;
|
||||
|
||||
// Config.
|
||||
config = $.extend({
|
||||
|
||||
// Delay.
|
||||
delay: 0,
|
||||
|
||||
// Hide panel on link click.
|
||||
hideOnClick: false,
|
||||
|
||||
// Hide panel on escape keypress.
|
||||
hideOnEscape: false,
|
||||
|
||||
// Hide panel on swipe.
|
||||
hideOnSwipe: false,
|
||||
|
||||
// Reset scroll position on hide.
|
||||
resetScroll: false,
|
||||
|
||||
// Reset forms on hide.
|
||||
resetForms: false,
|
||||
|
||||
// Side of viewport the panel will appear.
|
||||
side: null,
|
||||
|
||||
// Target element for "class".
|
||||
target: $this,
|
||||
|
||||
// Class to toggle.
|
||||
visibleClass: 'visible'
|
||||
|
||||
}, userConfig);
|
||||
|
||||
// Expand "target" if it's not a jQuery object already.
|
||||
if (typeof config.target != 'jQuery')
|
||||
config.target = $(config.target);
|
||||
|
||||
// Panel.
|
||||
|
||||
// Methods.
|
||||
$this._hide = function(event) {
|
||||
|
||||
// Already hidden? Bail.
|
||||
if (!config.target.hasClass(config.visibleClass))
|
||||
return;
|
||||
|
||||
// If an event was provided, cancel it.
|
||||
if (event) {
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
}
|
||||
|
||||
// Hide.
|
||||
config.target.removeClass(config.visibleClass);
|
||||
|
||||
// Post-hide stuff.
|
||||
window.setTimeout(function() {
|
||||
|
||||
// Reset scroll position.
|
||||
if (config.resetScroll)
|
||||
$this.scrollTop(0);
|
||||
|
||||
// Reset forms.
|
||||
if (config.resetForms)
|
||||
$this.find('form').each(function() {
|
||||
this.reset();
|
||||
});
|
||||
|
||||
}, config.delay);
|
||||
|
||||
};
|
||||
|
||||
// Vendor fixes.
|
||||
$this
|
||||
.css('-ms-overflow-style', '-ms-autohiding-scrollbar')
|
||||
.css('-webkit-overflow-scrolling', 'touch');
|
||||
|
||||
// Hide on click.
|
||||
if (config.hideOnClick) {
|
||||
|
||||
$this.find('a')
|
||||
.css('-webkit-tap-highlight-color', 'rgba(0,0,0,0)');
|
||||
|
||||
$this
|
||||
.on('click', 'a', function(event) {
|
||||
|
||||
var $a = $(this),
|
||||
href = $a.attr('href'),
|
||||
target = $a.attr('target');
|
||||
|
||||
if (!href || href == '#' || href == '' || href == '#' + id)
|
||||
return;
|
||||
|
||||
// Cancel original event.
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
// Hide panel.
|
||||
$this._hide();
|
||||
|
||||
// Redirect to href.
|
||||
window.setTimeout(function() {
|
||||
|
||||
if (target == '_blank')
|
||||
window.open(href);
|
||||
else
|
||||
window.location.href = href;
|
||||
|
||||
}, config.delay + 10);
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// Event: Touch stuff.
|
||||
$this.on('touchstart', function(event) {
|
||||
|
||||
$this.touchPosX = event.originalEvent.touches[0].pageX;
|
||||
$this.touchPosY = event.originalEvent.touches[0].pageY;
|
||||
|
||||
})
|
||||
|
||||
$this.on('touchmove', function(event) {
|
||||
|
||||
if ($this.touchPosX === null
|
||||
|| $this.touchPosY === null)
|
||||
return;
|
||||
|
||||
var diffX = $this.touchPosX - event.originalEvent.touches[0].pageX,
|
||||
diffY = $this.touchPosY - event.originalEvent.touches[0].pageY,
|
||||
th = $this.outerHeight(),
|
||||
ts = ($this.get(0).scrollHeight - $this.scrollTop());
|
||||
|
||||
// Hide on swipe?
|
||||
if (config.hideOnSwipe) {
|
||||
|
||||
var result = false,
|
||||
boundary = 20,
|
||||
delta = 50;
|
||||
|
||||
switch (config.side) {
|
||||
|
||||
case 'left':
|
||||
result = (diffY < boundary && diffY > (-1 * boundary)) && (diffX > delta);
|
||||
break;
|
||||
|
||||
case 'right':
|
||||
result = (diffY < boundary && diffY > (-1 * boundary)) && (diffX < (-1 * delta));
|
||||
break;
|
||||
|
||||
case 'top':
|
||||
result = (diffX < boundary && diffX > (-1 * boundary)) && (diffY > delta);
|
||||
break;
|
||||
|
||||
case 'bottom':
|
||||
result = (diffX < boundary && diffX > (-1 * boundary)) && (diffY < (-1 * delta));
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
if (result) {
|
||||
|
||||
$this.touchPosX = null;
|
||||
$this.touchPosY = null;
|
||||
$this._hide();
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Prevent vertical scrolling past the top or bottom.
|
||||
if (($this.scrollTop() < 0 && diffY < 0)
|
||||
|| (ts > (th - 2) && ts < (th + 2) && diffY > 0)) {
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// Event: Prevent certain events inside the panel from bubbling.
|
||||
$this.on('click touchend touchstart touchmove', function(event) {
|
||||
event.stopPropagation();
|
||||
});
|
||||
|
||||
// Event: Hide panel if a child anchor tag pointing to its ID is clicked.
|
||||
$this.on('click', 'a[href="#' + id + '"]', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
config.target.removeClass(config.visibleClass);
|
||||
|
||||
});
|
||||
|
||||
// Body.
|
||||
|
||||
// Event: Hide panel on body click/tap.
|
||||
$body.on('click touchend', function(event) {
|
||||
$this._hide(event);
|
||||
});
|
||||
|
||||
// Event: Toggle.
|
||||
$body.on('click', 'a[href="#' + id + '"]', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
config.target.toggleClass(config.visibleClass);
|
||||
|
||||
});
|
||||
|
||||
// Window.
|
||||
|
||||
// Event: Hide on ESC.
|
||||
if (config.hideOnEscape)
|
||||
$window.on('keydown', function(event) {
|
||||
|
||||
if (event.keyCode == 27)
|
||||
$this._hide(event);
|
||||
|
||||
});
|
||||
|
||||
return $this;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Apply "placeholder" attribute polyfill to one or more forms.
|
||||
* @return {jQuery} jQuery object.
|
||||
*/
|
||||
$.fn.placeholder = function() {
|
||||
|
||||
// Browser natively supports placeholders? Bail.
|
||||
if (typeof (document.createElement('input')).placeholder != 'undefined')
|
||||
return $(this);
|
||||
|
||||
// No elements?
|
||||
if (this.length == 0)
|
||||
return $this;
|
||||
|
||||
// Multiple elements?
|
||||
if (this.length > 1) {
|
||||
|
||||
for (var i=0; i < this.length; i++)
|
||||
$(this[i]).placeholder();
|
||||
|
||||
return $this;
|
||||
|
||||
}
|
||||
|
||||
// Vars.
|
||||
var $this = $(this);
|
||||
|
||||
// Text, TextArea.
|
||||
$this.find('input[type=text],textarea')
|
||||
.each(function() {
|
||||
|
||||
var i = $(this);
|
||||
|
||||
if (i.val() == ''
|
||||
|| i.val() == i.attr('placeholder'))
|
||||
i
|
||||
.addClass('polyfill-placeholder')
|
||||
.val(i.attr('placeholder'));
|
||||
|
||||
})
|
||||
.on('blur', function() {
|
||||
|
||||
var i = $(this);
|
||||
|
||||
if (i.attr('name').match(/-polyfill-field$/))
|
||||
return;
|
||||
|
||||
if (i.val() == '')
|
||||
i
|
||||
.addClass('polyfill-placeholder')
|
||||
.val(i.attr('placeholder'));
|
||||
|
||||
})
|
||||
.on('focus', function() {
|
||||
|
||||
var i = $(this);
|
||||
|
||||
if (i.attr('name').match(/-polyfill-field$/))
|
||||
return;
|
||||
|
||||
if (i.val() == i.attr('placeholder'))
|
||||
i
|
||||
.removeClass('polyfill-placeholder')
|
||||
.val('');
|
||||
|
||||
});
|
||||
|
||||
// Password.
|
||||
$this.find('input[type=password]')
|
||||
.each(function() {
|
||||
|
||||
var i = $(this);
|
||||
var x = $(
|
||||
$('<div>')
|
||||
.append(i.clone())
|
||||
.remove()
|
||||
.html()
|
||||
.replace(/type="password"/i, 'type="text"')
|
||||
.replace(/type=password/i, 'type=text')
|
||||
);
|
||||
|
||||
if (i.attr('id') != '')
|
||||
x.attr('id', i.attr('id') + '-polyfill-field');
|
||||
|
||||
if (i.attr('name') != '')
|
||||
x.attr('name', i.attr('name') + '-polyfill-field');
|
||||
|
||||
x.addClass('polyfill-placeholder')
|
||||
.val(x.attr('placeholder')).insertAfter(i);
|
||||
|
||||
if (i.val() == '')
|
||||
i.hide();
|
||||
else
|
||||
x.hide();
|
||||
|
||||
i
|
||||
.on('blur', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
var x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
|
||||
|
||||
if (i.val() == '') {
|
||||
|
||||
i.hide();
|
||||
x.show();
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
x
|
||||
.on('focus', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
var i = x.parent().find('input[name=' + x.attr('name').replace('-polyfill-field', '') + ']');
|
||||
|
||||
x.hide();
|
||||
|
||||
i
|
||||
.show()
|
||||
.focus();
|
||||
|
||||
})
|
||||
.on('keypress', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
x.val('');
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// Events.
|
||||
$this
|
||||
.on('submit', function() {
|
||||
|
||||
$this.find('input[type=text],input[type=password],textarea')
|
||||
.each(function(event) {
|
||||
|
||||
var i = $(this);
|
||||
|
||||
if (i.attr('name').match(/-polyfill-field$/))
|
||||
i.attr('name', '');
|
||||
|
||||
if (i.val() == i.attr('placeholder')) {
|
||||
|
||||
i.removeClass('polyfill-placeholder');
|
||||
i.val('');
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
})
|
||||
.on('reset', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
$this.find('select')
|
||||
.val($('option:first').val());
|
||||
|
||||
$this.find('input,textarea')
|
||||
.each(function() {
|
||||
|
||||
var i = $(this),
|
||||
x;
|
||||
|
||||
i.removeClass('polyfill-placeholder');
|
||||
|
||||
switch (this.type) {
|
||||
|
||||
case 'submit':
|
||||
case 'reset':
|
||||
break;
|
||||
|
||||
case 'password':
|
||||
i.val(i.attr('defaultValue'));
|
||||
|
||||
x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
|
||||
|
||||
if (i.val() == '') {
|
||||
i.hide();
|
||||
x.show();
|
||||
}
|
||||
else {
|
||||
i.show();
|
||||
x.hide();
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'checkbox':
|
||||
case 'radio':
|
||||
i.attr('checked', i.attr('defaultValue'));
|
||||
break;
|
||||
|
||||
case 'text':
|
||||
case 'textarea':
|
||||
i.val(i.attr('defaultValue'));
|
||||
|
||||
if (i.val() == '') {
|
||||
i.addClass('polyfill-placeholder');
|
||||
i.val(i.attr('placeholder'));
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
i.val(i.attr('defaultValue'));
|
||||
break;
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
return $this;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Moves elements to/from the first positions of their respective parents.
|
||||
* @param {jQuery} $elements Elements (or selector) to move.
|
||||
* @param {bool} condition If true, moves elements to the top. Otherwise, moves elements back to their original locations.
|
||||
*/
|
||||
$.prioritize = function($elements, condition) {
|
||||
|
||||
var key = '__prioritize';
|
||||
|
||||
// Expand $elements if it's not already a jQuery object.
|
||||
if (typeof $elements != 'jQuery')
|
||||
$elements = $($elements);
|
||||
|
||||
// Step through elements.
|
||||
$elements.each(function() {
|
||||
|
||||
var $e = $(this), $p,
|
||||
$parent = $e.parent();
|
||||
|
||||
// No parent? Bail.
|
||||
if ($parent.length == 0)
|
||||
return;
|
||||
|
||||
// Not moved? Move it.
|
||||
if (!$e.data(key)) {
|
||||
|
||||
// Condition is false? Bail.
|
||||
if (!condition)
|
||||
return;
|
||||
|
||||
// Get placeholder (which will serve as our point of reference for when this element needs to move back).
|
||||
$p = $e.prev();
|
||||
|
||||
// Couldn't find anything? Means this element's already at the top, so bail.
|
||||
if ($p.length == 0)
|
||||
return;
|
||||
|
||||
// Move element to top of parent.
|
||||
$e.prependTo($parent);
|
||||
|
||||
// Mark element as moved.
|
||||
$e.data(key, $p);
|
||||
|
||||
}
|
||||
|
||||
// Moved already?
|
||||
else {
|
||||
|
||||
// Condition is true? Bail.
|
||||
if (condition)
|
||||
return;
|
||||
|
||||
$p = $e.data(key);
|
||||
|
||||
// Move element back to its original location (using our placeholder).
|
||||
$e.insertAfter($p);
|
||||
|
||||
// Unmark element as moved.
|
||||
$e.removeData(key);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
48
public/assets/ecc/assets/sass/base/_page.scss
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Basic */
|
||||
|
||||
// MSIE: Required for IEMobile.
|
||||
@-ms-viewport {
|
||||
width: device-width;
|
||||
}
|
||||
|
||||
// MSIE: Prevents scrollbar from overlapping content.
|
||||
body {
|
||||
-ms-overflow-style: scrollbar;
|
||||
}
|
||||
|
||||
// Ensures page width is always >=320px.
|
||||
@include breakpoint('<=xsmall') {
|
||||
html, body {
|
||||
min-width: 320px;
|
||||
}
|
||||
}
|
||||
|
||||
// Set box model to border-box.
|
||||
// Based on css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
*, *:before, *:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
body {
|
||||
|
||||
background-color: _palette(invert, bg);
|
||||
|
||||
// Stops initial animations until page loads.
|
||||
&.is-preload {
|
||||
*, *:before, *:after {
|
||||
@include vendor('animation', 'none !important');
|
||||
@include vendor('transition', 'none !important');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
76
public/assets/ecc/assets/sass/base/_reset.scss
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
// Reset.
|
||||
// Based on meyerweb.com/eric/tools/css/reset (v2.0 | 20110126 | License: public domain)
|
||||
|
||||
html, body, div, span, applet, object,
|
||||
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
|
||||
pre, a, abbr, acronym, address, big, cite,
|
||||
code, del, dfn, em, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var, b,
|
||||
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
|
||||
form, label, legend, table, caption, tbody,
|
||||
tfoot, thead, tr, th, td, article, aside,
|
||||
canvas, details, embed, figure, figcaption,
|
||||
footer, header, hgroup, menu, nav, output, ruby,
|
||||
section, summary, time, mark, audio, video {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
article, aside, details, figcaption, figure,
|
||||
footer, header, hgroup, menu, nav, section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
ol, ul {
|
||||
list-style:none;
|
||||
}
|
||||
|
||||
blockquote, q {
|
||||
quotes: none;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
-webkit-text-size-adjust: none;
|
||||
}
|
||||
|
||||
mark {
|
||||
background-color: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
input, select, textarea {
|
||||
-moz-appearance: none;
|
||||
-webkit-appearance: none;
|
||||
-ms-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
213
public/assets/ecc/assets/sass/base/_typography.scss
vendored
Normal file
@@ -0,0 +1,213 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Type */
|
||||
|
||||
html {
|
||||
font-size: 16pt;
|
||||
|
||||
@include breakpoint('<=xlarge') {
|
||||
font-size: 12pt;
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
font-size: 11pt;
|
||||
}
|
||||
|
||||
@include breakpoint('<=xxsmall') {
|
||||
font-size: 10pt;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
color: _palette(fg);
|
||||
}
|
||||
|
||||
body, input, select, textarea {
|
||||
font-family: _font(family);
|
||||
font-weight: _font(weight);
|
||||
font-size: 1rem;
|
||||
line-height: 2.375;
|
||||
}
|
||||
|
||||
a {
|
||||
@include vendor('transition', (
|
||||
'color #{_duration(transition)} ease-in-out',
|
||||
'background-color #{_duration(transition)} ease-in-out',
|
||||
'border-color #{_duration(transition)} ease-in-out',
|
||||
'box-shadow #{_duration(transition)} ease-in-out'
|
||||
));
|
||||
border-bottom: dotted 1px;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
strong, b {
|
||||
font-weight: _font(weight-bold);
|
||||
}
|
||||
|
||||
em, i {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
p {
|
||||
text-align: justify;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: _font(family-heading);
|
||||
font-weight: _font(weight-heading);
|
||||
line-height: 1.5;
|
||||
letter-spacing: 0.075em;
|
||||
text-transform: uppercase;
|
||||
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
||||
|
||||
a {
|
||||
border-bottom: 0;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 4rem;
|
||||
line-height: 1.1;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.75rem;
|
||||
line-height: 1.3;
|
||||
margin: 0 0 (_size(element-margin) * 0.75) 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.25rem;
|
||||
margin: 0 0 (_size(element-margin) * 0.75) 0;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
sub {
|
||||
font-size: 0.8rem;
|
||||
position: relative;
|
||||
top: 0.5rem;
|
||||
}
|
||||
|
||||
sup {
|
||||
font-size: 0.8rem;
|
||||
position: relative;
|
||||
top: -0.5rem;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: solid 4px;
|
||||
font-style: italic;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
padding: (_size(element-margin) / 4) 0 (_size(element-margin) / 4) _size(element-margin);
|
||||
}
|
||||
|
||||
code {
|
||||
border-radius: _size(border-radius);
|
||||
border: solid 2px;
|
||||
font-family: _font(family-fixed);
|
||||
font-size: 0.9rem;
|
||||
margin: 0 0.25rem;
|
||||
padding: 0.25rem 0.65rem;
|
||||
}
|
||||
|
||||
pre {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
font-family: _font(family-fixed);
|
||||
font-size: 0.9rem;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
|
||||
code {
|
||||
display: block;
|
||||
line-height: 1.75;
|
||||
padding: 1rem 1.5rem;
|
||||
overflow-x: auto;
|
||||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
border-bottom: solid 2px;
|
||||
margin: (_size(element-margin) * 1.5) 0;
|
||||
|
||||
&.major {
|
||||
margin: (_size(element-margin) * 2.5) 0;
|
||||
}
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.align-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.align-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@mixin color-typography($p: null) {
|
||||
@if $p != null {
|
||||
color: _palette($p, fg);
|
||||
}
|
||||
|
||||
input, select, textarea {
|
||||
color: _palette($p, fg-bold);
|
||||
}
|
||||
|
||||
a {
|
||||
color: _palette($p, fg-bold);
|
||||
border-bottom-color: transparentize(_palette($p, fg), 0.5);
|
||||
|
||||
&:hover {
|
||||
border-bottom-color: transparent;
|
||||
color: _palette($p, accent) !important;
|
||||
}
|
||||
}
|
||||
|
||||
strong, b {
|
||||
color: _palette($p, fg-bold);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
color: _palette($p, fg-bold);
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left-color: _palette($p, border);
|
||||
}
|
||||
|
||||
code {
|
||||
background: _palette($p, border-bg);
|
||||
border-color: _palette($p, border);
|
||||
}
|
||||
|
||||
hr {
|
||||
border-bottom-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
|
||||
@include color-typography;
|
||||
101
public/assets/ecc/assets/sass/components/_actions.scss
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Actions */
|
||||
|
||||
ul.actions {
|
||||
@include vendor('display', 'flex');
|
||||
cursor: default;
|
||||
list-style: none;
|
||||
margin-left: (_size(element-margin) * -0.5);
|
||||
padding-left: 0;
|
||||
|
||||
li {
|
||||
padding: 0 0 0 (_size(element-margin) * 0.5);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&.special {
|
||||
@include vendor('justify-content', 'center');
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
|
||||
li {
|
||||
&:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.stacked {
|
||||
@include vendor('flex-direction', 'column');
|
||||
margin-left: 0;
|
||||
|
||||
li {
|
||||
padding: (_size(element-margin) * 0.65) 0 0 0;
|
||||
|
||||
&:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.fit {
|
||||
width: calc(100% + #{_size(element-margin) * 0.5});
|
||||
|
||||
li {
|
||||
@include vendor('flex-grow', '1');
|
||||
@include vendor('flex-shrink', '1');
|
||||
width: 100%;
|
||||
|
||||
> * {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.stacked {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
&:not(.fixed) {
|
||||
@include vendor('flex-direction', 'column');
|
||||
margin-left: 0;
|
||||
width: 100% !important;
|
||||
|
||||
li {
|
||||
@include vendor('flex-grow', '1');
|
||||
@include vendor('flex-shrink', '1');
|
||||
padding: (_size(element-margin) * 0.5) 0 0 0;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
|
||||
> * {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="button"],
|
||||
button,
|
||||
.button {
|
||||
width: 100%;
|
||||
|
||||
&.icon {
|
||||
&:before {
|
||||
margin-left: -0.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
34
public/assets/ecc/assets/sass/components/_box.scss
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Box */
|
||||
|
||||
.box {
|
||||
border-radius: _size(border-radius);
|
||||
border: solid 2px;
|
||||
margin-bottom: _size(element-margin);
|
||||
padding: 1.5rem;
|
||||
|
||||
> :last-child,
|
||||
> :last-child > :last-child,
|
||||
> :last-child > :last-child > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&.alt {
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-box($p: null) {
|
||||
.box {
|
||||
border-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
|
||||
@include color-box;
|
||||
134
public/assets/ecc/assets/sass/components/_button.scss
vendored
Normal file
@@ -0,0 +1,134 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Button */
|
||||
|
||||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="button"],
|
||||
button,
|
||||
.button {
|
||||
@include vendor('appearance', 'none');
|
||||
@include vendor('transition', (
|
||||
'background-color #{_duration(transition)} ease-in-out',
|
||||
'box-shadow #{_duration(transition)} ease-in-out',
|
||||
'color #{_duration(transition)} ease-in-out'
|
||||
));
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-family: _font(family-heading);
|
||||
font-size: 0.8rem;
|
||||
font-weight: _font(weight-heading);
|
||||
letter-spacing: 0.075em;
|
||||
height: 3rem;
|
||||
line-height: 3rem;
|
||||
padding: 0 2rem;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
|
||||
&.icon {
|
||||
&:before {
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
&.solo {
|
||||
position: relative;
|
||||
width: 4rem;
|
||||
height: 4rem;
|
||||
line-height: 4rem;
|
||||
border-radius: 4rem;
|
||||
text-indent: 4rem;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
white-space: nowrap;
|
||||
|
||||
&:before {
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
line-height: inherit;
|
||||
font-size: 1.25rem;
|
||||
margin-right: 0;
|
||||
text-align: center;
|
||||
text-indent: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.fit {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&.small {
|
||||
font-size: 0.7rem;
|
||||
height: 2.5rem;
|
||||
line-height: 2.5rem;
|
||||
padding: 0 1.5rem;
|
||||
}
|
||||
|
||||
&.large {
|
||||
font-size: 0.9rem;
|
||||
height: 3.5rem;
|
||||
line-height: 3.5rem;
|
||||
padding: 0 2.75rem;
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
font-size: 0.9rem;
|
||||
height: 3.25rem;
|
||||
line-height: 3.25rem;
|
||||
|
||||
&.large {
|
||||
font-size: 1rem;
|
||||
height: 3.75rem;
|
||||
line-height: 3.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&:disabled {
|
||||
@include vendor('pointer-events', 'none');
|
||||
opacity: 0.25;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-button($p: null) {
|
||||
$highlight: _palette($p, highlight);
|
||||
|
||||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="button"],
|
||||
button,
|
||||
.button {
|
||||
background-color: transparent;
|
||||
box-shadow: inset 0 0 0 2px _palette($p, fg-bold);
|
||||
color: _palette($p, fg-bold) !important;
|
||||
|
||||
&:hover {
|
||||
box-shadow: inset 0 0 0 2px _palette($p, accent);
|
||||
color: _palette($p, accent) !important;
|
||||
}
|
||||
|
||||
&.primary {
|
||||
background-color: _palette($p, fg-bold);
|
||||
box-shadow: none;
|
||||
color: _palette($p, bg) !important;
|
||||
|
||||
&:hover {
|
||||
background-color: _palette($p, accent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-button;
|
||||
292
public/assets/ecc/assets/sass/components/_form.scss
vendored
Normal file
@@ -0,0 +1,292 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Form */
|
||||
|
||||
form {
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
> .fields {
|
||||
$gutter: (_size(element-margin) * 0.75);
|
||||
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-wrap', 'wrap');
|
||||
width: calc(100% + #{$gutter * 2});
|
||||
margin: ($gutter * -1) 0 _size(element-margin) ($gutter * -1);
|
||||
|
||||
> .field {
|
||||
@include vendor('flex-grow', '0');
|
||||
@include vendor('flex-shrink', '0');
|
||||
padding: $gutter 0 0 $gutter;
|
||||
width: calc(100% - #{$gutter * 1});
|
||||
|
||||
&.half {
|
||||
width: calc(50% - #{$gutter * 0.5});
|
||||
}
|
||||
|
||||
&.third {
|
||||
width: calc(#{100% / 3} - #{$gutter * (1 / 3)});
|
||||
}
|
||||
|
||||
&.quarter {
|
||||
width: calc(25% - #{$gutter * 0.25});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
> .fields {
|
||||
$gutter: (_size(element-margin) * 0.75);
|
||||
|
||||
width: calc(100% + #{$gutter * 2});
|
||||
margin: ($gutter * -1) 0 _size(element-margin) ($gutter * -1);
|
||||
|
||||
> .field {
|
||||
padding: $gutter 0 0 $gutter;
|
||||
width: calc(100% - #{$gutter * 1});
|
||||
|
||||
&.half {
|
||||
width: calc(100% - #{$gutter * 1});
|
||||
}
|
||||
|
||||
&.third {
|
||||
width: calc(100% - #{$gutter * 1});
|
||||
}
|
||||
|
||||
&.quarter {
|
||||
width: calc(100% - #{$gutter * 1});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
font-family: _font(family-heading);
|
||||
font-weight: _font(weight-heading);
|
||||
line-height: 1.5;
|
||||
letter-spacing: 0.075em;
|
||||
font-size: 0.8rem;
|
||||
text-transform: uppercase;
|
||||
margin: 0 0 (_size(element-margin) * 0.375) 0;
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="email"],
|
||||
select,
|
||||
textarea {
|
||||
@include vendor('appearance', 'none');
|
||||
background: transparent;
|
||||
border-radius: 0;
|
||||
border: solid 2px;
|
||||
color: inherit;
|
||||
display: block;
|
||||
outline: 0;
|
||||
padding: 0 1rem;
|
||||
text-decoration: none;
|
||||
width: 100%;
|
||||
|
||||
&:invalid {
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
background-size: 1.25rem;
|
||||
background-repeat: no-repeat;
|
||||
background-position: calc(100% - 1rem) center;
|
||||
height: _size(element-height);
|
||||
padding-right: _size(element-height);
|
||||
text-overflow: ellipsis;
|
||||
|
||||
&:focus {
|
||||
&::-ms-value {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
&::-ms-expand {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="email"],
|
||||
select {
|
||||
height: _size(element-height);
|
||||
}
|
||||
|
||||
textarea {
|
||||
padding: 0.75rem 1rem;
|
||||
}
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"], {
|
||||
@include vendor('appearance', 'none');
|
||||
display: block;
|
||||
float: left;
|
||||
margin-right: -2rem;
|
||||
opacity: 0;
|
||||
width: 1rem;
|
||||
z-index: -1;
|
||||
|
||||
& + label {
|
||||
@include icon;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 1rem;
|
||||
letter-spacing: 0;
|
||||
font-family: _font(family);
|
||||
text-transform: none;
|
||||
font-weight: _font(weight);
|
||||
padding-left: (_size(element-height) * 0.6) + 1rem;
|
||||
padding-right: 1rem;
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
border-radius: 0;
|
||||
border: solid 2px;
|
||||
content: '';
|
||||
display: inline-block;
|
||||
height: (_size(element-height) * 0.6);
|
||||
left: 0;
|
||||
line-height: (_size(element-height) * 0.575);
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
top: -0.125rem;
|
||||
width: (_size(element-height) * 0.6);
|
||||
}
|
||||
}
|
||||
|
||||
&:checked + label {
|
||||
&:before {
|
||||
content: '\f00c';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
& + label {
|
||||
&:before {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
input[type="radio"] {
|
||||
& + label {
|
||||
&:before {
|
||||
border-radius: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
::-webkit-input-placeholder {
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
:-moz-placeholder {
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
::-moz-placeholder {
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
:-ms-input-placeholder {
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
@mixin color-form($p: null) {
|
||||
label {
|
||||
color: _palette($p, fg-bold);
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="email"],
|
||||
select,
|
||||
textarea {
|
||||
border-color: _palette($p, border);
|
||||
|
||||
&:focus {
|
||||
border-color: _palette($p, accent);
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
background-image: svg-url("<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'><path d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='#{_palette($p, border)}' /></svg>");
|
||||
|
||||
option {
|
||||
background-color: _palette($p, bg);
|
||||
color: _palette($p, fg);
|
||||
}
|
||||
}
|
||||
|
||||
.select-wrapper {
|
||||
&:before {
|
||||
color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"], {
|
||||
& + label {
|
||||
color: _palette($p, fg);
|
||||
|
||||
&:before {
|
||||
border-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
|
||||
&:checked + label {
|
||||
&:before {
|
||||
background-color: _palette($p, fg-bold);
|
||||
border-color: _palette($p, fg-bold);
|
||||
color: _palette($p, bg);
|
||||
}
|
||||
}
|
||||
|
||||
&:focus + label {
|
||||
&:before {
|
||||
border-color: _palette($p, accent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
::-webkit-input-placeholder {
|
||||
color: _palette($p, fg-light) !important;
|
||||
}
|
||||
|
||||
:-moz-placeholder {
|
||||
color: _palette($p, fg-light) !important;
|
||||
}
|
||||
|
||||
::-moz-placeholder {
|
||||
color: _palette($p, fg-light) !important;
|
||||
}
|
||||
|
||||
:-ms-input-placeholder {
|
||||
color: _palette($p, fg-light) !important;
|
||||
}
|
||||
|
||||
.formerize-placeholder {
|
||||
color: _palette($p, fg-light) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@include color-form;
|
||||
17
public/assets/ecc/assets/sass/components/_icon.scss
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Icon */
|
||||
|
||||
.icon {
|
||||
@include icon;
|
||||
border-bottom: none;
|
||||
position: relative;
|
||||
|
||||
> .label {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
52
public/assets/ecc/assets/sass/components/_icons.scss
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Icons */
|
||||
|
||||
ul.icons {
|
||||
cursor: default;
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
padding: 0 0.5rem 0 0;
|
||||
vertical-align: middle;
|
||||
|
||||
&:last-child {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.icon {
|
||||
&:before {
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
line-height: 2.25rem;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
border-radius: 100%;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.alt {
|
||||
li {
|
||||
.icon {
|
||||
&:before {
|
||||
@include vendor('transition', (
|
||||
'color #{_duration(transition)} ease-in-out',
|
||||
'background-color #{_duration(transition)} ease-in-out',
|
||||
'border-color #{_duration(transition)} ease-in-out',
|
||||
'box-shadow #{_duration(transition)} ease-in-out'
|
||||
));
|
||||
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
92
public/assets/ecc/assets/sass/components/_image.scss
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Image */
|
||||
|
||||
.image {
|
||||
border: 0;
|
||||
border-radius: _size(border-radius);
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
|
||||
img {
|
||||
border-radius: _size(border-radius);
|
||||
display: block;
|
||||
}
|
||||
|
||||
&.left,
|
||||
&.right {
|
||||
max-width: 40%;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.left {
|
||||
float: left;
|
||||
margin: 0 2rem 2rem 0;
|
||||
top: 0.75rem;
|
||||
}
|
||||
|
||||
&.right {
|
||||
float: right;
|
||||
margin: 0 0 2rem 2rem;
|
||||
top: 0.75rem;
|
||||
}
|
||||
|
||||
&.fit {
|
||||
display: block;
|
||||
margin: (_size(element-margin) * 1.25) 0;
|
||||
width: 100%;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.main {
|
||||
display: block;
|
||||
margin: (_size(element-margin) * 2) 0;
|
||||
width: 100%;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
&.fit {
|
||||
margin: _size(element-margin) 0;
|
||||
}
|
||||
|
||||
&.main {
|
||||
margin: _size(element-margin) 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a.image {
|
||||
overflow: hidden;
|
||||
|
||||
img {
|
||||
@include vendor('transition', 'transform #{_duration(transition)} ease-out');
|
||||
}
|
||||
|
||||
&:hover {
|
||||
img {
|
||||
@include vendor('transform', 'scale(1.05)');
|
||||
}
|
||||
}
|
||||
}
|
||||
98
public/assets/ecc/assets/sass/components/_list.scss
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* List */
|
||||
|
||||
ol {
|
||||
list-style: decimal;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
padding-left: 1.25rem;
|
||||
|
||||
li {
|
||||
padding-left: 0.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: disc;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
padding-left: 1rem;
|
||||
|
||||
li {
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
|
||||
&.divided {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
|
||||
li {
|
||||
border-top: solid 1px;
|
||||
padding: 0.5rem 0;
|
||||
|
||||
&:first-child {
|
||||
border-top: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dl {
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
|
||||
dt {
|
||||
display: block;
|
||||
font-weight: _font(weight-bold);
|
||||
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin-left: _size(element-margin);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-list($p: null) {
|
||||
ul {
|
||||
&.divided {
|
||||
li {
|
||||
border-top-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
|
||||
&.icons {
|
||||
li {
|
||||
a.icon {
|
||||
&:hover {
|
||||
&:before {
|
||||
color: _palette($p, accent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.alt {
|
||||
li {
|
||||
.icon {
|
||||
&:before {
|
||||
box-shadow: inset 0 0 0 2px _palette($p, border);
|
||||
}
|
||||
}
|
||||
|
||||
a.icon {
|
||||
&:hover {
|
||||
&:before {
|
||||
box-shadow: inset 0 0 0 2px _palette($p, accent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-list;
|
||||
110
public/assets/ecc/assets/sass/components/_pagination.scss
vendored
Normal file
@@ -0,0 +1,110 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Pagination */
|
||||
|
||||
.pagination {
|
||||
@include vendor('display', 'inline-flex');
|
||||
@include vendor('user-select', 'none');
|
||||
cursor: default;
|
||||
list-style: none;
|
||||
margin: 0 0 _size(element-margin) 2px;
|
||||
padding: 0;
|
||||
|
||||
a, span {
|
||||
@include vendor('transition', (
|
||||
'background-color #{_duration(transition)} ease-in-out',
|
||||
'border-color #{_duration(transition)} ease-in-out',
|
||||
'box-shadow #{_duration(transition)} ease-in-out',
|
||||
'color #{_duration(transition)} ease-in-out'
|
||||
));
|
||||
border: solid 2px;
|
||||
display: inline-block;
|
||||
font-family: _font(family-heading);
|
||||
font-size: 0.8rem;
|
||||
font-weight: _font(weight-heading);
|
||||
height: _size(element-height);
|
||||
letter-spacing: 0.075em;
|
||||
letter-spacing: _font(letter-spacing-heading);
|
||||
line-height: calc(#{_size(element-height)} - 4px);
|
||||
margin-left: -2px;
|
||||
min-width: _size(element-height);
|
||||
position: relative;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.next, .previous {
|
||||
@include icon;
|
||||
padding: 0 1.75rem;
|
||||
|
||||
&:before {
|
||||
display: inline-block;
|
||||
color: inherit !important;
|
||||
}
|
||||
}
|
||||
|
||||
.previous {
|
||||
&:before {
|
||||
content: '\f104';
|
||||
margin-right: (0.75em / 0.8);
|
||||
}
|
||||
}
|
||||
|
||||
.next {
|
||||
&:before {
|
||||
content: '\f105';
|
||||
float: right;
|
||||
margin-left: (0.75em / 0.8);
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
a, span {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
.page, .extra {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-pagination($p: null) {
|
||||
.pagination {
|
||||
a, span {
|
||||
border-color: _palette($p, border);
|
||||
}
|
||||
|
||||
a {
|
||||
color: _palette($p, fg-bold) !important;
|
||||
|
||||
&:hover {
|
||||
color: _palette($p, accent) !important;
|
||||
border-color: _palette($p, accent);
|
||||
z-index: 1;
|
||||
|
||||
& + a,
|
||||
& + span {
|
||||
border-left-color: _palette($p, accent);
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
background-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-pagination;
|
||||
35
public/assets/ecc/assets/sass/components/_row.scss
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Row */
|
||||
|
||||
.row {
|
||||
@include html-grid(1.5rem);
|
||||
|
||||
@include breakpoint('<=xlarge') {
|
||||
@include html-grid(1.5rem, 'xlarge');
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
@include html-grid(1.5rem, 'large');
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
@include html-grid(1.5rem, 'medium');
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
@include html-grid(1.5rem, 'small');
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
@include html-grid(1.5rem, 'xsmall');
|
||||
}
|
||||
|
||||
@include breakpoint('<=xxsmall') {
|
||||
@include html-grid(1.5rem, 'xxsmall');
|
||||
}
|
||||
}
|
||||
112
public/assets/ecc/assets/sass/components/_section.scss
vendored
Normal file
@@ -0,0 +1,112 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Section/Article */
|
||||
|
||||
section, article {
|
||||
&.special {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
header {
|
||||
cursor: default;
|
||||
|
||||
> .date {
|
||||
display: block;
|
||||
font-size: 0.8rem;
|
||||
height: 1;
|
||||
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
> p {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
> h1 + p {
|
||||
font-size: 1.1rem;
|
||||
margin-top: -0.5rem;
|
||||
line-height: 2;
|
||||
}
|
||||
|
||||
> h2 + p {
|
||||
font-size: 1rem;
|
||||
margin-top: -0.75rem;
|
||||
}
|
||||
|
||||
> h3 + p {
|
||||
font-size: 0.9rem;
|
||||
margin-top: -0.75rem;
|
||||
}
|
||||
|
||||
> h4 + p {
|
||||
font-size: 0.8rem;
|
||||
margin-top: -0.75rem;
|
||||
}
|
||||
|
||||
&.major {
|
||||
margin: 0 0 (_size(element-margin) * 2) 0;
|
||||
text-align: center;
|
||||
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
> p {
|
||||
margin-top: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
> .date {
|
||||
font-size: 1rem;
|
||||
margin: 0 0 (_size(element-margin) * 2) 0;
|
||||
|
||||
&:before, &:after {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: calc(50% - 6rem);
|
||||
border-top: solid 2px;
|
||||
}
|
||||
|
||||
&:before {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
&:after {
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
br {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
&.major {
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-section($p: null) {
|
||||
header {
|
||||
&.major {
|
||||
.date {
|
||||
&:before, &:after {
|
||||
border-top-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-section;
|
||||
122
public/assets/ecc/assets/sass/components/_table.scss
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Table */
|
||||
|
||||
.table-wrapper {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
table {
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
width: 100%;
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
border: solid 1px;
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 0.75rem 0.75rem;
|
||||
}
|
||||
|
||||
th {
|
||||
font-family: _font(family-heading);
|
||||
font-size: 0.8rem;
|
||||
font-weight: _font(weight-heading);
|
||||
letter-spacing: 0.075em;
|
||||
line-height: 1.5;
|
||||
padding: 0 0.75rem 0.75rem 0.75rem;
|
||||
text-align: left;
|
||||
text-transform: uppercase;
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
thead {
|
||||
border-bottom: solid 2px;
|
||||
}
|
||||
|
||||
tfoot {
|
||||
border-top: solid 2px;
|
||||
}
|
||||
|
||||
&.alt {
|
||||
border-collapse: separate;
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
td {
|
||||
border: solid 1px;
|
||||
border-left-width: 0;
|
||||
border-top-width: 0;
|
||||
|
||||
&:first-child {
|
||||
border-left-width: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
td {
|
||||
border-top-width: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
thead {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
tfoot {
|
||||
border-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-table($p: null) {
|
||||
table {
|
||||
tbody {
|
||||
tr {
|
||||
border-color: _palette($p, border);
|
||||
|
||||
&:nth-child(2n + 1) {
|
||||
background-color: _palette($p, border-bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
th {
|
||||
color: _palette($p, fg-bold);
|
||||
}
|
||||
|
||||
thead {
|
||||
border-bottom-color: _palette($p, border);
|
||||
}
|
||||
|
||||
tfoot {
|
||||
border-top-color: _palette($p, border);
|
||||
}
|
||||
|
||||
&.alt {
|
||||
tbody {
|
||||
tr {
|
||||
td {
|
||||
border-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-table;
|
||||
243
public/assets/ecc/assets/sass/layout/_footer.scss
vendored
Normal file
@@ -0,0 +1,243 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Footer */
|
||||
|
||||
#footer {
|
||||
@include color(alt);
|
||||
@include vendor('display', 'flex');
|
||||
background-color: _palette(alt, bg);
|
||||
color: _palette(fg-light);
|
||||
cursor: default;
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
width: calc(100% - #{_size(padding) * 2});
|
||||
max-width: _size(wrapper);
|
||||
z-index: 2;
|
||||
|
||||
> section {
|
||||
@include vendor('flex-basis', '50%');
|
||||
@include vendor('flex-grow', '1');
|
||||
@include vendor('flex-shrink', '1');
|
||||
@include padding((_size(padding) * 2), (_size(padding) * 2));
|
||||
border-left: solid 2px _palette(alt, border);
|
||||
|
||||
&:first-child {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
&.split {
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-direction', 'column');
|
||||
padding: 0;
|
||||
|
||||
> section {
|
||||
@include padding((_size(padding) * 2) - 1, (_size(padding) * 2));
|
||||
border-top: solid 2px _palette(alt, border);
|
||||
|
||||
&:first-child {
|
||||
@include padding((_size(padding) * 2) - 1, (_size(padding) * 2), (_size(padding), 0, 0, 0));
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
@include padding((_size(padding) * 2) - 1, (_size(padding) * 2), (0, 0, _size(padding), 0));
|
||||
}
|
||||
}
|
||||
|
||||
&.contact {
|
||||
> section {
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('align-items', 'center');
|
||||
padding: (_size(padding) * 1.575) (_size(padding) * 2);
|
||||
|
||||
> * {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
> :first-child {
|
||||
@include vendor('flex-shrink', '0');
|
||||
@include vendor('flex-grow', '0');
|
||||
width: 6rem;
|
||||
}
|
||||
|
||||
> :last-child {
|
||||
@include vendor('flex-shrink', '1');
|
||||
@include vendor('flex-grow', '1');
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
padding: (_size(padding) * 2) (_size(padding) * 2) ((_size(padding) * 2) - 1) (_size(padding) * 2);
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
padding: ((_size(padding) * 2) - 1) (_size(padding) * 2) (_size(padding) * 2) (_size(padding) * 2);
|
||||
}
|
||||
|
||||
&.alt {
|
||||
@include vendor('align-items', 'flex-start');
|
||||
|
||||
> :last-child {
|
||||
margin-top: -0.325rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
form label,
|
||||
h3,
|
||||
p {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
display: block;
|
||||
|
||||
> section {
|
||||
border-top: solid 2px _palette(alt, border);
|
||||
|
||||
&:first-child {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
&.split {
|
||||
> section {
|
||||
@include padding((_size(padding) * 2), (_size(padding) * 2));
|
||||
|
||||
&:first-child {
|
||||
@include padding((_size(padding) * 2), (_size(padding) * 2));
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
@include padding((_size(padding) * 2), (_size(padding) * 2));
|
||||
}
|
||||
}
|
||||
|
||||
&.contact {
|
||||
> section {
|
||||
padding: (_size(padding) * 2);
|
||||
|
||||
&:first-child {
|
||||
padding: (_size(padding) * 2);
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
padding: (_size(padding) * 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
form label,
|
||||
h3,
|
||||
p {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
> section {
|
||||
@include padding((_size(padding) * 1), (_size(padding) * 1));
|
||||
|
||||
&.split {
|
||||
> section {
|
||||
@include padding((_size(padding) * 1), (_size(padding) * 1));
|
||||
|
||||
&:first-child {
|
||||
@include padding((_size(padding) * 1), (_size(padding) * 1));
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
@include padding((_size(padding) * 1), (_size(padding) * 1));
|
||||
}
|
||||
}
|
||||
|
||||
&.contact {
|
||||
> section {
|
||||
padding: (_size(padding) * 1);
|
||||
|
||||
&:first-child {
|
||||
padding: (_size(padding) * 1);
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
padding: (_size(padding) * 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
#copyright {
|
||||
@include color-typography(invert);
|
||||
position: relative;
|
||||
color: transparentize(_palette(invert, fg), 0.75);
|
||||
cursor: default;
|
||||
font-family: _font(family-heading);
|
||||
font-size: 0.8rem;
|
||||
font-weight: _font(weight-heading);
|
||||
letter-spacing: 0.075em;
|
||||
line-height: 1.5;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
margin: (_size(padding) * 2) auto (_size(padding) * 4) auto;
|
||||
width: calc(100% - #{_size(padding) * 2});
|
||||
max-width: _size(wrapper);
|
||||
z-index: 2;
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
border-bottom-color: inherit;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding-left: 0;
|
||||
|
||||
li {
|
||||
border-left: solid 2px;
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
margin-left: 1rem;
|
||||
padding-left: 1rem;
|
||||
|
||||
&:first-child {
|
||||
border-left: 0;
|
||||
margin-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
margin: (_size(padding) * 2) auto;
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
ul {
|
||||
li {
|
||||
border-left: 0;
|
||||
margin: 1rem 0 0 0;
|
||||
padding-left: 0;
|
||||
display: block;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
63
public/assets/ecc/assets/sass/layout/_header.scss
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Header */
|
||||
|
||||
#header {
|
||||
@include color-typography(invert);
|
||||
@include vendor('align-items', 'center');
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-direction', 'column');
|
||||
@include vendor('justify-content', 'flex-end');
|
||||
@include vendor('pointer-events', 'none');
|
||||
@include vendor('user-select', 'none');
|
||||
height: 20rem;
|
||||
padding-bottom: (_size(padding) * 4);
|
||||
position: relative;
|
||||
text-align: center;
|
||||
z-index: 2;
|
||||
|
||||
.logo {
|
||||
@include vendor('transition', (
|
||||
'border-color #{_duration(transition)} ease-in-out',
|
||||
'color #{_duration(transition)} ease-in-out',
|
||||
'opacity 0.5s ease',
|
||||
'transform 0.5s ease',
|
||||
'visibility 0.5s'
|
||||
));
|
||||
@include vendor('pointer-events', 'auto');
|
||||
border-style: solid;
|
||||
border-color: _palette(invert, border);
|
||||
border-width: 5px !important;
|
||||
font-family: _font(family-heading);
|
||||
font-size: 2.25rem;
|
||||
font-weight: _font(weight-heading);
|
||||
letter-spacing: 0.075em;
|
||||
line-height: 1;
|
||||
padding: 1rem 1.75rem;
|
||||
text-transform: uppercase;
|
||||
visibility: visible;
|
||||
|
||||
&:hover {
|
||||
border-color: _palette(invert, accent) !important;
|
||||
color: _palette(invert, accent) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
height: 14rem;
|
||||
padding-bottom: (_size(padding) * 2);
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
padding-bottom: (_size(padding) * 1.5);
|
||||
|
||||
.logo {
|
||||
font-size: 1.75rem;
|
||||
border-width: 3px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
115
public/assets/ecc/assets/sass/layout/_intro.scss
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Intro */
|
||||
|
||||
#intro {
|
||||
@include color-typography(invert);
|
||||
@include color-button(invert);
|
||||
@include padding(_size(padding) * 4, _size(padding) * 2);
|
||||
@include vendor('align-items', 'center');
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-direction', 'column');
|
||||
@include vendor('justify-content', 'flex-end');
|
||||
@include vendor('transition', (
|
||||
'opacity 1s ease',
|
||||
'transform 1s ease'
|
||||
));
|
||||
position: relative;
|
||||
cursor: default;
|
||||
text-align: center;
|
||||
z-index: 1;
|
||||
min-height: 100vh;
|
||||
|
||||
h1 {
|
||||
font-size: 5rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 1.25rem;
|
||||
font-style: italic;
|
||||
margin-top: -0.25rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
& + #header {
|
||||
margin-top: -20rem;
|
||||
|
||||
.logo {
|
||||
@include vendor('transform', 'translateY(2rem)');
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
&.hidden {
|
||||
@include vendor('pointer-events', 'none');
|
||||
@include vendor('transform', 'translateY(2rem)');
|
||||
@include vendor('transition', (
|
||||
'opacity 0.5s ease',
|
||||
'transform 0.5s ease',
|
||||
'visibility 0.5s'
|
||||
));
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
|
||||
& + #header {
|
||||
.logo {
|
||||
@include vendor('transform', 'translateY(0)');
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body.is-preload & {
|
||||
@include vendor('transform', 'translateY(2rem)');
|
||||
opacity: 0;
|
||||
|
||||
&:not(.hidden) {
|
||||
& + #header + #nav {
|
||||
@include vendor('transform', 'translateY(4rem)');
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
@include padding(_size(padding) * 2, _size(padding) * 2);
|
||||
min-height: 90vh;
|
||||
|
||||
p {
|
||||
br {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
& + #header {
|
||||
margin-top: -14rem;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
@include padding(_size(padding) * 1.5, _size(padding) * 1);
|
||||
min-height: 80vh;
|
||||
|
||||
h1 {
|
||||
font-size: 3.25rem;
|
||||
line-height: 1.1;
|
||||
margin-bottom: _size(element-margin) * 0.5;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 1rem;
|
||||
margin-top: 0rem;
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
158
public/assets/ecc/assets/sass/layout/_main.scss
vendored
Normal file
@@ -0,0 +1,158 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Main */
|
||||
|
||||
#main {
|
||||
background-color: _palette(bg);
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
width: calc(100% - #{_size(padding) * 2});
|
||||
max-width: _size(wrapper);
|
||||
z-index: 2;
|
||||
|
||||
> * {
|
||||
@include padding((_size(padding) * 2), (_size(padding) * 2));
|
||||
border-top: solid 2px _palette(border);
|
||||
margin: 0;
|
||||
|
||||
&:first-child {
|
||||
border-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
> footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
> .post {
|
||||
@include padding((_size(padding) * 4), (_size(padding) * 4));
|
||||
|
||||
header {
|
||||
&.major {
|
||||
> .date {
|
||||
margin-top: -2rem;
|
||||
}
|
||||
|
||||
> h1, h2 {
|
||||
font-size: 4rem;
|
||||
line-height: 1.1;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.featured {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
@include padding((_size(padding) * 3), (_size(padding) * 2));
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
@include padding((_size(padding) * 2), (_size(padding) * 1));
|
||||
|
||||
header {
|
||||
&.major {
|
||||
> .date {
|
||||
margin-top: -1rem;
|
||||
margin-bottom: _size(element-margin);
|
||||
}
|
||||
|
||||
> h1, h2 {
|
||||
font-size: 2.5rem;
|
||||
line-height: 1.2;
|
||||
margin: 0 0 (_size(element-margin) * 0.75) 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .posts {
|
||||
@include fixed-grid((
|
||||
columns: 2,
|
||||
gutters: (_size(padding) * 4),
|
||||
horizontal-align: center,
|
||||
vertical-align: flex-start,
|
||||
flush: false
|
||||
));
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
|
||||
> article {
|
||||
border-color: _palette(border);
|
||||
border-left-width: 2px;
|
||||
border-style: solid;
|
||||
border-top-width: 2px;
|
||||
text-align: center;
|
||||
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&:nth-child(2n - 1) {
|
||||
border-left-width: 0;
|
||||
}
|
||||
|
||||
&:nth-child(-n + 2) {
|
||||
border-top-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
@include fixed-grid-resize((
|
||||
columns: 2,
|
||||
gutters: (_size(padding) * 2.5),
|
||||
flush: false
|
||||
));
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
@include fixed-grid-resize((
|
||||
columns: 1,
|
||||
gutters: (_size(padding) * 2),
|
||||
prev-columns: 2,
|
||||
flush: false
|
||||
));
|
||||
|
||||
> article {
|
||||
&:nth-child(2n - 1) {
|
||||
border-left-width: 2px;
|
||||
}
|
||||
|
||||
&:nth-child(-n + 2) {
|
||||
border-top-width: 2px;
|
||||
}
|
||||
|
||||
&:nth-child(n) {
|
||||
border-left-width: 0;
|
||||
}
|
||||
|
||||
&:nth-child(-n + 1) {
|
||||
border-top-width: 0;
|
||||
}
|
||||
|
||||
.image {
|
||||
max-width: 25rem;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
> * {
|
||||
@include padding((_size(padding) * 1), (_size(padding) * 1));
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
85
public/assets/ecc/assets/sass/layout/_nav.scss
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Nav */
|
||||
|
||||
#nav {
|
||||
@include color-list(invert);
|
||||
@include color-typography(invert);
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('transition', (
|
||||
'transform 1s ease',
|
||||
'opacity 1s ease'
|
||||
));
|
||||
background: rgba(255,255,255,0.175);
|
||||
height: 4rem;
|
||||
line-height: 4rem;
|
||||
margin: -4rem auto 0 auto;
|
||||
overflow: hidden;
|
||||
padding: 0 2rem 0 0;
|
||||
position: relative;
|
||||
width: calc(100% - #{_size(padding) * 2});
|
||||
max-width: _size(wrapper);
|
||||
z-index: 2;
|
||||
|
||||
ul {
|
||||
&.links {
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-grow', '1');
|
||||
@include vendor('flex-shrink', '1');
|
||||
font-family: _font(family-heading);
|
||||
font-weight: _font(weight-heading);
|
||||
letter-spacing: 0.075em;
|
||||
list-style: none;
|
||||
margin-bottom: 0;
|
||||
padding-left: 0;
|
||||
text-transform: uppercase;
|
||||
|
||||
li {
|
||||
display: block;
|
||||
padding-left: 0;
|
||||
|
||||
a {
|
||||
@include vendor('transition', (
|
||||
'background-color #{_duration(transition)} ease-in-out',
|
||||
'color #{_duration(transition)} ease-in-out'
|
||||
));
|
||||
display: block;
|
||||
font-size: 0.8rem;
|
||||
outline: none;
|
||||
padding: 0 2rem;
|
||||
|
||||
&:hover {
|
||||
color: inherit !important;
|
||||
background-color: transparentize(_palette(invert, fg), 0.9);
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
background-color: _palette(invert, fg);
|
||||
|
||||
a {
|
||||
color: _palette(invert, bg);
|
||||
|
||||
&:hover {
|
||||
color: _palette(invert, accent) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.icons {
|
||||
@include vendor('flex-grow', '0');
|
||||
@include vendor('flex-shrink', '0');
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
153
public/assets/ecc/assets/sass/layout/_navPanel.scss
vendored
Normal file
@@ -0,0 +1,153 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Nav Panel */
|
||||
|
||||
#navPanelToggle {
|
||||
@include icon;
|
||||
@include vendor('transition', (
|
||||
'color #{_duration(transition)} ease-in-out',
|
||||
'background-color #{_duration(transition)} ease-in-out',
|
||||
'box-shadow #{_duration(transition)} ease-in-out'
|
||||
));
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0.75rem;
|
||||
right: 0.75rem;
|
||||
border: 0;
|
||||
color: _palette(invert, fg-bold);
|
||||
font-family: _font(family-heading);
|
||||
font-size: 0.9rem;
|
||||
font-weight: _font(weight-heading);
|
||||
letter-spacing: 0.075em;
|
||||
padding: 0.375rem 1.25rem;
|
||||
text-transform: uppercase;
|
||||
z-index: _misc(z-index-base) + 1;
|
||||
|
||||
&:before {
|
||||
content: '\f0c9';
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
&.alt {
|
||||
background-color: transparentize(_palette(bg), 0.125);
|
||||
box-shadow: 0 0.125rem 0.75rem 0 transparentize(_palette(invert, bg), 0.75);
|
||||
color: _palette(fg-bold);
|
||||
|
||||
&:hover {
|
||||
background-color: _palette(bg);
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
font-size: 0.8rem;
|
||||
padding: 0.25rem 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
#navPanel {
|
||||
@include vendor('transform', 'translateX(20rem)');
|
||||
@include vendor('transition', ('transform #{_duration(menu)} ease', 'box-shadow #{_duration(menu)} ease', 'visibility #{_duration(menu)}'));
|
||||
display: none;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
background: _palette(bg);
|
||||
box-shadow: none;
|
||||
color: _palette(fg-bold);
|
||||
height: 100%;
|
||||
max-width: 80%;
|
||||
overflow-y: auto;
|
||||
padding: 3rem 2rem;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
visibility: hidden;
|
||||
width: 20rem;
|
||||
z-index: _misc(z-index-base) + 2;
|
||||
|
||||
.links {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
|
||||
li {
|
||||
border-top: solid 2px _palette(border);
|
||||
|
||||
a {
|
||||
border-bottom: 0;
|
||||
display: block;
|
||||
font-family: _font(family-heading);
|
||||
font-size: 0.9rem;
|
||||
font-size: 0.9rem;
|
||||
font-weight: _font(weight-heading);
|
||||
letter-spacing: 0.075em;
|
||||
padding: 0.75rem 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
border-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.close {
|
||||
@include icon;
|
||||
@include vendor('transition', 'color #{_duration(transition)} ease-in-out');
|
||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||
border: 0;
|
||||
color: _palette(fg-light);
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
height: 3.25rem;
|
||||
line-height: 3.25rem;
|
||||
padding-right: 1.25rem;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
text-align: right;
|
||||
top: 0;
|
||||
vertical-align: middle;
|
||||
width: 7rem;
|
||||
|
||||
&:before {
|
||||
content: '\f00d';
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: _palette(fg-bold);
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
height: 4rem;
|
||||
line-height: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
padding: 2.5rem 1.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
body.is-navPanel-visible {
|
||||
#wrapper {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
#navPanel {
|
||||
@include vendor('transform', 'translateX(0)');
|
||||
box-shadow: 0 0 1.5rem 0 rgba(0,0,0,0.2);
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
64
public/assets/ecc/assets/sass/layout/_wrapper.scss
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
///
|
||||
/// Massively by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Wrapper */
|
||||
|
||||
#wrapper {
|
||||
@include vendor('transition', 'opacity #{_duration(menu)} ease');
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
overflow: hidden;
|
||||
|
||||
> .bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: _palette(wrapper-bg);
|
||||
background-image: url('../../images/overlay.png'), linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../../images/bg.jpg');
|
||||
background-size: auto, auto, 100% auto;
|
||||
background-position: center, center, top center;
|
||||
background-repeat: repeat, no-repeat, no-repeat;
|
||||
background-attachment: scroll, scroll, scroll;
|
||||
z-index: -1;
|
||||
|
||||
&.fixed {
|
||||
position: fixed;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
}
|
||||
|
||||
&.fade-in {
|
||||
&:before {
|
||||
@include vendor('pointer-events', 'none');
|
||||
@include vendor('transition', 'opacity 1s ease-in-out');
|
||||
@include vendor('transition-delay', '0.75s');
|
||||
background: _palette(invert, bg);
|
||||
content: '';
|
||||
display: block;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
opacity: 0;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body.is-preload & {
|
||||
&:before {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include orientation(portrait) {
|
||||
> .bg {
|
||||
background-size: auto, auto, auto 175%;
|
||||
}
|
||||
}
|
||||
}
|
||||
223
public/assets/ecc/assets/sass/libs/_breakpoints.scss
vendored
Normal file
@@ -0,0 +1,223 @@
|
||||
// breakpoints.scss v1.0 | @ajlkn | MIT licensed */
|
||||
|
||||
// Vars.
|
||||
|
||||
/// Breakpoints.
|
||||
/// @var {list}
|
||||
$breakpoints: () !global;
|
||||
|
||||
// Mixins.
|
||||
|
||||
/// Sets breakpoints.
|
||||
/// @param {map} $x Breakpoints.
|
||||
@mixin breakpoints($x: ()) {
|
||||
$breakpoints: $x !global;
|
||||
}
|
||||
|
||||
/// Wraps @content in a @media block targeting a specific orientation.
|
||||
/// @param {string} $orientation Orientation.
|
||||
@mixin orientation($orientation) {
|
||||
@media screen and (orientation: #{$orientation}) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
/// Wraps @content in a @media block using a given query.
|
||||
/// @param {string} $query Query.
|
||||
@mixin breakpoint($query: null) {
|
||||
|
||||
$breakpoint: null;
|
||||
$op: null;
|
||||
$media: null;
|
||||
|
||||
// Determine operator, breakpoint.
|
||||
|
||||
// Greater than or equal.
|
||||
@if (str-slice($query, 0, 2) == '>=') {
|
||||
|
||||
$op: 'gte';
|
||||
$breakpoint: str-slice($query, 3);
|
||||
|
||||
}
|
||||
|
||||
// Less than or equal.
|
||||
@elseif (str-slice($query, 0, 2) == '<=') {
|
||||
|
||||
$op: 'lte';
|
||||
$breakpoint: str-slice($query, 3);
|
||||
|
||||
}
|
||||
|
||||
// Greater than.
|
||||
@elseif (str-slice($query, 0, 1) == '>') {
|
||||
|
||||
$op: 'gt';
|
||||
$breakpoint: str-slice($query, 2);
|
||||
|
||||
}
|
||||
|
||||
// Less than.
|
||||
@elseif (str-slice($query, 0, 1) == '<') {
|
||||
|
||||
$op: 'lt';
|
||||
$breakpoint: str-slice($query, 2);
|
||||
|
||||
}
|
||||
|
||||
// Not.
|
||||
@elseif (str-slice($query, 0, 1) == '!') {
|
||||
|
||||
$op: 'not';
|
||||
$breakpoint: str-slice($query, 2);
|
||||
|
||||
}
|
||||
|
||||
// Equal.
|
||||
@else {
|
||||
|
||||
$op: 'eq';
|
||||
$breakpoint: $query;
|
||||
|
||||
}
|
||||
|
||||
// Build media.
|
||||
@if ($breakpoint and map-has-key($breakpoints, $breakpoint)) {
|
||||
|
||||
$a: map-get($breakpoints, $breakpoint);
|
||||
|
||||
// Range.
|
||||
@if (type-of($a) == 'list') {
|
||||
|
||||
$x: nth($a, 1);
|
||||
$y: nth($a, 2);
|
||||
|
||||
// Max only.
|
||||
@if ($x == null) {
|
||||
|
||||
// Greater than or equal (>= 0 / anything)
|
||||
@if ($op == 'gte') {
|
||||
$media: 'screen';
|
||||
}
|
||||
|
||||
// Less than or equal (<= y)
|
||||
@elseif ($op == 'lte') {
|
||||
$media: 'screen and (max-width: ' + $y + ')';
|
||||
}
|
||||
|
||||
// Greater than (> y)
|
||||
@elseif ($op == 'gt') {
|
||||
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
||||
}
|
||||
|
||||
// Less than (< 0 / invalid)
|
||||
@elseif ($op == 'lt') {
|
||||
$media: 'screen and (max-width: -1px)';
|
||||
}
|
||||
|
||||
// Not (> y)
|
||||
@elseif ($op == 'not') {
|
||||
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
||||
}
|
||||
|
||||
// Equal (<= y)
|
||||
@else {
|
||||
$media: 'screen and (max-width: ' + $y + ')';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Min only.
|
||||
@else if ($y == null) {
|
||||
|
||||
// Greater than or equal (>= x)
|
||||
@if ($op == 'gte') {
|
||||
$media: 'screen and (min-width: ' + $x + ')';
|
||||
}
|
||||
|
||||
// Less than or equal (<= inf / anything)
|
||||
@elseif ($op == 'lte') {
|
||||
$media: 'screen';
|
||||
}
|
||||
|
||||
// Greater than (> inf / invalid)
|
||||
@elseif ($op == 'gt') {
|
||||
$media: 'screen and (max-width: -1px)';
|
||||
}
|
||||
|
||||
// Less than (< x)
|
||||
@elseif ($op == 'lt') {
|
||||
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
||||
}
|
||||
|
||||
// Not (< x)
|
||||
@elseif ($op == 'not') {
|
||||
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
||||
}
|
||||
|
||||
// Equal (>= x)
|
||||
@else {
|
||||
$media: 'screen and (min-width: ' + $x + ')';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Min and max.
|
||||
@else {
|
||||
|
||||
// Greater than or equal (>= x)
|
||||
@if ($op == 'gte') {
|
||||
$media: 'screen and (min-width: ' + $x + ')';
|
||||
}
|
||||
|
||||
// Less than or equal (<= y)
|
||||
@elseif ($op == 'lte') {
|
||||
$media: 'screen and (max-width: ' + $y + ')';
|
||||
}
|
||||
|
||||
// Greater than (> y)
|
||||
@elseif ($op == 'gt') {
|
||||
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
||||
}
|
||||
|
||||
// Less than (< x)
|
||||
@elseif ($op == 'lt') {
|
||||
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
||||
}
|
||||
|
||||
// Not (< x and > y)
|
||||
@elseif ($op == 'not') {
|
||||
$media: 'screen and (max-width: ' + ($x - 1) + '), screen and (min-width: ' + ($y + 1) + ')';
|
||||
}
|
||||
|
||||
// Equal (>= x and <= y)
|
||||
@else {
|
||||
$media: 'screen and (min-width: ' + $x + ') and (max-width: ' + $y + ')';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// String.
|
||||
@else {
|
||||
|
||||
// Missing a media type? Prefix with "screen".
|
||||
@if (str-slice($a, 0, 1) == '(') {
|
||||
$media: 'screen and ' + $a;
|
||||
}
|
||||
|
||||
// Otherwise, use as-is.
|
||||
@else {
|
||||
$media: $a;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Output.
|
||||
@media #{$media} {
|
||||
@content;
|
||||
}
|
||||
|
||||
}
|
||||
338
public/assets/ecc/assets/sass/libs/_fixed-grid.scss
vendored
Normal file
@@ -0,0 +1,338 @@
|
||||
// fixed-grid.scss v1.0 | @ajlkn | MIT licensed */
|
||||
|
||||
// Mixins.
|
||||
|
||||
/// Initializes base fixed-grid classes.
|
||||
/// @param {string} $vertical-align Vertical alignment of cells.
|
||||
/// @param {string} $horizontal-align Horizontal alignment of cells.
|
||||
@mixin fixed-grid-base($vertical-align: null, $horizontal-align: null) {
|
||||
|
||||
// Grid.
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-wrap', 'wrap');
|
||||
|
||||
// Vertical alignment.
|
||||
@if ($vertical-align == top) {
|
||||
@include vendor('align-items', 'flex-start');
|
||||
}
|
||||
@else if ($vertical-align == bottom) {
|
||||
@include vendor('align-items', 'flex-end');
|
||||
}
|
||||
@else if ($vertical-align == center) {
|
||||
@include vendor('align-items', 'center');
|
||||
}
|
||||
@else {
|
||||
@include vendor('align-items', 'stretch');
|
||||
}
|
||||
|
||||
// Horizontal alignment.
|
||||
@if ($horizontal-align != null) {
|
||||
text-align: $horizontal-align;
|
||||
}
|
||||
|
||||
// Cells.
|
||||
> * {
|
||||
@include vendor('flex-shrink', '1');
|
||||
@include vendor('flex-grow', '0');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// Sets up fixed-grid columns.
|
||||
/// @param {integer} $columns Columns.
|
||||
@mixin fixed-grid-columns($columns) {
|
||||
|
||||
> * {
|
||||
$cell-width: 100% / $columns;
|
||||
width: #{$cell-width};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// Sets up fixed-grid gutters.
|
||||
/// @param {integer} $columns Columns.
|
||||
/// @param {number} $gutters Gutters.
|
||||
@mixin fixed-grid-gutters($columns, $gutters) {
|
||||
|
||||
// Apply padding.
|
||||
> * {
|
||||
$cell-width: 100% / $columns;
|
||||
|
||||
padding: ($gutters * 0.5);
|
||||
width: $cell-width;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// Sets up fixed-grid gutters (flush).
|
||||
/// @param {integer} $columns Columns.
|
||||
/// @param {number} $gutters Gutters.
|
||||
@mixin fixed-grid-gutters-flush($columns, $gutters) {
|
||||
|
||||
// Apply padding.
|
||||
> * {
|
||||
$cell-width: 100% / $columns;
|
||||
$cell-width-pad: $gutters / $columns;
|
||||
|
||||
padding: ($gutters * 0.5);
|
||||
width: calc(#{$cell-width} + #{$cell-width-pad});
|
||||
}
|
||||
|
||||
// Clear top/bottom gutters.
|
||||
> :nth-child(-n + #{$columns}) {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
> :nth-last-child(-n + #{$columns}) {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
// Clear left/right gutters.
|
||||
> :nth-child(#{$columns}n + 1) {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
> :nth-child(#{$columns}n) {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
// Adjust widths of leftmost and rightmost cells.
|
||||
> :nth-child(#{$columns}n + 1),
|
||||
> :nth-child(#{$columns}n) {
|
||||
$cell-width: 100% / $columns;
|
||||
$cell-width-pad: ($gutters / $columns) - ($gutters / 2);
|
||||
|
||||
width: calc(#{$cell-width} + #{$cell-width-pad});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// Reset fixed-grid gutters (flush only).
|
||||
/// Used to override a previous set of fixed-grid gutter classes.
|
||||
/// @param {integer} $columns Columns.
|
||||
/// @param {number} $gutters Gutters.
|
||||
/// @param {integer} $prev-columns Previous columns.
|
||||
@mixin fixed-grid-gutters-flush-reset($columns, $gutters, $prev-columns) {
|
||||
|
||||
// Apply padding.
|
||||
> * {
|
||||
$cell-width: 100% / $prev-columns;
|
||||
$cell-width-pad: $gutters / $prev-columns;
|
||||
|
||||
padding: ($gutters * 0.5);
|
||||
width: calc(#{$cell-width} + #{$cell-width-pad});
|
||||
}
|
||||
|
||||
// Clear top/bottom gutters.
|
||||
> :nth-child(-n + #{$prev-columns}) {
|
||||
padding-top: ($gutters * 0.5);
|
||||
}
|
||||
|
||||
> :nth-last-child(-n + #{$prev-columns}) {
|
||||
padding-bottom: ($gutters * 0.5);
|
||||
}
|
||||
|
||||
// Clear left/right gutters.
|
||||
> :nth-child(#{$prev-columns}n + 1) {
|
||||
padding-left: ($gutters * 0.5);
|
||||
}
|
||||
|
||||
> :nth-child(#{$prev-columns}n) {
|
||||
padding-right: ($gutters * 0.5);
|
||||
}
|
||||
|
||||
// Adjust widths of leftmost and rightmost cells.
|
||||
> :nth-child(#{$prev-columns}n + 1),
|
||||
> :nth-child(#{$prev-columns}n) {
|
||||
$cell-width: 100% / $columns;
|
||||
$cell-width-pad: $gutters / $columns;
|
||||
|
||||
padding: ($gutters * 0.5);
|
||||
width: calc(#{$cell-width} + #{$cell-width-pad});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// Adds debug styles to current fixed-grid element.
|
||||
@mixin fixed-grid-debug() {
|
||||
|
||||
box-shadow: 0 0 0 1px red;
|
||||
|
||||
> * {
|
||||
box-shadow: inset 0 0 0 1px blue;
|
||||
position: relative;
|
||||
|
||||
> * {
|
||||
position: relative;
|
||||
box-shadow: inset 0 0 0 1px green;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// Initializes the current element as a fixed grid.
|
||||
/// @param {integer} $columns Columns (optional).
|
||||
/// @param {number} $gutters Gutters (optional).
|
||||
/// @param {bool} $flush If true, clears padding around the very edge of the grid.
|
||||
@mixin fixed-grid($settings: ()) {
|
||||
|
||||
// Settings.
|
||||
|
||||
// Debug.
|
||||
$debug: false;
|
||||
|
||||
@if (map-has-key($settings, 'debug')) {
|
||||
$debug: map-get($settings, 'debug');
|
||||
}
|
||||
|
||||
// Vertical align.
|
||||
$vertical-align: null;
|
||||
|
||||
@if (map-has-key($settings, 'vertical-align')) {
|
||||
$vertical-align: map-get($settings, 'vertical-align');
|
||||
}
|
||||
|
||||
// Horizontal align.
|
||||
$horizontal-align: null;
|
||||
|
||||
@if (map-has-key($settings, 'horizontal-align')) {
|
||||
$horizontal-align: map-get($settings, 'horizontal-align');
|
||||
}
|
||||
|
||||
// Columns.
|
||||
$columns: null;
|
||||
|
||||
@if (map-has-key($settings, 'columns')) {
|
||||
$columns: map-get($settings, 'columns');
|
||||
}
|
||||
|
||||
// Gutters.
|
||||
$gutters: 0;
|
||||
|
||||
@if (map-has-key($settings, 'gutters')) {
|
||||
$gutters: map-get($settings, 'gutters');
|
||||
}
|
||||
|
||||
// Flush.
|
||||
$flush: true;
|
||||
|
||||
@if (map-has-key($settings, 'flush')) {
|
||||
$flush: map-get($settings, 'flush');
|
||||
}
|
||||
|
||||
// Initialize base grid.
|
||||
@include fixed-grid-base($vertical-align, $horizontal-align);
|
||||
|
||||
// Debug?
|
||||
@if ($debug) {
|
||||
@include fixed-grid-debug;
|
||||
}
|
||||
|
||||
// Columns specified?
|
||||
@if ($columns != null) {
|
||||
|
||||
// Initialize columns.
|
||||
@include fixed-grid-columns($columns);
|
||||
|
||||
// Gutters specified?
|
||||
@if ($gutters > 0) {
|
||||
|
||||
// Flush gutters?
|
||||
@if ($flush) {
|
||||
|
||||
// Initialize gutters (flush).
|
||||
@include fixed-grid-gutters-flush($columns, $gutters);
|
||||
|
||||
}
|
||||
|
||||
// Otherwise ...
|
||||
@else {
|
||||
|
||||
// Initialize gutters.
|
||||
@include fixed-grid-gutters($columns, $gutters);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// Resizes a previously-initialized grid.
|
||||
/// @param {integer} $columns Columns.
|
||||
/// @param {number} $gutters Gutters (optional).
|
||||
/// @param {list} $reset A list of previously-initialized grid columns (only if $flush is true).
|
||||
/// @param {bool} $flush If true, clears padding around the very edge of the grid.
|
||||
@mixin fixed-grid-resize($settings: ()) {
|
||||
|
||||
// Settings.
|
||||
|
||||
// Columns.
|
||||
$columns: 1;
|
||||
|
||||
@if (map-has-key($settings, 'columns')) {
|
||||
$columns: map-get($settings, 'columns');
|
||||
}
|
||||
|
||||
// Gutters.
|
||||
$gutters: 0;
|
||||
|
||||
@if (map-has-key($settings, 'gutters')) {
|
||||
$gutters: map-get($settings, 'gutters');
|
||||
}
|
||||
|
||||
// Previous columns.
|
||||
$prev-columns: false;
|
||||
|
||||
@if (map-has-key($settings, 'prev-columns')) {
|
||||
$prev-columns: map-get($settings, 'prev-columns');
|
||||
}
|
||||
|
||||
// Flush.
|
||||
$flush: true;
|
||||
|
||||
@if (map-has-key($settings, 'flush')) {
|
||||
$flush: map-get($settings, 'flush');
|
||||
}
|
||||
|
||||
// Resize columns.
|
||||
@include fixed-grid-columns($columns);
|
||||
|
||||
// Gutters specified?
|
||||
@if ($gutters > 0) {
|
||||
|
||||
// Flush gutters?
|
||||
@if ($flush) {
|
||||
|
||||
// Previous columns specified?
|
||||
@if ($prev-columns) {
|
||||
|
||||
// Convert to list if it isn't one already.
|
||||
@if (type-of($prev-columns) != list) {
|
||||
$prev-columns: ($prev-columns);
|
||||
}
|
||||
|
||||
// Step through list of previous columns and reset them.
|
||||
@each $x in $prev-columns {
|
||||
@include fixed-grid-gutters-flush-reset($columns, $gutters, $x);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Resize gutters (flush).
|
||||
@include fixed-grid-gutters-flush($columns, $gutters);
|
||||
|
||||
}
|
||||
|
||||
// Otherwise ...
|
||||
@else {
|
||||
|
||||
// Resize gutters.
|
||||
@include fixed-grid-gutters($columns, $gutters);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
90
public/assets/ecc/assets/sass/libs/_functions.scss
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
/// Removes a specific item from a list.
|
||||
/// @author Hugo Giraudel
|
||||
/// @param {list} $list List.
|
||||
/// @param {integer} $index Index.
|
||||
/// @return {list} Updated list.
|
||||
@function remove-nth($list, $index) {
|
||||
|
||||
$result: null;
|
||||
|
||||
@if type-of($index) != number {
|
||||
@warn "$index: #{quote($index)} is not a number for `remove-nth`.";
|
||||
}
|
||||
@else if $index == 0 {
|
||||
@warn "List index 0 must be a non-zero integer for `remove-nth`.";
|
||||
}
|
||||
@else if abs($index) > length($list) {
|
||||
@warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
|
||||
}
|
||||
@else {
|
||||
|
||||
$result: ();
|
||||
$index: if($index < 0, length($list) + $index + 1, $index);
|
||||
|
||||
@for $i from 1 through length($list) {
|
||||
|
||||
@if $i != $index {
|
||||
$result: append($result, nth($list, $i));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@return $result;
|
||||
|
||||
}
|
||||
|
||||
/// Gets a value from a map.
|
||||
/// @author Hugo Giraudel
|
||||
/// @param {map} $map Map.
|
||||
/// @param {string} $keys Key(s).
|
||||
/// @return {string} Value.
|
||||
@function val($map, $keys...) {
|
||||
|
||||
@if nth($keys, 1) == null {
|
||||
$keys: remove-nth($keys, 1);
|
||||
}
|
||||
|
||||
@each $key in $keys {
|
||||
$map: map-get($map, $key);
|
||||
}
|
||||
|
||||
@return $map;
|
||||
|
||||
}
|
||||
|
||||
/// Gets a duration value.
|
||||
/// @param {string} $keys Key(s).
|
||||
/// @return {string} Value.
|
||||
@function _duration($keys...) {
|
||||
@return val($duration, $keys...);
|
||||
}
|
||||
|
||||
/// Gets a font value.
|
||||
/// @param {string} $keys Key(s).
|
||||
/// @return {string} Value.
|
||||
@function _font($keys...) {
|
||||
@return val($font, $keys...);
|
||||
}
|
||||
|
||||
/// Gets a misc value.
|
||||
/// @param {string} $keys Key(s).
|
||||
/// @return {string} Value.
|
||||
@function _misc($keys...) {
|
||||
@return val($misc, $keys...);
|
||||
}
|
||||
|
||||
/// Gets a palette value.
|
||||
/// @param {string} $keys Key(s).
|
||||
/// @return {string} Value.
|
||||
@function _palette($keys...) {
|
||||
@return val($palette, $keys...);
|
||||
}
|
||||
|
||||
/// Gets a size value.
|
||||
/// @param {string} $keys Key(s).
|
||||
/// @return {string} Value.
|
||||
@function _size($keys...) {
|
||||
@return val($size, $keys...);
|
||||
}
|
||||
149
public/assets/ecc/assets/sass/libs/_html-grid.scss
vendored
Normal file
@@ -0,0 +1,149 @@
|
||||
// html-grid.scss v1.0 | @ajlkn | MIT licensed */
|
||||
|
||||
// Mixins.
|
||||
|
||||
/// Initializes the current element as an HTML grid.
|
||||
/// @param {mixed} $gutters Gutters (either a single number to set both column/row gutters, or a list to set them individually).
|
||||
/// @param {mixed} $suffix Column class suffix (optional; either a single suffix or a list).
|
||||
@mixin html-grid($gutters: 1.5em, $suffix: '') {
|
||||
|
||||
// Initialize.
|
||||
$cols: 12;
|
||||
$multipliers: 0, 0.25, 0.5, 1, 1.50, 2.00;
|
||||
$unit: 100% / $cols;
|
||||
|
||||
// Suffixes.
|
||||
$suffixes: null;
|
||||
|
||||
@if (type-of($suffix) == 'list') {
|
||||
$suffixes: $suffix;
|
||||
}
|
||||
@else {
|
||||
$suffixes: ($suffix);
|
||||
}
|
||||
|
||||
// Gutters.
|
||||
$guttersCols: null;
|
||||
$guttersRows: null;
|
||||
|
||||
@if (type-of($gutters) == 'list') {
|
||||
|
||||
$guttersCols: nth($gutters, 1);
|
||||
$guttersRows: nth($gutters, 2);
|
||||
|
||||
}
|
||||
@else {
|
||||
|
||||
$guttersCols: $gutters;
|
||||
$guttersRows: 0;
|
||||
|
||||
}
|
||||
|
||||
// Row.
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
box-sizing: border-box;
|
||||
align-items: stretch;
|
||||
|
||||
// Columns.
|
||||
> * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
// Gutters.
|
||||
&.gtr-uniform {
|
||||
> * {
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Alignment.
|
||||
&.aln-left {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
&.aln-center {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
&.aln-right {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
&.aln-top {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
&.aln-middle {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&.aln-bottom {
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
// Step through suffixes.
|
||||
@each $suffix in $suffixes {
|
||||
|
||||
// Suffix.
|
||||
@if ($suffix != '') {
|
||||
$suffix: '-' + $suffix;
|
||||
}
|
||||
@else {
|
||||
$suffix: '';
|
||||
}
|
||||
|
||||
// Row.
|
||||
|
||||
// Important.
|
||||
> .imp#{$suffix} {
|
||||
order: -1;
|
||||
}
|
||||
|
||||
// Columns, offsets.
|
||||
@for $i from 1 through $cols {
|
||||
> .col-#{$i}#{$suffix} {
|
||||
width: $unit * $i;
|
||||
}
|
||||
|
||||
> .off-#{$i}#{$suffix} {
|
||||
margin-left: $unit * $i;
|
||||
}
|
||||
}
|
||||
|
||||
// Step through multipliers.
|
||||
@each $multiplier in $multipliers {
|
||||
|
||||
// Gutters.
|
||||
$class: null;
|
||||
|
||||
@if ($multiplier != 1) {
|
||||
$class: '.gtr-' + ($multiplier * 100);
|
||||
}
|
||||
|
||||
&#{$class} {
|
||||
margin-top: ($guttersRows * $multiplier * -1);
|
||||
margin-left: ($guttersCols * $multiplier * -1);
|
||||
|
||||
> * {
|
||||
padding: ($guttersRows * $multiplier) 0 0 ($guttersCols * $multiplier);
|
||||
}
|
||||
|
||||
// Uniform.
|
||||
&.gtr-uniform {
|
||||
margin-top: $guttersCols * $multiplier * -1;
|
||||
|
||||
> * {
|
||||
padding-top: $guttersCols * $multiplier;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
63
public/assets/ecc/assets/sass/libs/_mixins.scss
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
/// Makes an element's :before pseudoelement a FontAwesome icon.
|
||||
/// @param {string} $content Optional content value to use.
|
||||
/// @param {string} $where Optional pseudoelement to target (before or after).
|
||||
@mixin icon($content: false, $where: before) {
|
||||
|
||||
text-decoration: none;
|
||||
|
||||
&:#{$where} {
|
||||
|
||||
@if $content {
|
||||
content: $content;
|
||||
}
|
||||
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-family: FontAwesome;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
text-transform: none !important;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// Applies padding to an element, taking the current element-margin value into account.
|
||||
/// @param {mixed} $tb Top/bottom padding.
|
||||
/// @param {mixed} $lr Left/right padding.
|
||||
/// @param {list} $pad Optional extra padding (in the following order top, right, bottom, left)
|
||||
/// @param {bool} $important If true, adds !important.
|
||||
@mixin padding($tb, $lr, $pad: (0,0,0,0), $important: null) {
|
||||
|
||||
@if $important {
|
||||
$important: '!important';
|
||||
}
|
||||
|
||||
$x: 0.1em;
|
||||
|
||||
@if unit(_size(element-margin)) == 'rem' {
|
||||
$x: 0.1rem;
|
||||
}
|
||||
|
||||
padding: ($tb + nth($pad,1)) ($lr + nth($pad,2)) max($x, $tb - _size(element-margin) + nth($pad,3)) ($lr + nth($pad,4)) #{$important};
|
||||
|
||||
}
|
||||
|
||||
/// Encodes a SVG data URL so IE doesn't choke (via codepen.io/jakob-e/pen/YXXBrp).
|
||||
/// @param {string} $svg SVG data URL.
|
||||
/// @return {string} Encoded SVG data URL.
|
||||
@function svg-url($svg) {
|
||||
|
||||
$svg: str-replace($svg, '"', '\'');
|
||||
$svg: str-replace($svg, '%', '%25');
|
||||
$svg: str-replace($svg, '<', '%3C');
|
||||
$svg: str-replace($svg, '>', '%3E');
|
||||
$svg: str-replace($svg, '&', '%26');
|
||||
$svg: str-replace($svg, '#', '%23');
|
||||
$svg: str-replace($svg, '{', '%7B');
|
||||
$svg: str-replace($svg, '}', '%7D');
|
||||
$svg: str-replace($svg, ';', '%3B');
|
||||
|
||||
@return url("data:image/svg+xml;charset=utf8,#{$svg}");
|
||||
|
||||
}
|
||||
62
public/assets/ecc/assets/sass/libs/_vars.scss
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
// Misc.
|
||||
$misc: (
|
||||
z-index-base: 10000
|
||||
);
|
||||
|
||||
// Duration.
|
||||
$duration: (
|
||||
menu: 0.5s,
|
||||
transition: 0.2s
|
||||
);
|
||||
|
||||
// Size.
|
||||
$size: (
|
||||
element-height: 3rem,
|
||||
element-margin: 2rem,
|
||||
padding: 2rem,
|
||||
wrapper: 72rem
|
||||
);
|
||||
|
||||
// Font.
|
||||
$font: (
|
||||
family: ('Merriweather', Georgia, serif),
|
||||
family-heading: ('Source Sans Pro', Helvetica, sans-serif),
|
||||
family-fixed: ('Courier New', monospace),
|
||||
weight: 300,
|
||||
weight-bold: 600,
|
||||
weight-heading: 900
|
||||
);
|
||||
|
||||
// Palette.
|
||||
$palette: (
|
||||
wrapper-bg: #212931,
|
||||
|
||||
bg: #ffffff,
|
||||
fg: #212931,
|
||||
fg-bold: #212931,
|
||||
fg-light: mix(#212931, #ffffff, 50%),
|
||||
border: mix(#dcdcdc, #ffffff, 50%),
|
||||
border-bg: rgba(#dcdcdc, 0.25),
|
||||
accent: #18bfef,
|
||||
|
||||
alt: (
|
||||
bg: #f5f5f5,
|
||||
fg: #717981,
|
||||
fg-bold: #717981,
|
||||
fg-light: mix(#717981, #f5f5f5, 50%),
|
||||
border: mix(#dcdcdc, #f5f5f5, 75%),
|
||||
border-bg: rgba(#dcdcdc, 0.5),
|
||||
accent: #18bfef,
|
||||
),
|
||||
|
||||
invert: (
|
||||
bg: #1e252d,
|
||||
bg-alt: #1e252d,
|
||||
fg: #ffffff,
|
||||
fg-bold: #ffffff,
|
||||
fg-light: rgba(#ffffff, 0.5),
|
||||
border: #ffffff,
|
||||
border-bg: rgba(#ffffff,0.075),
|
||||
accent: #18bfef,
|
||||
),
|
||||
);
|
||||
376
public/assets/ecc/assets/sass/libs/_vendor.scss
vendored
Normal file
@@ -0,0 +1,376 @@
|
||||
// vendor.scss v1.0 | @ajlkn | MIT licensed */
|
||||
|
||||
// Vars.
|
||||
|
||||
/// Vendor prefixes.
|
||||
/// @var {list}
|
||||
$vendor-prefixes: (
|
||||
'-moz-',
|
||||
'-webkit-',
|
||||
'-ms-',
|
||||
''
|
||||
);
|
||||
|
||||
/// Properties that should be vendorized.
|
||||
/// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org
|
||||
/// @var {list}
|
||||
$vendor-properties: (
|
||||
|
||||
// Animation.
|
||||
'animation',
|
||||
'animation-delay',
|
||||
'animation-direction',
|
||||
'animation-duration',
|
||||
'animation-fill-mode',
|
||||
'animation-iteration-count',
|
||||
'animation-name',
|
||||
'animation-play-state',
|
||||
'animation-timing-function',
|
||||
|
||||
// Appearance.
|
||||
'appearance',
|
||||
|
||||
// Backdrop filter.
|
||||
'backdrop-filter',
|
||||
|
||||
// Background image options.
|
||||
'background-clip',
|
||||
'background-origin',
|
||||
'background-size',
|
||||
|
||||
// Box sizing.
|
||||
'box-sizing',
|
||||
|
||||
// Clip path.
|
||||
'clip-path',
|
||||
|
||||
// Filter effects.
|
||||
'filter',
|
||||
|
||||
// Flexbox.
|
||||
'align-content',
|
||||
'align-items',
|
||||
'align-self',
|
||||
'flex',
|
||||
'flex-basis',
|
||||
'flex-direction',
|
||||
'flex-flow',
|
||||
'flex-grow',
|
||||
'flex-shrink',
|
||||
'flex-wrap',
|
||||
'justify-content',
|
||||
'order',
|
||||
|
||||
// Font feature.
|
||||
'font-feature-settings',
|
||||
'font-language-override',
|
||||
'font-variant-ligatures',
|
||||
|
||||
// Font kerning.
|
||||
'font-kerning',
|
||||
|
||||
// Fragmented borders and backgrounds.
|
||||
'box-decoration-break',
|
||||
|
||||
// Grid layout.
|
||||
'grid-column',
|
||||
'grid-column-align',
|
||||
'grid-column-end',
|
||||
'grid-column-start',
|
||||
'grid-row',
|
||||
'grid-row-align',
|
||||
'grid-row-end',
|
||||
'grid-row-start',
|
||||
'grid-template-columns',
|
||||
'grid-template-rows',
|
||||
|
||||
// Hyphens.
|
||||
'hyphens',
|
||||
'word-break',
|
||||
|
||||
// Masks.
|
||||
'mask',
|
||||
'mask-border',
|
||||
'mask-border-outset',
|
||||
'mask-border-repeat',
|
||||
'mask-border-slice',
|
||||
'mask-border-source',
|
||||
'mask-border-width',
|
||||
'mask-clip',
|
||||
'mask-composite',
|
||||
'mask-image',
|
||||
'mask-origin',
|
||||
'mask-position',
|
||||
'mask-repeat',
|
||||
'mask-size',
|
||||
|
||||
// Multicolumn.
|
||||
'break-after',
|
||||
'break-before',
|
||||
'break-inside',
|
||||
'column-count',
|
||||
'column-fill',
|
||||
'column-gap',
|
||||
'column-rule',
|
||||
'column-rule-color',
|
||||
'column-rule-style',
|
||||
'column-rule-width',
|
||||
'column-span',
|
||||
'column-width',
|
||||
'columns',
|
||||
|
||||
// Object fit.
|
||||
'object-fit',
|
||||
'object-position',
|
||||
|
||||
// Regions.
|
||||
'flow-from',
|
||||
'flow-into',
|
||||
'region-fragment',
|
||||
|
||||
// Scroll snap points.
|
||||
'scroll-snap-coordinate',
|
||||
'scroll-snap-destination',
|
||||
'scroll-snap-points-x',
|
||||
'scroll-snap-points-y',
|
||||
'scroll-snap-type',
|
||||
|
||||
// Shapes.
|
||||
'shape-image-threshold',
|
||||
'shape-margin',
|
||||
'shape-outside',
|
||||
|
||||
// Tab size.
|
||||
'tab-size',
|
||||
|
||||
// Text align last.
|
||||
'text-align-last',
|
||||
|
||||
// Text decoration.
|
||||
'text-decoration-color',
|
||||
'text-decoration-line',
|
||||
'text-decoration-skip',
|
||||
'text-decoration-style',
|
||||
|
||||
// Text emphasis.
|
||||
'text-emphasis',
|
||||
'text-emphasis-color',
|
||||
'text-emphasis-position',
|
||||
'text-emphasis-style',
|
||||
|
||||
// Text size adjust.
|
||||
'text-size-adjust',
|
||||
|
||||
// Text spacing.
|
||||
'text-spacing',
|
||||
|
||||
// Transform.
|
||||
'transform',
|
||||
'transform-origin',
|
||||
|
||||
// Transform 3D.
|
||||
'backface-visibility',
|
||||
'perspective',
|
||||
'perspective-origin',
|
||||
'transform-style',
|
||||
|
||||
// Transition.
|
||||
'transition',
|
||||
'transition-delay',
|
||||
'transition-duration',
|
||||
'transition-property',
|
||||
'transition-timing-function',
|
||||
|
||||
// Unicode bidi.
|
||||
'unicode-bidi',
|
||||
|
||||
// User select.
|
||||
'user-select',
|
||||
|
||||
// Writing mode.
|
||||
'writing-mode',
|
||||
|
||||
);
|
||||
|
||||
/// Values that should be vendorized.
|
||||
/// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org
|
||||
/// @var {list}
|
||||
$vendor-values: (
|
||||
|
||||
// Cross fade.
|
||||
'cross-fade',
|
||||
|
||||
// Element function.
|
||||
'element',
|
||||
|
||||
// Filter function.
|
||||
'filter',
|
||||
|
||||
// Flexbox.
|
||||
'flex',
|
||||
'inline-flex',
|
||||
|
||||
// Grab cursors.
|
||||
'grab',
|
||||
'grabbing',
|
||||
|
||||
// Gradients.
|
||||
'linear-gradient',
|
||||
'repeating-linear-gradient',
|
||||
'radial-gradient',
|
||||
'repeating-radial-gradient',
|
||||
|
||||
// Grid layout.
|
||||
'grid',
|
||||
'inline-grid',
|
||||
|
||||
// Image set.
|
||||
'image-set',
|
||||
|
||||
// Intrinsic width.
|
||||
'max-content',
|
||||
'min-content',
|
||||
'fit-content',
|
||||
'fill',
|
||||
'fill-available',
|
||||
'stretch',
|
||||
|
||||
// Sticky position.
|
||||
'sticky',
|
||||
|
||||
// Transform.
|
||||
'transform',
|
||||
|
||||
// Zoom cursors.
|
||||
'zoom-in',
|
||||
'zoom-out',
|
||||
|
||||
);
|
||||
|
||||
// Functions.
|
||||
|
||||
/// Removes a specific item from a list.
|
||||
/// @author Hugo Giraudel
|
||||
/// @param {list} $list List.
|
||||
/// @param {integer} $index Index.
|
||||
/// @return {list} Updated list.
|
||||
@function remove-nth($list, $index) {
|
||||
|
||||
$result: null;
|
||||
|
||||
@if type-of($index) != number {
|
||||
@warn "$index: #{quote($index)} is not a number for `remove-nth`.";
|
||||
}
|
||||
@else if $index == 0 {
|
||||
@warn "List index 0 must be a non-zero integer for `remove-nth`.";
|
||||
}
|
||||
@else if abs($index) > length($list) {
|
||||
@warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
|
||||
}
|
||||
@else {
|
||||
|
||||
$result: ();
|
||||
$index: if($index < 0, length($list) + $index + 1, $index);
|
||||
|
||||
@for $i from 1 through length($list) {
|
||||
|
||||
@if $i != $index {
|
||||
$result: append($result, nth($list, $i));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@return $result;
|
||||
|
||||
}
|
||||
|
||||
/// Replaces a substring within another string.
|
||||
/// @author Hugo Giraudel
|
||||
/// @param {string} $string String.
|
||||
/// @param {string} $search Substring.
|
||||
/// @param {string} $replace Replacement.
|
||||
/// @return {string} Updated string.
|
||||
@function str-replace($string, $search, $replace: '') {
|
||||
|
||||
$index: str-index($string, $search);
|
||||
|
||||
@if $index {
|
||||
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
||||
}
|
||||
|
||||
@return $string;
|
||||
|
||||
}
|
||||
|
||||
/// Replaces a substring within each string in a list.
|
||||
/// @param {list} $strings List of strings.
|
||||
/// @param {string} $search Substring.
|
||||
/// @param {string} $replace Replacement.
|
||||
/// @return {list} Updated list of strings.
|
||||
@function str-replace-all($strings, $search, $replace: '') {
|
||||
|
||||
@each $string in $strings {
|
||||
$strings: set-nth($strings, index($strings, $string), str-replace($string, $search, $replace));
|
||||
}
|
||||
|
||||
@return $strings;
|
||||
|
||||
}
|
||||
|
||||
// Mixins.
|
||||
|
||||
/// Wraps @content in vendorized keyframe blocks.
|
||||
/// @param {string} $name Name.
|
||||
@mixin keyframes($name) {
|
||||
|
||||
@-moz-keyframes #{$name} { @content; }
|
||||
@-webkit-keyframes #{$name} { @content; }
|
||||
@-ms-keyframes #{$name} { @content; }
|
||||
@keyframes #{$name} { @content; }
|
||||
|
||||
}
|
||||
|
||||
/// Vendorizes a declaration's property and/or value(s).
|
||||
/// @param {string} $property Property.
|
||||
/// @param {mixed} $value String/list of value(s).
|
||||
@mixin vendor($property, $value) {
|
||||
|
||||
// Determine if property should expand.
|
||||
$expandProperty: index($vendor-properties, $property);
|
||||
|
||||
// Determine if value should expand (and if so, add '-prefix-' placeholder).
|
||||
$expandValue: false;
|
||||
|
||||
@each $x in $value {
|
||||
@each $y in $vendor-values {
|
||||
@if $y == str-slice($x, 1, str-length($y)) {
|
||||
|
||||
$value: set-nth($value, index($value, $x), '-prefix-' + $x);
|
||||
$expandValue: true;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Expand property?
|
||||
@if $expandProperty {
|
||||
@each $vendor in $vendor-prefixes {
|
||||
#{$vendor}#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
|
||||
}
|
||||
}
|
||||
|
||||
// Expand just the value?
|
||||
@elseif $expandValue {
|
||||
@each $vendor in $vendor-prefixes {
|
||||
#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
|
||||
}
|
||||
}
|
||||
|
||||
// Neither? Treat them as a normal declaration.
|
||||
@else {
|
||||
#{$property}: #{$value};
|
||||
}
|
||||
|
||||
}
|
||||
71
public/assets/ecc/assets/sass/main.scss
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
@import 'libs/vars';
|
||||
@import 'libs/functions';
|
||||
@import 'libs/mixins';
|
||||
@import 'libs/vendor';
|
||||
@import 'libs/breakpoints';
|
||||
@import 'libs/html-grid';
|
||||
@import 'libs/fixed-grid';
|
||||
@import 'font-awesome.min.css';
|
||||
@import url('https://fonts.googleapis.com/css?family=Merriweather:300,700,300italic,700italic|Source+Sans+Pro:900');
|
||||
|
||||
/*
|
||||
Massively by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
*/
|
||||
|
||||
// Breakpoints.
|
||||
|
||||
@include breakpoints((
|
||||
default: (1681px, null ),
|
||||
xlarge: (1281px, 1680px ),
|
||||
large: (981px, 1280px ),
|
||||
medium: (737px, 980px ),
|
||||
small: (481px, 736px ),
|
||||
xsmall: (361px, 480px ),
|
||||
xxsmall: (null, 360px )
|
||||
));
|
||||
|
||||
// Mixins.
|
||||
|
||||
@mixin color($p) {
|
||||
@include color-typography($p);
|
||||
@include color-box($p);
|
||||
@include color-button($p);
|
||||
@include color-form($p);
|
||||
@include color-list($p);
|
||||
@include color-section($p);
|
||||
@include color-table($p);
|
||||
@include color-pagination($p);
|
||||
}
|
||||
|
||||
// Base.
|
||||
|
||||
@import 'base/reset';
|
||||
@import 'base/page';
|
||||
@import 'base/typography';
|
||||
|
||||
// Component.
|
||||
|
||||
@import 'components/row';
|
||||
@import 'components/box';
|
||||
@import 'components/button';
|
||||
@import 'components/form';
|
||||
@import 'components/icon';
|
||||
@import 'components/image';
|
||||
@import 'components/actions';
|
||||
@import 'components/icons';
|
||||
@import 'components/list';
|
||||
@import 'components/section';
|
||||
@import 'components/table';
|
||||
@import 'components/pagination';
|
||||
|
||||
// Layout.
|
||||
|
||||
@import 'layout/wrapper';
|
||||
@import 'layout/intro';
|
||||
@import 'layout/header';
|
||||
@import 'layout/nav';
|
||||
@import 'layout/main';
|
||||
@import 'layout/footer';
|
||||
@import 'layout/navPanel';
|
||||
46
public/assets/ecc/assets/sass/noscript.scss
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
@import 'libs/vars';
|
||||
@import 'libs/functions';
|
||||
@import 'libs/mixins';
|
||||
@import 'libs/vendor';
|
||||
@import 'libs/breakpoints';
|
||||
@import 'libs/html-grid';
|
||||
@import 'libs/fixed-grid';
|
||||
@import 'font-awesome.min.css';
|
||||
|
||||
/*
|
||||
Massively by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
*/
|
||||
|
||||
/* Wrapper */
|
||||
|
||||
#wrapper {
|
||||
background-color: _palette(wrapper-bg);
|
||||
background-image: url('../../images/overlay.png'), linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../../images/bg.jpg');
|
||||
background-size: auto, auto, 100% auto;
|
||||
background-position: center, center, top center;
|
||||
background-repeat: repeat, no-repeat, no-repeat;
|
||||
background-attachment: fixed, fixed, fixed;
|
||||
|
||||
&.fade-in {
|
||||
&:before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Intro */
|
||||
|
||||
#intro {
|
||||
body.is-preload & {
|
||||
opacity: 1;
|
||||
|
||||
&:not(.hidden) {
|
||||
& + #header + #nav {
|
||||
@include vendor('transform', 'none');
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
public/assets/ecc/images/bg.jpg
Normal file
|
After Width: | Height: | Size: 396 KiB |
BIN
public/assets/ecc/images/overlay.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
public/assets/ecc/images/pic01.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
public/assets/ecc/images/pic02.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/assets/ecc/images/pic03.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/assets/ecc/images/pic04.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/assets/ecc/images/pic05.jpg
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/assets/ecc/images/pic06.jpg
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/assets/ecc/images/pic07.jpg
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/assets/ecc/images/pic08.jpg
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
public/assets/ecc/images/pic09.jpg
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
public/assets/public/images/RissanenAiles.png
Normal file
|
After Width: | Height: | Size: 440 KiB |
331
resources/views/admin/inventory/booking.blade.php
Normal file
@@ -0,0 +1,331 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-12">
|
||||
@foreach ($schedules as $schedule)
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong class="card-title">Réservation de matériel du {{$schedule->date}}</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php
|
||||
$remove = [0 => ""];
|
||||
$n1_p1_items = array_diff(explode("-",$schedule->n1_p1_item),$remove);
|
||||
$n1_p2_items = array_diff(explode("-",$schedule->n1_p2_item),$remove);
|
||||
$n2_p1_items = array_diff(explode("-",$schedule->n2_p1_item),$remove);
|
||||
$n2_p2_items = array_diff(explode("-",$schedule->n2_p2_item),$remove);
|
||||
$n3_p1_items = array_diff(explode("-",$schedule->n3_p1_item),$remove);
|
||||
$n3_p2_items = array_diff(explode("-",$schedule->n3_p2_item),$remove);
|
||||
?>
|
||||
<table id="data_{{$schedule->id}}" class="table">
|
||||
<thead class="thead-dark">
|
||||
<tr>
|
||||
<th>Niveau</th>
|
||||
<th style="width:45%">1er Période</th>
|
||||
<th style="width:45%">2e Période</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>1</th>
|
||||
<td>
|
||||
<table class="table float center" style="border:none; max-width:80%; margin:auto;">
|
||||
<tbody>
|
||||
<tr style="border:none;">
|
||||
<td style="border:none; width:50%">{{ \App\User::find($schedule->data['n1_p1_instructor'])->fullname()}}</td>
|
||||
<td style="border:none;width:50%">{{ $schedule->data['n1_p1_ocom'].' - '.$schedule->data['n1_p1_name']}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr>
|
||||
@if (!count($n1_p1_items) == 0)
|
||||
<table class="table float center" style="border:none; max-width:80%; margin:auto;">
|
||||
<thead>
|
||||
<tr style="border:none;">
|
||||
<th style="border:none;">ID</th>
|
||||
<th style="border:none;">Item</th>
|
||||
<th style="border:none;">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($n1_p1_items as $item)
|
||||
<tr style="border:none;">
|
||||
<td style="border:none; width:10%">{{$item}}</td>
|
||||
<td style="border:none;">{{\App\Item::find($item)->name}}</td>
|
||||
<td style="border:none;">{{\App\Item::find($item)->desc}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<div style="text-align:center;"><span class="badge badge-danger" style="display: initial;">Aucune réservation de matériel</span></div>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<table class="table float center" style="border:none; max-width:80%; margin:auto;">
|
||||
<tbody>
|
||||
<tr style="border:none;">
|
||||
<td style="border:none; width:50%">{{ \App\User::find($schedule->data['n1_p2_instructor'])->fullname()}}</td>
|
||||
<td style="border:none;width:50%">{{ $schedule->data['n1_p2_ocom'].' - '.$schedule->data['n1_p2_name']}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr>
|
||||
@if (!count($n1_p2_items) == 0)
|
||||
<table class="table float center" style="border:none; max-width:80%; margin:auto;">
|
||||
<thead>
|
||||
<tr style="border:none;">
|
||||
<th style="border:none;">ID</th>
|
||||
<th style="border:none;">Item</th>
|
||||
<th style="border:none;">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($n1_p2_items as $item)
|
||||
<tr style="border:none;">
|
||||
<td style="border:none; width:10%">{{$item}}</td>
|
||||
<td style="border:none;">{{\App\Item::find($item)->name}}</td>
|
||||
<td style="border:none;">{{\App\Item::find($item)->desc}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<div style="text-align:center;"><span class="badge badge-danger" style="display: initial;">Aucune réservation de matériel</span></div>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>2</th>
|
||||
<td>
|
||||
<table class="table float center" style="border:none; max-width:80%; margin:auto;">
|
||||
<tbody>
|
||||
<tr style="border:none;">
|
||||
<td style="border:none; width:50%">{{ \App\User::find($schedule->data['n2_p1_instructor'])->fullname()}}</td>
|
||||
<td style="border:none;width:50%">{{ $schedule->data['n2_p1_ocom'].' - '.$schedule->data['n2_p1_name']}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr>
|
||||
@if (!count($n2_p1_items) == 0)
|
||||
<table class="table float center" style="border:none; max-width:80%; margin:auto;">
|
||||
<thead>
|
||||
<tr style="border:none;">
|
||||
<th style="border:none;">ID</th>
|
||||
<th style="border:none;">Item</th>
|
||||
<th style="border:none;">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($n2_p1_items as $item)
|
||||
<tr style="border:none;">
|
||||
<td style="border:none; width:10%">{{$item}}</td>
|
||||
<td style="border:none;">{{\App\Item::find($item)->name}}</td>
|
||||
<td style="border:none;">{{\App\Item::find($item)->desc}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<div style="text-align:center;"><span class="badge badge-danger" style="display: initial;">Aucune réservation de matériel</span></div>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<table class="table float center" style="border:none; max-width:80%; margin:auto;">
|
||||
<tbody>
|
||||
<tr style="border:none;">
|
||||
<td style="border:none; width:50%">{{ \App\User::find($schedule->data['n2_p2_instructor'])->fullname()}}</td>
|
||||
<td style="border:none;width:50%">{{ $schedule->data['n2_p2_ocom'].' - '.$schedule->data['n2_p2_name']}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr>
|
||||
@if (!count($n2_p2_items) == 0)
|
||||
<table class="table float center" style="border:none; max-width:80%; margin:auto;">
|
||||
<thead>
|
||||
<tr style="border:none;">
|
||||
<th style="border:none;">ID</th>
|
||||
<th style="border:none;">Item</th>
|
||||
<th style="border:none;">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($n2_p2_items as $item)
|
||||
<tr style="border:none;">
|
||||
<td style="border:none; width:10%">{{$item}}</td>
|
||||
<td style="border:none;">{{\App\Item::find($item)->name}}</td>
|
||||
<td style="border:none;">{{\App\Item::find($item)->desc}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<div style="text-align:center;"><span class="badge badge-danger" style="display: initial;">Aucune réservation de matériel</span></div>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>3</th>
|
||||
<td>
|
||||
<table class="table float center" style="border:none; max-width:80%; margin:auto;">
|
||||
<tbody>
|
||||
<tr style="border:none;">
|
||||
<td style="border:none; width:50%">{{ \App\User::find($schedule->data['n3_p1_instructor'])->fullname()}}</td>
|
||||
<td style="border:none;width:50%">{{ $schedule->data['n3_p1_ocom'].' - '.$schedule->data['n3_p1_name']}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr>
|
||||
@if (!count($n3_p1_items) == 0)
|
||||
<table class="table float center" style="border:none; max-width:80%; margin:auto;">
|
||||
<thead>
|
||||
<tr style="border:none;">
|
||||
<th style="border:none;">ID</th>
|
||||
<th style="border:none;">Item</th>
|
||||
<th style="border:none;">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($n3_p1_items as $item)
|
||||
<tr style="border:none;">
|
||||
<td style="border:none; width:10%">{{$item}}</td>
|
||||
<td style="border:none;">{{\App\Item::find($item)->name}}</td>
|
||||
<td style="border:none;">{{\App\Item::find($item)->desc}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<div style="text-align:center;"><span class="badge badge-danger" style="display: initial;">Aucune réservation de matériel</span></div>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<table class="table float center" style="border:none; max-width:80%; margin:auto;">
|
||||
<tbody>
|
||||
<tr style="border:none;">
|
||||
<td style="border:none; width:50%">{{ \App\User::find($schedule->data['n3_p2_instructor'])->fullname()}}</td>
|
||||
<td style="border:none;width:50%">{{ $schedule->data['n3_p2_ocom'].' - '.$schedule->data['n3_p2_name']}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr>
|
||||
@if (!count($n3_p2_items) == 0)
|
||||
<table class="table float center" style="border:none; max-width:80%; margin:auto;">
|
||||
<thead>
|
||||
<tr style="border:none;">
|
||||
<th style="border:none;">ID</th>
|
||||
<th style="border:none;">Item</th>
|
||||
<th style="border:none;">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($n3_p2_items as $item)
|
||||
<tr style="border:none;">
|
||||
<td style="border:none; width:10%">{{$item}}</td>
|
||||
<td style="border:none;">{{\App\Item::find($item)->name}}</td>
|
||||
<td style="border:none;">{{\App\Item::find($item)->desc}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<div style="text-align:center;"><span class="badge badge-danger" style="display: initial;">Aucune réservation de matériel</span></div>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>Inventaire</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">Inventaire</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.buttons.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/jszip.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/pdfmake.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/vfs_fonts.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.html5.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.print.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.colVis.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables-init.js"></script>
|
||||
|
||||
@foreach ($schedules as $schedule)
|
||||
<script>
|
||||
(function($) {
|
||||
$(document).ready(function() {
|
||||
$('#data_{{$schedule->id}}').DataTable({
|
||||
"order": [[ 0, "asc" ]],
|
||||
"lengthMenu": [[25, 50, -1], [25, 50, "All"]],
|
||||
});
|
||||
} );
|
||||
})(jQuery);
|
||||
</script>
|
||||
@endforeach
|
||||
|
||||
<script type="text/javascript">
|
||||
function deleteEvent(pid){
|
||||
swal({
|
||||
title: 'Êtes vous certain ?',
|
||||
text: "Vous ne pourrez annuler cette action",
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Oui',
|
||||
cancelButtonText: 'Non'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
|
||||
(function($) {
|
||||
$.post('/api/item/delete?api_token='+api_token, { id: pid } , function(data) {
|
||||
console.log('Delete');
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
|
||||
swal(
|
||||
'Supprimé!',
|
||||
"L'item a été supprimé",
|
||||
'success'
|
||||
).then((result) => {
|
||||
if (result.value) {
|
||||
location.reload();
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
117
resources/views/admin/inventory/index.blade.php
Normal file
@@ -0,0 +1,117 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong class="card-title">Inventaire <a href="#"><i class="fa fa-question-circle" aria-hidden="true"></i>
|
||||
</a></strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<a name="add" id="add" class="btn btn-primary btn-block" href="/admin/item/add" role="button">Ajouter un item a l'inventaire</a>
|
||||
<hr>
|
||||
<table id="log-data" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID </th>
|
||||
<th>Nom</th>
|
||||
<th>Description</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
<td style="width:5%;">{{$item->id}}</td>
|
||||
<td>{{$item->name}}</td>
|
||||
<td>{{$item->desc}}</td>
|
||||
<td style="width: 12%;"><a href="/admin/item/edit/{{$item->id}}" type="button" class="btn btn-secondary"><i class="fa fa-cog"></i> Modifier</a><a type="button" class="btn btn-danger" onclick="deleteEvent({{$item->id}});"><i class="fa fa-times-circle" style="color:white;"></i></a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>Inventaire</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">Inventaire</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.buttons.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/jszip.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/pdfmake.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/vfs_fonts.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.html5.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.print.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.colVis.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables-init.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
(function($) {
|
||||
$(document).ready(function() {
|
||||
$('#log-data').DataTable({
|
||||
"order": [[ 0, "desc" ]],
|
||||
"lengthMenu": [[25, 50, -1], [25, 50, "All"]],
|
||||
});
|
||||
} );
|
||||
})(jQuery);
|
||||
|
||||
function deleteEvent(pid){
|
||||
swal({
|
||||
title: 'Êtes vous certain ?',
|
||||
text: "Vous ne pourrez annuler cette action",
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Oui',
|
||||
cancelButtonText: 'Non'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
|
||||
(function($) {
|
||||
$.post('/api/item/delete?api_token='+api_token, { id: pid } , function(data) {
|
||||
console.log('Delete');
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
|
||||
swal(
|
||||
'Supprimé!',
|
||||
"L'item a été supprimé",
|
||||
'success'
|
||||
).then((result) => {
|
||||
if (result.value) {
|
||||
location.reload();
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
161
resources/views/admin/inventory/show.blade.php
Normal file
@@ -0,0 +1,161 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong class="card-title">Matériel {{$schedule->data['n'.$niveau.'_p'.$periode.'_name']}} - {{$schedule->data['n'.$niveau.'_p'.$periode.'_ocom']}}<a href="#"><i class="fa fa-question-circle" aria-hidden="true"></i>
|
||||
</a></strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<h3>Matériel Réservé</h3>
|
||||
<br>
|
||||
<p>Cliquer sur la flèche a droite d'un item pour annuler la réservation</p>
|
||||
<hr>
|
||||
<table id="log-data" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Description</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
@if ($item !== null)
|
||||
<tr>
|
||||
<td>{{$item->name}}</td>
|
||||
<td>{{$item->desc}}</td>
|
||||
<td style="width: 12%;"><form action="/admin/inventory/remove/{{$schedule->id}}/{{$periode}}/{{$niveau}}" method="post">{{ csrf_field() }}<button type="submit" name="remove" value="{{$item->id}}" class="btn btn-danger"><i class="fa fa-arrow-right" style="color:white;"></i></button></form></td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<h3>Matériel Disponible</h3>
|
||||
<br>
|
||||
<p>Cliquer sur la flèche a gauche d'un item pour le réserver</p>
|
||||
<hr>
|
||||
<table id="log-data_2" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Nom</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($dispo_item as $item)
|
||||
@if ($item !== null)
|
||||
<tr>
|
||||
<td style="width: 12%;"><form action="/admin/inventory/add/{{$schedule->id}}/{{$periode}}/{{$niveau}}" method="post">{{ csrf_field() }}<button type="submit" name="add" class="btn btn-success" value="{{$item->id}}"><i class="fa fa-arrow-left" style="color:white;"></i></button></form></td>
|
||||
<td>{{$item->name}}</td>
|
||||
<td>{{$item->desc}}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<a href="/admin/calendar" class="btn btn-primary btn-block">Retour a l'horaire</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>Inventaire</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">Inventaire</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.buttons.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/jszip.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/pdfmake.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/vfs_fonts.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.html5.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.print.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.colVis.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables-init.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
(function($) {
|
||||
$(document).ready(function() {
|
||||
$('#log-data').DataTable({
|
||||
"order": [[ 0, "desc" ]],
|
||||
"lengthMenu": [[25, 50, -1], [25, 50, "All"]],
|
||||
});
|
||||
} );
|
||||
})(jQuery);
|
||||
|
||||
(function($) {
|
||||
$(document).ready(function() {
|
||||
$('#log-data_2').DataTable({
|
||||
"order": [[ 0, "desc" ]],
|
||||
"lengthMenu": [[25, 50, -1], [25, 50, "All"]],
|
||||
});
|
||||
} );
|
||||
})(jQuery);
|
||||
|
||||
function deleteEvent(pid){
|
||||
swal({
|
||||
title: 'Êtes vous certain ?',
|
||||
text: "Vous ne pourrez annuler cette action",
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Oui',
|
||||
cancelButtonText: 'Non'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
|
||||
(function($) {
|
||||
$.post('/api/item/delete?api_token='+api_token, { id: pid } , function(data) {
|
||||
console.log('Delete');
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
|
||||
swal(
|
||||
'Supprimé!',
|
||||
"L'item a été supprimé",
|
||||
'success'
|
||||
).then((result) => {
|
||||
if (result.value) {
|
||||
location.reload();
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
75
resources/views/admin/item/add.blade.php
Normal file
@@ -0,0 +1,75 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong class="card-title">Ajouter un item dans l'inventaire</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form action="/admin/item/add" method="post">
|
||||
@csrf
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="form-group">
|
||||
<label for="name">Nom</label>
|
||||
<input type="text" class="form-control" name="name" id="name" aria-describedby="helpname" placeholder="Projecteur" required>
|
||||
<small id="helpname" class="form-text text-muted">Nom</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="form-group">
|
||||
<label for="desc">Description</label>
|
||||
<textarea class="form-control" name="desc" id="desc" rows="5" required></textarea>
|
||||
<small id="helpname" class="form-text text-muted">Description de l'item</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>Inventaire</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">Inventaire</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.buttons.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/jszip.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/pdfmake.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/vfs_fonts.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.html5.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.print.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.colVis.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables-init.js"></script>
|
||||
|
||||
@endsection
|
||||
75
resources/views/admin/item/edit.blade.php
Normal file
@@ -0,0 +1,75 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong class="card-title">Ajouter un item dans l'inventaire</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form action="/admin/item/edit/{{$item->id}}" method="post">
|
||||
@csrf
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="form-group">
|
||||
<label for="name">Nom</label>
|
||||
<input type="text" class="form-control" name="name" id="name" aria-describedby="helpname" placeholder="Projecteur" value="{{$item->name}}" required>
|
||||
<small id="helpname" class="form-text text-muted">Nom</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="form-group">
|
||||
<label for="desc">Description</label>
|
||||
<textarea class="form-control" name="desc" id="desc" rows="5" required>{{$item->desc}}</textarea>
|
||||
<small id="helpname" class="form-text text-muted">Description de l'item</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>Inventaire</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">Inventaire</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.buttons.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/jszip.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/pdfmake.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/vfs_fonts.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.html5.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.print.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.colVis.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables-init.js"></script>
|
||||
|
||||
@endsection
|
||||
@@ -4,31 +4,30 @@
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong class="card-title">Messages au staff<a href="#"><i class="fa fa-question-circle" aria-hidden="true"></i>
|
||||
<strong class="card-title">Ajouter un poste <a href="#"><i class="fa fa-question-circle" aria-hidden="true"></i>
|
||||
</a></strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
||||
@foreach ($jobs as $job)
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="{{$job->name}}-tab" data-toggle="tab" href="#{{$job->name}}" role="tab" aria-controls="{{$job->name}}" aria-selected="false">{{$job->name}}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<form>
|
||||
<div class="tab-content pl-3 p-1" id="myTabContent">
|
||||
@foreach ($jobs as $job)
|
||||
<div class="tab-pane fade" id="{{$job->name}}" role="tabpanel" aria-labelledby="{{$job->name}}-tab">
|
||||
<h3>{{ $job->desc }}</h3>
|
||||
<form action="/admin/config/job/add" method="post">
|
||||
|
||||
@csrf
|
||||
|
||||
<div id="myTabContent">
|
||||
<div id="name" role="tabpanel">
|
||||
<div class="form-group">
|
||||
<label for="name">Nom du poste</label>
|
||||
<input type="text" class="form-control" name="name" id="name" aria-describedby="helpId" placeholder="" required>
|
||||
<small id="helpId" class="form-text text-muted">Nom du poste</small>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col-12"><textarea name="desc_{{$job->id}}" id="desc_{{$job->id}}" rows="9" class="form-control"></textarea>
|
||||
<div class="col-12"><textarea name="desc" id="desc" rows="9" class="form-control" required></textarea>
|
||||
<small class="form-text text-muted">Description du poste</small></div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Niveau d'accès</label></div>
|
||||
<div class="col col-md-3">
|
||||
<select name="event_type" id="event_type" class="form-control">
|
||||
<select name="acces_level" id="acces_level" class="form-control" required>
|
||||
<option value="0">Cadet</option>
|
||||
<option value="regular">Staff</option>
|
||||
<option value="pilotage">Officer</option>
|
||||
@@ -39,89 +38,87 @@
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Horaire détaillé</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il consulter les détails de l'horaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="schedule_see" name="schedule_see" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification horaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des événements a l'horaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="schedule_edit" name="schedule_edit" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation horaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements a l'horaire.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="schedule_notify" name="schedule_notify" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Consultation messages</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il consulter les messages</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="message_see" name="message_see" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification messages</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des messages</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="message_edit" name="message_edit" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation messages</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les messages.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="message_notify" name="message_notify" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification article</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des articles</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="paper_edit" name="paper_edit" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Publication articles</label><small class="form-text text-muted"> L'utilisateur avec ce poste peux t-il autoriser la publication ou appouver des changements a un articles</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="paper_publish" name="paper_publish" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation articles</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les articles.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="paper_notify" name="paper_notify" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Consultation inventaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il consulter l'inventaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="inventory_see" name="inventory_see" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification inventaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer l'inventaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="inventory_edit" name="inventory_edit" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation inventaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les articles.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="inventory_notify" name="inventory_notify" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification utilisateur</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des utilisateurs</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="user_edit" name="user_edit" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation utilisateur</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les utilisateurs.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="user_notify" name="user_notify" class="switch-input" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
<div class="card-footer">
|
||||
<button type="submit" class="btn btn-primary btn-sm">
|
||||
<i class="fa fa-dot-circle-o"></i> Submit
|
||||
@@ -168,60 +165,14 @@
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.colVis.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables-init.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
(function($) {
|
||||
$(document).ready(function() {
|
||||
$('#log-data').DataTable({
|
||||
"ordering": false,
|
||||
"order": [],
|
||||
"lengthMenu": [[3, 4, -1], [9, 12, "All"]],
|
||||
});
|
||||
} );
|
||||
})(jQuery);
|
||||
|
||||
function deleteEvent(pid){
|
||||
swal({
|
||||
title: 'Êtes vous certain ?',
|
||||
text: "Vous ne pourrez annuler cette action",
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Oui',
|
||||
cancelButtonText: 'Non'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
|
||||
(function($) {
|
||||
$.post('/api/message/delete', { id: pid } , function(data) {
|
||||
console.log('Delete');
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
|
||||
swal(
|
||||
'Supprimé!',
|
||||
"Le message a été supprimé",
|
||||
'success'
|
||||
).then((result) => {
|
||||
if (result.value) {
|
||||
location.reload();
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
<script src="https://cloud.tinymce.com/stable/tinymce.min.js?apiKey=r82pabvd9arn3fjb1e2fsolf2xpixuv4hwfwart4cf1fb7mx"></script>
|
||||
@foreach ($jobs as $job)
|
||||
<script>
|
||||
tinymce.init({
|
||||
selector: '#desc_'+<?php echo $job->id?>,
|
||||
selector: '#desc',
|
||||
branding: false,
|
||||
menubar: 'edit view format'
|
||||
});
|
||||
</script>
|
||||
@endforeach
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
178
resources/views/admin/job/edit.blade.php
Normal file
@@ -0,0 +1,178 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong class="card-title">Modification du poste : {{$job->name}}<a href="#"><i class="fa fa-question-circle" aria-hidden="true"></i>
|
||||
</a></strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form>
|
||||
<div class="tab-content pl-3 p-1" id="myTabContent">
|
||||
<div id="{{$job->name}}" role="tabpanel" aria-labelledby="{{$job->name}}-tab">
|
||||
<div class="row form-group">
|
||||
<div class="col-12"><textarea name="{{$job->id}}_desc" name="{{$job->id}}_desc" rows="9" class="form-control"></textarea>
|
||||
<small class="form-text text-muted">Description du poste</small></div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Niveau d'accès</label></div>
|
||||
<div class="col col-md-3">
|
||||
<select name="{{$job->id}}_event_type" name="{{$job->id}}_event_type" class="form-control">
|
||||
@switch($job->acces_level)
|
||||
@case(1)
|
||||
<option value="1">Staff</option>
|
||||
@break
|
||||
@case(2)
|
||||
<option value="2">Officer</option>
|
||||
@break
|
||||
@default
|
||||
<option value="0">Cadet</option>
|
||||
@endswitch
|
||||
<option value="0">Cadet</option>
|
||||
<option value="1">Staff</option>
|
||||
<option value="2">Officer</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Horaire détaillé</label><small class="form-text text-muted">|| {{$job->schedule_see}} || L'utilisateur avec ce poste peut t'il consulter les détails de l'horaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_schedule_see" name="{{$job->id}}_schedule_see" class="switch-input" @if($job->schedule_see == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification horaire</label><small class="form-text text-muted">|| {{$job->schedule_edit}} || L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des événements a l'horaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_schedule_edit" name="{{$job->id}}_schedule_edit" class="switch-input" @if($job->schedule_edit == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation horaire</label><small class="form-text text-muted">|| {{$job->schedule_notify}} || L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements a l'horaire.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_schedule_notify" name="{{$job->id}}_schedule_notify" class="switch-input" @if($job->schedule_notify == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Consultation messages</label><small class="form-text text-muted">|| {{$job->message_see}} || L'utilisateur avec ce poste peut t'il consulter les messages</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_message_see" name="{{$job->id}}_message_see" class="switch-input" @if($job->message_see == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification messages</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des messages</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_message_edit" name="{{$job->id}}_message_edit" class="switch-input" @if($job->message_edit == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation messages</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les messages.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_message_notify" name="{{$job->id}}_message_notify" class="switch-input" @if($job->message_notify == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification article</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des articles</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_paper_edit" name="{{$job->id}}_paper_edit" class="switch-input" @if($job->paper_edit == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Publication articles</label><small class="form-text text-muted"> L'utilisateur avec ce poste peux t-il autoriser la publication ou appouver des changements a un articles</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_paper_publish" name="{{$job->id}}_paper_publish" class="switch-input" @if($job->paper_publish == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation articles</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les articles.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_paper_notify" name="{{$job->id}}_paper_notify" class="switch-input" @if($job->paper_notify == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Consultation inventaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il consulter l'inventaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_inventory_see" name="{{$job->id}}_inventory_see" class="switch-input" @if($job->inventory_see == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification inventaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer l'inventaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_inventory_edit" name="{{$job->id}}_inventory_edit" class="switch-input" @if($job->inventory_edit == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation inventaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les articles.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_inventory_notify" name="{{$job->id}}_inventory_notify" class="switch-input" @if($job->inventory_notify == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification utilisateur</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des utilisateurs</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_user_edit" name="{{$job->id}}_user_edit" class="switch-input" @if($job->user_edit == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation utilisateur</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les utilisateurs.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_user_notify" name="{{$job->id}}_user_notify" class="switch-input" @if($job->user_notify == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<button type="submit" class="btn btn-primary btn-sm">
|
||||
<i class="fa fa-dot-circle-o"></i> Submit
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>{{ trans('admin/dashboard.page_title')}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">{{ trans('admin/dashboard.breadcrumb')}}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.buttons.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/jszip.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/pdfmake.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/vfs_fonts.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.html5.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.print.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.colVis.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables-init.js"></script>
|
||||
<script src="https://cloud.tinymce.com/stable/tinymce.min.js?apiKey=r82pabvd9arn3fjb1e2fsolf2xpixuv4hwfwart4cf1fb7mx"></script>
|
||||
<script>
|
||||
tinymce.init({
|
||||
selector: '#<?php echo $job->id?>_desc',
|
||||
branding: false,
|
||||
menubar: 'edit view format'
|
||||
});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -10,18 +10,16 @@
|
||||
<div class="card-body">
|
||||
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
||||
@foreach ($jobs as $job)
|
||||
<li class="nav-item">
|
||||
<li class="nav-item nav-stacked">
|
||||
<a class="nav-link" id="{{$job->name}}-tab" data-toggle="tab" href="#{{$job->name}}" role="tab" aria-controls="{{$job->name}}" aria-selected="false">{{$job->name}}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<form>
|
||||
<div class="tab-content pl-3 p-1" id="myTabContent">
|
||||
@foreach ($jobs as $job)
|
||||
<div class="tab-pane fade" id="{{$job->name}}" role="tabpanel" aria-labelledby="{{$job->name}}-tab">
|
||||
<h3>{{ $job->desc }}</h3>
|
||||
<div class="row form-group">
|
||||
<div class="col-12"><textarea name="{{$job->id}}_desc" name="{{$job->id}}_desc" rows="9" class="form-control"></textarea>
|
||||
<div class="col-12">{{ $job->desc }}
|
||||
<small class="form-text text-muted">Description du poste</small></div>
|
||||
</div>
|
||||
<hr>
|
||||
@@ -133,12 +131,9 @@
|
||||
@endforeach
|
||||
|
||||
<div class="card-footer">
|
||||
<button type="submit" class="btn btn-primary btn-sm">
|
||||
<i class="fa fa-dot-circle-o"></i> Submit
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
0
resources/views/admin/job/show.blade.php
Normal file
115
resources/views/admin/local/index.blade.php
Normal file
@@ -0,0 +1,115 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong class="card-title">Inventaire <a href="#"><i class="fa fa-question-circle" aria-hidden="true"></i>
|
||||
</a></strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="log-data" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID </th>
|
||||
<th>Nom</th>
|
||||
<th>Description</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($locals as $local)
|
||||
<tr>
|
||||
<td style="width:5%;">{{$local->id}}</td>
|
||||
<td>{{$local->name}}</td>
|
||||
<td>{{$local->desc}}</td>
|
||||
<td style="width: 12%;"><a href="/admin/inventory/edit/{{$local->id}}" type="button" class="btn btn-secondary"><i class="fa fa-cog"></i> Modifier</a><a type="button" class="btn btn-danger" onclick="deleteEvent({{$local->id}});"><i class="fa fa-times-circle" style="color:white;"></i></a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>Inventaire</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">Inventaire</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.buttons.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/jszip.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/pdfmake.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/vfs_fonts.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.html5.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.print.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.colVis.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables-init.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
(function($) {
|
||||
$(document).ready(function() {
|
||||
$('#log-data').DataTable({
|
||||
"order": [[ 0, "desc" ]],
|
||||
"lengthMenu": [[25, 50, -1], [25, 50, "All"]],
|
||||
});
|
||||
} );
|
||||
})(jQuery);
|
||||
|
||||
function deleteEvent(pid){
|
||||
swal({
|
||||
title: 'Êtes vous certain ?',
|
||||
text: "Vous ne pourrez annuler cette action",
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Oui',
|
||||
cancelButtonText: 'Non'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
|
||||
(function($) {
|
||||
$.post('/api/local/delete?api_token='+api_token, { id: pid } , function(data) {
|
||||
console.log('Delete');
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
|
||||
swal(
|
||||
'Supprimé!',
|
||||
"Le local a été supprimé",
|
||||
'success'
|
||||
).then((result) => {
|
||||
if (result.value) {
|
||||
location.reload();
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
169
resources/views/admin/user/edit.blade.php
Normal file
@@ -0,0 +1,169 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong class="card-title">Modifier un utilisateur <a href="#"><i class="fa fa-question-circle" aria-hidden="true"></i>
|
||||
</a></strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form action="/admin/user/edit" method="post">
|
||||
@csrf
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label for="firstname">Prénom</label>
|
||||
<input type="text" class="form-control" name="firstname" id="firstname" aria-describedby="helpId" placeholder="John" required value={{$user->firstname}}>
|
||||
<small id="helpId" class="form-text text-muted"><span class="badge badge-warning">Requis</span></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label for="lastname">Nom de famille</label>
|
||||
<input type="text" class="form-control" name="lastname" id="lastname" aria-describedby="helpId" placeholder="Doe" required value={{$user->lastname}}>
|
||||
<small id="helpId" class="form-text text-muted"><span class="badge badge-warning">Requis</span></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="alert alert-warning" id="email_alert" role="alert" style="display:none;">
|
||||
Les adresses email doivent être identique
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" class="form-control" name="email" id="email" aria-describedby="emailHelp" placeholder="exemple@c-cms.cf" onkeyup="checkEmail()" required value={{$user->email}}>
|
||||
<small id="emailHelp" class="form-text text-muted"><span class="badge badge-warning">Requis</span></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label for="email">Confirmer l'addresse email</label>
|
||||
<input type="email" class="form-control" name="emailc" id="emailc" aria-describedby="emailHelp" placeholder="exemple@c-cms.cf" onkeyup="checkEmail()" required value={{$user->email}}>
|
||||
<small id="emailHelp" class="form-text text-muted"><span class="badge badge-warning">Requis</span></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label for="adresse">Adresse</label>
|
||||
<input type="text" class="form-control" name="adresse" id="adresse" aria-describedby="helpId" placeholder="14 ave Des Rue, Rimouski" value={{$user->adress}}>
|
||||
<small id="helpId" class="form-text text-muted"></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label for="telephone">Telephone</label>
|
||||
<input type="tel"
|
||||
class="form-control" name="telephone" id="telephone" aria-describedby="helpId" placeholder="(XXX) XXX-XXXX" value={{$user->telephone}}>
|
||||
<small id="helpId" class="form-text text-muted"><span class="badge badge-info">Si vous souhaiter recevoir des notifications par SMS</span></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<div class="form-group">
|
||||
<label for="sexe">Sexe</label>
|
||||
<select class="form-control" name="sexe" id="sexe" required>
|
||||
@switch($user->sexe)
|
||||
@case("m")
|
||||
<option value="m">Homme</option>
|
||||
@break
|
||||
@case("f")
|
||||
<option value="f">Femme</option>
|
||||
@break
|
||||
@default
|
||||
<option value="a">Autre</option>
|
||||
@endswitch
|
||||
<option value="m">Homme</option>
|
||||
<option value="f">Femme</option>
|
||||
<option value="a">Autre</option>
|
||||
</select>
|
||||
<small id="helpId" class="form-text text-muted"><span class="badge badge-warning">Requis</span></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<div class="form-group">
|
||||
<label for="age">Age</label>
|
||||
<input type="number" class="form-control" name="age" id="age" aria-describedby="helpId" placeholder="Age" min="0" max="100" value={{$user->age}}>
|
||||
<small id="helpId" class="form-text text-muted"></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<div class="form-group">
|
||||
<label for="rank">Grade</label>
|
||||
<select class="form-control" name="rank" id="rank" required>
|
||||
<option value={{$user->rank}}>{{\App\Rank::find($user->rank)->name}}</option>
|
||||
@foreach ($RankList as $rank)
|
||||
<option value="{{$rank->id}}">{{$rank->name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<small id="helpId" class="form-text text-muted"><span class="badge badge-warning">Requis</span></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<div class="form-group">
|
||||
<label for="job">Poste</label>
|
||||
<select class="form-control" name="job" id="job" required>
|
||||
<option value={{$user->job}}>{{\App\Job::find($user->job)->name}}</option>
|
||||
@foreach ($JobsList as $job)
|
||||
<option value="{{$job->id}}">{{$job->name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<small id="helpId" class="form-text text-muted"><span class="badge badge-warning">Requis</span></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="alert alert-warning" id="psw_alert" role="alert" style="display:none;">
|
||||
Les mot de passe doivent être identique
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label for="psw">Mot de passe</label>
|
||||
<input type="password" class="form-control" name="psw" id="psw" placeholder="Supermotdepasse" onkeyup="checkPassword()">
|
||||
<small id="helpId" class="form-text text-muted"><span class="badge badge-warning">Requis</span></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label for="pswc">Confirmer le mot de passe</label>
|
||||
<input type="password" class="form-control" name="pswc" id="pswc" placeholder="Supermotdepasse" onkeyup="checkPassword()">
|
||||
<small id="helpId" class="form-text text-muted"><span class="badge badge-warning">Requis</span></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" id="submit" class="btn btn-primary">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>Ajouter un utilisateur</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">utilisateur/Ajouter</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/assets/admin/assets/js/user.js"></script>
|
||||
@endsection
|
||||
@@ -23,46 +23,56 @@
|
||||
<li><i class="menu-icon fa fa-times"></i><a href="/admin/message">Supprimer un message</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="menu-item-has-children dropdown">
|
||||
<!--<li class="menu-item-has-children dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-map"></i>{{ trans('admin/sidebar.blueprint')}}</a>
|
||||
<ul class="sub-menu children dropdown-menu">
|
||||
<li><i class="menu-icon fa fa-list"></i><a href="#">{{ trans('admin/sidebar.public_page_see')}}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</li>-->
|
||||
|
||||
<h3 class="menu-title">{{ trans('admin/sidebar.admin_title')}}</h3><!-- /.menu-title -->
|
||||
|
||||
<li class="menu-item-has-children dropdown">
|
||||
<!--<li class="menu-item-has-children dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-newspaper-o"></i>{{ trans('admin/sidebar.public_page_title')}}</a>
|
||||
<ul class="sub-menu children dropdown-menu">
|
||||
<li><i class="menu-icon fa fa-list"></i><a href="#">{{ trans('admin/sidebar.public_page_see')}}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</li>-->
|
||||
<li>
|
||||
<a href="/admin/calendar"> <i class="menu-icon fa fa-calendar"></i>Horaire</a>
|
||||
</li>
|
||||
<li class="menu-item-has-children dropdown">
|
||||
<!--<li class="menu-item-has-children dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-cogs"></i>{{ trans('admin/sidebar.services_title')}}</a>
|
||||
<ul class="sub-menu children dropdown-menu">
|
||||
<li><i class="menu-icon fa fa-line-chart"></i><a href="charts-chartjs.html">Chart JS</a></li>
|
||||
<li><i class="menu-icon fa fa-area-chart"></i><a href="charts-flot.html">Flot Chart</a></li>
|
||||
<li><i class="menu-icon fa fa-pie-chart"></i><a href="charts-peity.html">Peity Chart</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</li>-->
|
||||
<li class="menu-item-has-children dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-archive"></i>Inventaire</a>
|
||||
<ul class="sub-menu children dropdown-menu">
|
||||
<li><i class="menu-icon fa fa-archive"></i><a href="/admin/inventory/">Inventaire</a></li>
|
||||
<li><i class="menu-icon fa fa-plus"></i><a href="/admin/item/add">Ajouter un item</a></li>
|
||||
<li><i class="menu-icon fa fa-bookmark"></i><a href="/admin/inventory/booking">Réservation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="menu-item-has-children dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-area-chart"></i>{{ trans('admin/sidebar.stats_title')}}</a>
|
||||
<ul class="sub-menu children dropdown-menu">
|
||||
<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/stats/">Vue d'ensemble</a></li>
|
||||
<!--<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/stats/">Vue d'ensemble</a></li>-->
|
||||
<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/stats/log">Liste des activitées</a></li>
|
||||
<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/stats/message">Message de la semaine</a></li>
|
||||
<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/stats/plan">Remise des plans de cours</a></li>
|
||||
<!--<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/stats/message">Message de la semaine</a></li>
|
||||
<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/stats/plan">Remise des plans de cours</a></li>-->
|
||||
</ul>
|
||||
</li>
|
||||
<li class="menu-item-has-children dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-users"></i>{{ trans('admin/sidebar.users_title')}}</a>
|
||||
<ul class="sub-menu children dropdown-menu">
|
||||
<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/log">Activitées des utilisateurs</a></li>
|
||||
<li><i class="menu-icon fa fa-plus"></i><a href="/admin/user/add">Ajouter un utilisateur</a></li>
|
||||
<li><i class="menu-icon fa fa-list"></i><a href="/admin/user">Liste des utilisateurs</a></li>
|
||||
<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/log">Activitées des utilisateurs</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li class="menu-item-has-children dropdown">
|
||||
@@ -71,7 +81,7 @@
|
||||
<li><i class="menu-icon fa fa-cog"></i><a href="/admin/config">Général</a></li>
|
||||
<li><i class="menu-icon fa fa-building"></i><a href="/admin/config/local">Locaux</a></li>
|
||||
<li><i class="menu-icon fa fa-briefcase"></i><a href="/admin/config/job">Poste</a></li>
|
||||
<li><i class="menu-icon fa fa-address-card"></i><a href="/admin/config/rank">Grade</a></li>
|
||||
<!--<li><i class="menu-icon fa fa-address-card"></i><a href="/admin/config/rank">Grade</a></li>-->
|
||||
</ul>
|
||||
</li>
|
||||
<h3 class="menu-title">{{ trans('admin/sidebar.tools_title') }}</h3>
|
||||
|
||||
0
resources/views/layouts/ecc/main.blade.php
Normal file
@@ -77,13 +77,13 @@
|
||||
<section class="spotlight">
|
||||
<div class="image"><img src="/assets/public/images/survie_3.png" alt="" /></div><div class="content">
|
||||
<h2>SURVIES D'AUTOMNE ET D'HIVER</h2>
|
||||
<p>Exercices aventuriers de 3 jours en forêt pendant lesquels nos cadets développent leurs compétences en survie. Plaisir et dépassement de soi sont au rendez-vous !</p>
|
||||
<p>Exercices aventuriers de 3 jours en forêt pendant lesquels nos cadets développent leurs compétences de survie. Plaisir et dépassement de soi sont au rendez-vous !</p>
|
||||
</div>
|
||||
</section>
|
||||
<section class="spotlight">
|
||||
<div class="image"><img src="/assets/public/images/planeur_romeo_vachon.png" alt="" /></div><div class="content">
|
||||
<h2>LE PILOTAGE</h2>
|
||||
<p>Il s'agit de ce qui nous diférencie des autres éléments, les cours de pilotage. Les cadets ont la possibilité d'obtenir leurs licence de pilotage gratuitement! Les cours donnés une fois par semaine entretiennent le culte des Pilots!</p>
|
||||
<p>Il s'agit de ce qui nous diférencie des autres éléments, les cours de pilotage. Les cadets ont la possibilité d'obtenir leur licence de pilotage gratuitement! Les cours donnés une fois par semaine entretiennent le culte des Pilots!</p>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
@@ -124,6 +124,10 @@
|
||||
<h3><img src="/assets/public/images/CL-415.png" alt="Avion anti-incendie" width="100%"></h3>
|
||||
<p>Lors d'une autre activité spéciale, les cadets ont eu la chance de visiter l'intérieur d'un CL-415 et de discuter avec les pilotes.</p>
|
||||
</li>
|
||||
<li>
|
||||
<h3><img src="/assets/public/images/RissanenAiles.png" alt="Cadet-cadre qui obtient ses licences de planeur" width="100%"></h3>
|
||||
<p>À la fin de cet été, un de nos cadets-cadres sortants, a obtenu ses ailes de planeur, à la suite d'un camp de 6 semaines. Félicitation!</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -28,6 +28,9 @@ Route::middleware('auth:api')->group(function () {
|
||||
/** User Route */
|
||||
Route::post('/user/delete', 'UserController@destroy');
|
||||
|
||||
/** Inventory Route */
|
||||
Route::post('/item/delete', 'ItemController@destroy');
|
||||
|
||||
Route::get('/user/perm/{id}', function($id) {
|
||||
$user = \App\User::find($id);
|
||||
return $user->getPerm("schedule_edit");
|
||||
|
||||
@@ -47,9 +47,29 @@ Route::middleware(['auth','admin'])->group(function () {
|
||||
Route::get('/admin/user' , 'UserController@index');
|
||||
Route::get('/admin/user/add' , 'UserController@create');
|
||||
Route::post('/admin/user/add' , 'UserController@store');
|
||||
Route::get('/admin/user/edit/{id}' , 'UserController@edit');
|
||||
Route::post('/admin/user/edit' , 'UserController@update');
|
||||
|
||||
/** Config */
|
||||
Route::get('/admin/config/job' , 'JobController@index');
|
||||
Route::get('/admin/config/job/add' , 'JobController@create');
|
||||
Route::post('/admin/config/job/add' , 'JobController@store');
|
||||
Route::get('/admin/config/job/edit/{id}' , 'JobController@edit');
|
||||
|
||||
/** Inventory */
|
||||
Route::get('/admin/inventory' , 'InventoryController@index');
|
||||
Route::get('/admin/inventory/booking' , 'InventoryController@booking');
|
||||
Route::get('/admin/inventory/{id}/{periode}/{niveau}' , 'InventoryController@show');
|
||||
Route::post('/admin/inventory/add/{id}/{periode}/{niveau}' , 'InventoryController@store');
|
||||
Route::post('/admin/inventory/remove/{id}/{periode}/{niveau}' , 'InventoryController@destroy');
|
||||
|
||||
/** Item */
|
||||
Route::get('/admin/item/add' , 'ItemController@create');
|
||||
Route::get('/admin/item/edit/{id}' , 'ItemController@edit');
|
||||
Route::post('/admin/item/add' , 'ItemController@store');
|
||||
Route::post('/admin/item/edit/{id}' , 'ItemController@update');
|
||||
/** Local */
|
||||
Route::get('/admin/config/local' , 'LocalController@index');
|
||||
|
||||
});
|
||||
|
||||
|
||||
3
vendor/composer/autoload_classmap.php
vendored
@@ -26,11 +26,14 @@ return array(
|
||||
'App\\Http\\Controllers\\TaskController' => $baseDir . '/app/Http/Controllers/TaskController.php',
|
||||
'App\\Http\\Controllers\\UserController' => $baseDir . '/app/Http/Controllers/UserController.php',
|
||||
'App\\Http\\Kernel' => $baseDir . '/app/Http/Kernel.php',
|
||||
'App\\Http\\Middleware\\AccesAdmin' => $baseDir . '/app/Http/Middleware/AccesAdmin.php',
|
||||
'App\\Http\\Middleware\\AccesStaff' => $baseDir . '/app/Http/Middleware/AccesStaff.php',
|
||||
'App\\Http\\Middleware\\EncryptCookies' => $baseDir . '/app/Http/Middleware/EncryptCookies.php',
|
||||
'App\\Http\\Middleware\\RedirectIfAuthenticated' => $baseDir . '/app/Http/Middleware/RedirectIfAuthenticated.php',
|
||||
'App\\Http\\Middleware\\TrimStrings' => $baseDir . '/app/Http/Middleware/TrimStrings.php',
|
||||
'App\\Http\\Middleware\\TrustProxies' => $baseDir . '/app/Http/Middleware/TrustProxies.php',
|
||||
'App\\Http\\Middleware\\VerifyCsrfToken' => $baseDir . '/app/Http/Middleware/VerifyCsrfToken.php',
|
||||
'App\\Item' => $baseDir . '/app/Item.php',
|
||||
'App\\Job' => $baseDir . '/app/Job.php',
|
||||
'App\\Local' => $baseDir . '/app/Local.php',
|
||||
'App\\Log' => $baseDir . '/app/Log.php',
|
||||
|
||||
3
vendor/composer/autoload_static.php
vendored
@@ -410,11 +410,14 @@ class ComposerStaticInit7aa8410dad307922e6e62bcfdfadda15
|
||||
'App\\Http\\Controllers\\TaskController' => __DIR__ . '/../..' . '/app/Http/Controllers/TaskController.php',
|
||||
'App\\Http\\Controllers\\UserController' => __DIR__ . '/../..' . '/app/Http/Controllers/UserController.php',
|
||||
'App\\Http\\Kernel' => __DIR__ . '/../..' . '/app/Http/Kernel.php',
|
||||
'App\\Http\\Middleware\\AccesAdmin' => __DIR__ . '/../..' . '/app/Http/Middleware/AccesAdmin.php',
|
||||
'App\\Http\\Middleware\\AccesStaff' => __DIR__ . '/../..' . '/app/Http/Middleware/AccesStaff.php',
|
||||
'App\\Http\\Middleware\\EncryptCookies' => __DIR__ . '/../..' . '/app/Http/Middleware/EncryptCookies.php',
|
||||
'App\\Http\\Middleware\\RedirectIfAuthenticated' => __DIR__ . '/../..' . '/app/Http/Middleware/RedirectIfAuthenticated.php',
|
||||
'App\\Http\\Middleware\\TrimStrings' => __DIR__ . '/../..' . '/app/Http/Middleware/TrimStrings.php',
|
||||
'App\\Http\\Middleware\\TrustProxies' => __DIR__ . '/../..' . '/app/Http/Middleware/TrustProxies.php',
|
||||
'App\\Http\\Middleware\\VerifyCsrfToken' => __DIR__ . '/../..' . '/app/Http/Middleware/VerifyCsrfToken.php',
|
||||
'App\\Item' => __DIR__ . '/../..' . '/app/Item.php',
|
||||
'App\\Job' => __DIR__ . '/../..' . '/app/Job.php',
|
||||
'App\\Local' => __DIR__ . '/../..' . '/app/Local.php',
|
||||
'App\\Log' => __DIR__ . '/../..' . '/app/Log.php',
|
||||
|
||||