Skip to content

Commit

Permalink
Fixed license blades
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Nov 16, 2013
1 parent 23a6e86 commit 4f0a178
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 8 deletions.
1 change: 1 addition & 0 deletions app/controllers/admin/LicensesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use Input;
use Lang;
use License;
use DB;
use Redirect;
use Sentry;
use Str;
Expand Down
65 changes: 57 additions & 8 deletions app/views/backend/licenses/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@section('content')
<div class="page-header">
<h3>
Update Category
Update License

<div class="pull-right">
<a href="{{ route('licenses') }}" class="btn btn-small btn-inverse"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
Expand All @@ -31,24 +31,73 @@
<div class="control-group {{ $errors->has('name') ? 'error' : '' }}">
<label class="control-label" for="name">Software Name</label>
<div class="controls">
<input type="text" name="name" id="name" value="{{ Input::old('name', $license->name) }}" />
{{ $errors->first('title', '<span class="help-inline">:message</span>') }}
<input class="span6" type="text" name="name" id="name" value="{{ Input::old('name', $license->name) }}" />
{{ $errors->first('name', '<span class="help-inline">:message</span>') }}
</div>
</div>
<!-- Category Parent Title -->
<div class="control-group {{ $errors->has('parent') ? 'error' : '' }}">
<label class="control-label" for="parent">Category Parent</label>
<div class="control-group {{ $errors->has('serial') ? 'error' : '' }}">
<label class="control-label" for="serial">Serial</label>
<div class="controls">
<input class="span6" type="text" name="serial" id="serial" value="{{ Input::old('serial', $license->serial) }}" />
{{ $errors->first('serial', '<span class="help-inline">:message</span>') }}
</div>
</div>

<div class="control-group {{ $errors->has('license_email') ? 'error' : '' }}">
<label class="control-label" for="license_email">License Email</label>
<div class="controls">
<input class="span6" type="text" name="license_email" id="license_email" value="{{ Input::old('license_email', $license->license_email) }}" />
{{ $errors->first('license_email', '<span class="help-inline">:message</span>') }}
</div>
</div>
</div>

<div class="control-group {{ $errors->has('license_name') ? 'error' : '' }}">
<label class="control-label" for="license_name">License Name</label>
<div class="controls">
<input class="span6" type="text" name="license_name" id="license_name" value="{{ Input::old('license_name', $license->license_name) }}" />
{{ $errors->first('license_name', '<span class="help-inline">:message</span>') }}
</div>
</div>

<div class="control-group {{ $errors->has('notes') ? 'error' : '' }}">
<label class="control-label" for="notes">Notes</label>
<div class="controls">
<input class="span6" type="text" name="notes" id="notes" value="{{ Input::old('notes', $license->notes) }}" />
{{ $errors->first('notes', '<span class="help-inline">:message</span>') }}
</div>
</div>

<div class="control-group {{ $errors->has('order_number') ? 'error' : '' }}">
<label class="control-label" for="order_number">Order Number</label>
<div class="controls">
<input class="span4" type="text" name="order_number" id="order_number" value="{{ Input::old('order_number', $license->order_number) }}" />
{{ $errors->first('order_number', '<span class="help-inline">:message</span>') }}
</div>
</div>


<div class="control-group {{ $errors->has('purchase_cost') ? 'error' : '' }}">
<label class="control-label" for="purchase_cost">Purchase Cost</label>
<div class="controls">
$ <input class="span2" type="text" name="purchase_cost" id="purchase_cost" value="{{ Input::old('purchase_cost', $license->purchase_cost) }}" />
{{ $errors->first('purchase_cost', '<span class="help-inline">:message</span>') }}
</div>
</div>

<div class="control-group {{ $errors->has('purchase_date') ? 'error' : '' }}">
<label class="control-label" for="purchase_date">Purchase Date (YYYY-mm-dd)</label>
<div class="controls">
<input class="span4" type="text" name="purchase_date" id="purchase_date" value="{{ Input::old('purchase_date', $license->purchase_date) }}" />
{{ $errors->first('purchase_date', '<span class="help-inline">:message</span>') }}
</div>
</div>


<!-- Form actions -->
<div class="control-group">
<div class="controls">
<a class="btn btn-link" href="{{ route('blogs') }}">Cancel</a>
<button type="submit" class="btn btn-success">Publish</button>
<button type="submit" class="btn btn-success">Save Edits</button>
</div>
</div>
</form>
Expand Down

0 comments on commit 4f0a178

Please sign in to comment.