Skip to content

Commit

Permalink
MOAR BOOTSTRAP
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Nov 29, 2013
1 parent 809e176 commit 2e916d0
Show file tree
Hide file tree
Showing 9 changed files with 279 additions and 254 deletions.
2 changes: 1 addition & 1 deletion app/views/backend/categories/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<input type="hidden" name="_token" value="{{ csrf_token() }}" />

<!-- Name -->
<div class="form-group {{ $errors->has('asset_tag') ? ' has-error' : '' }}">
<div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}">
<label for="name" class="col-md-2 control-label">Category Name</label>
<div class="col-md-7">
<input class="form-control" type="text" name="name" id="name" value="{{ Input::old('name', $category->name) }}" />
Expand Down
67 changes: 32 additions & 35 deletions app/views/backend/depreciations/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,57 +14,54 @@

{{-- Page content --}}
@section('content')
<div class="page-header">
<h3>

<div class="row header">
<div class="col-md-12">
<a href="{{ route('depreciations') }}" class="btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
<h3>
@if ($depreciation->id)
Update Depreciation
@else
Create Depreciation
@endif

<div class="pull-right">
<a href="{{ route('depreciations') }}" class="btn-flat gray"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
</div>
</h3>
</h3>
</div>
</div>

<div class="row form-wrapper">

<form class="form-horizontal" method="post" action="" autocomplete="off">
<!-- CSRF Token -->
<input type="hidden" name="_token" value="{{ csrf_token() }}" />

<!-- Tabs Content -->
<div class="tab-content">

<!-- Name -->
<div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}">
<label for="name" class="col-md-4 control-label">Depreciation Name</label>
<div class="col-md-6">
<input class="form-control" type="text" name="name" id="name" value="{{ Input::old('name', $depreciation->name) }}" />
{{ $errors->first('name', '<span class="alert-msg"><i class="icon-remove-sign"></i> :message</span>') }}
</div>
</div>

<div class="tab-pane active" id="tab-general">
<!-- Class Title -->
<div class="form-group {{ $errors->has('name') ? 'error' : '' }}">
<label class="control-label" for="name">Depreciation Class Name</label>
<div class="controls">
<input class="col-md-6" type="text" name="name" id="name" value="{{ Input::old('name', $depreciation->name) }}" />
{{ $errors->first('name', '<span class="help-inline">:message</span>') }}
</div>
<!-- Name -->
<div class="form-group {{ $errors->has('months') ? ' has-error' : '' }}">
<label for="months" class="col-md-4 control-label">Number of Months</label>
<div class="col-md-1">
<input class="form-control" type="text" name="months" id="months" value="{{ Input::old('name', $depreciation->months) }}" />
{{ $errors->first('months', '<span class="alert-msg"><i class="icon-remove-sign"></i> :message</span>') }}
</div>
</div>
<!-- Months -->
<div class="form-group {{ $errors->has('months') ? 'error' : '' }}">
<label class="control-label" for="name">Number of Months</label>
<div class="controls">
<input class="col-md-2" type="text" name="months" id="months" value="{{ Input::old('months', $depreciation->months) }}" />
{{ $errors->first('months', '<span class="help-inline">:message</span>') }}

<!-- Form actions -->
<div class="form-group">
<label class="col-md-4 control-label"></label>
<div class="col-md-7">
<a class="btn btn-link" href="{{ route('depreciations') }}">@lang('general.cancel')</a>
<button type="submit" class="btn btn-success"><i class="icon-ok icon-white"></i> @lang('general.save')</button>
</div>
</div>
</div>

</form>

<!-- Form actions -->
<div class="form-group">
<div class="controls">
<a class="btn btn-link" href="{{ route('depreciations') }}">@lang('general.cancel')</a>
<button type="submit" class="btn-flat success"><i class="icon-ok icon-white"></i> @lang('general.save')</button>
</div>
</div>
</form>

</div>

@stop
44 changes: 22 additions & 22 deletions app/views/backend/depreciations/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,24 @@

{{-- Page content --}}
@section('content')
<div id="pad-wrapper" class="user-profile">
<!-- header -->
<h3 class="name">Asset Depreciations
<div class="pull-right">
<a href="{{ route('create/depreciations') }}" class="btn-flat success"><i class="icon-plus-sign icon-white"></i> Create New</a>
</div>
</h3>


<div class="row-fluid profile">
<!-- bio, new note & orders column -->
<div class="col-md-9 bio">
<div class="profile-box">
<br>
<!-- checked out assets table -->

<table id="example">

<div class="row header">
<div class="col-md-12">
<a href="{{ route('create/depreciations') }}" class="btn btn-success pull-right"><i class="icon-plus-sign icon-white"></i> Create New</a>
<h3>Asset Depreciations</h3>
</div>
</div>

<div class="user-profile">
<div class="row profile">
<div class="col-md-9 bio">

<table id="example">
<thead>
<tr role="row">
<th class="col-md-4">@lang('admin/depreciations/table.title')</th>
<th class="col-md-2">@lang('admin/depreciations/table.term')</th>
<th class="col-md-3">@lang('table.actions')</th>
<th class="col-md-2">@lang('table.actions')</th>
</tr>
</thead>
<tbody>
Expand All @@ -38,8 +34,10 @@
<td>{{ $depreciation->name }}</td>
<td>{{ $depreciation->months }} @lang('admin/depreciations/table.months') </td>
<td>
<a href="{{ route('update/depreciations', $depreciation->id) }}" class="btn-flat white">@lang('button.edit')</a>
<a data-html="false" class="btn-flat danger delete-asset" data-toggle="modal" href="{{ route('delete/depreciations', $depreciation->id) }}" data-content="Are you sure you wish to delete this depreciation class?" data-title="Delete {{ htmlspecialchars($depreciation->name) }}?" onClick="return false;">@lang('button.delete')</a>
<a href="{{ route('update/depreciations', $depreciation->id) }}" class="btn btn-warning"><i class="icon-pencil icon-white"></i></a>
<a data-html="false" class="btn delete-asset btn-danger" data-toggle="modal" href="{{ route('delete/depreciations', $depreciation->id) }}" data-content="Are you sure you wish to delete this depreciation?" data-title="Delete {{ htmlspecialchars($depreciation->name) }}?" onClick="return false;"><i class="icon-trash icon-white"></i></a>


</td>
</tr>
@endforeach
Expand All @@ -48,13 +46,15 @@


</div>
</div>


<!-- side address column -->
<div class="col-md-3 address pull-right">
<div class="col-md-3 col-xs-12 address pull-right">
<br /><br />
<h6>About Asset Depreciations</h6>
<p>You can set up asset depreciations to depreciate assets based on straight-line depreciation. </p>

</div>
</div>
</div>
@stop
Loading

0 comments on commit 2e916d0

Please sign in to comment.