Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stylized mygroups,mypreferences pages #128

Merged
merged 1 commit into from
May 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/resources/views/details.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
<div class="row page black">
<div class="col-md-4 col-md-offset-4">
<div class="login-panel panel panel-default">
<div class="panel-heading"><b>Details</b></div>
<div class="panel-heading text-center">
<b>Your details...</b>
</div>
<div class="panel-body">
<fieldset>
<div class="form-group">
Expand Down
65 changes: 33 additions & 32 deletions app/resources/views/mygroups.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,48 +5,49 @@
@section('content')

<div class="row">
<div class="col-md-6 col-md-offset-3 ">
<div class="col-md-8 col-md-offset-2">
<div class="panel">
<div class="panel-heading">
<h4><b>Change/Update your joined groups!</b></h4>
<div class="panel-heading text-center">
<h3><b>Delete/Update your joined groups!</b></h3>
</div>
<div class="panel-body">
@foreach ($groups as $group)
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-0">
<table class="table table-hover">
<tbody>
<tr>
<td class="col-sm-8 col-md-6 col-md-offset-2">
<h5><b>Name : </b><span>{{ $group->name }}</span></h5>
<h5><b>Description : </b><span>{{ $group->description}}</span></h5>
</td>
<td class="col-md-0">
<div class=" col-md-offset-2">
<br><a href={{route('groupdelete', $group->id)}} style="color:green"><h5>Delete </h5></b></a>
</div>
</td>
<td class="col-md-0">
<div class="col-md-offset-2">
<br><a href={{ route('products') }} style="color:green"><b><h5>View products</h5></b></a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-md-6">
<h4><b>Name : </b><span>{{ $group->name }}</span></h4>
<h4><b>Description : </b><span>{{ $group->description}}</span></h4>
</div>
<div class="col-md-2">
<a href={{route('groupdelete', $group->id)}} class="btn btn-primary my-btn btn-start my-btn-dropdown">Delete</a>
</div>
<div class="col-md-2">
<a href={{ route('products') }} class="btn btn-primary my-btn btn-start my-btn-dropdown">View products</a>
</div>
</div>
</div>
@endforeach
</div>
</div>


</div>
</div>



<style>
.row {
margin-right: 0px;
margin-left: 0px;
margin-top: 5px;
margin-bottom: 5px;
}
.container {
margin-top: 10px;
margin-bottom: 5px;
}
b {
color:#2F937B;
}
.col-md-2 {
margin-top: 17px;
}
</style>

@endsection
18 changes: 13 additions & 5 deletions app/resources/views/mypreferences.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div class="panel-body">
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-0">
<div class="col-md-6">

{{ Form::open(array('url' => route('products'))) }}
{{ csrf_field() }}
Expand All @@ -33,15 +33,15 @@
<tbody>
<tr>
<h3> {{ $characteristic->category->name }}</h3>
<td class="col-md-6 col-md-offset-2">
<div class="col-md-10">
<input type="checkbox" name="characteristic_name" value="">{{ $characteristic->name }}: {{ $characteristic->values() }}
</td>
</div>
</tr>
</tbody>
</table>
@endforeach
<div class="col-md-12">
<button type="submit" class="btn btn-block btn-primary my-btn">Search by my preferences</button>
<div class="col-md-9 col-md-offset-3">
<button type="submit" class="btn btn-block btn-primary my-btn btn-start my-btn-dropdown">Search by selected preferences</button>
</div>
{{ Form::close() }}
</div>
Expand All @@ -52,5 +52,13 @@
</div>
</div>
</div>
<style>
input[type=checkbox]{
margin: 10px 10px 10px;
}
h4 {
font-size: 20px;
}
</style>

@endsection