Skip to content

Commit 7a4f115

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 6908456 + 58ff929 commit 7a4f115

File tree

7 files changed

+45
-6
lines changed

7 files changed

+45
-6
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
use Illuminate\Database\Schema\Blueprint;
3+
use Illuminate\Database\Migrations\Migration;
4+
class ChangeLicenseNotesType extends Migration {
5+
/**
6+
* Run the migrations.
7+
*
8+
* @return void
9+
*/
10+
public function up()
11+
{
12+
//
13+
$prefix = DB::getTablePrefix();
14+
DB::statement('ALTER TABLE '.$prefix.'licenses MODIFY COLUMN notes TEXT');
15+
}
16+
/**
17+
* Reverse the migrations.
18+
*
19+
* @return void
20+
*/
21+
public function down()
22+
{
23+
//
24+
$prefix = DB::getTablePrefix();
25+
DB::statement('ALTER TABLE '.$prefix.'licenses MODIFY COLUMN notes VARCHAR(255)');
26+
}
27+
}

app/models/License.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class License extends Elegant
1616
'license_email' => 'email|min:0|max:120',
1717
'license_name' => 'alpha_space|min:0|max:100',
1818
'note' => 'alpha_space',
19-
'notes' => 'alpha_space|min:0|max:255',
19+
'notes' => 'alpha_space|min:0',
2020
);
2121

2222
/**

app/views/backend/hardware/edit.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
</div>
9191
</div>
9292

93-
@if ($asset->model->show_mac_address != 0)
93+
@if (isset($asset->model)) && ($asset->model->show_mac_address != 0)
9494
<!-- MAC Address -->
9595
<div class="form-group {{ $errors->has('mac_address') ? ' has-error' : '' }}">
9696
<label for="mac_address" class="col-md-2 control-label">@lang('admin/hardware/form.mac_address')</label>

app/views/backend/hardware/view.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190

191191
<!-- checked out assets table -->
192192

193-
<table class="table table-hover">
193+
<table class="table table-hover table-fixed break-word">
194194
<thead>
195195
<tr>
196196
<th class="col-md-3"><span class="line"></span>@lang('general.date')</th>
@@ -262,7 +262,7 @@
262262
@if ($asset->notes)
263263

264264
<h6>@lang('admin/hardware/form.notes'):</h6>
265-
{{ nl2br(e($asset->notes)) }}
265+
<div class="break-word">{{ nl2br(e($asset->notes)) }}</div>
266266

267267
@endif
268268

app/views/backend/licenses/view.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
<div class="col-md-12">
246246
<h6>@lang('admin/licenses/general.checkout_history')</h6>
247247

248-
<table class="table table-hover">
248+
<table class="table table-hover table-fixed break-word">
249249
<thead>
250250
<tr>
251251
<th class="col-md-3">@lang('general.date')</th>
@@ -335,7 +335,7 @@
335335

336336
@if ($license->notes)
337337
<li><strong>@lang('admin/licenses/form.notes'):</strong>
338-
<li>{{ nl2br(e($license->notes)) }}</li>
338+
<li class="break-word">{{ nl2br(e($license->notes)) }}</li>
339339
@endif
340340
</ul>
341341
</div>

public/assets/css/compiled/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@
197197
float: right;
198198
margin-top: 35px;
199199
}
200+
.table-fixed {
201+
table-layout: fixed;
202+
}
203+
.break-word {
204+
word-wrap: break-word;
205+
}
200206

201207
/* responsive */
202208
@media (max-width: 768px) {

public/assets/css/scss/index.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@
211211
margin-top: 35px;
212212
}
213213
}
214+
.table-fixed {
215+
table-layout: fixed;
216+
}
217+
.break-word {
218+
word-wrap: break-word;
219+
}
214220

215221

216222
/* responsive */

0 commit comments

Comments
 (0)