File tree Expand file tree Collapse file tree 7 files changed +45
-6
lines changed Expand file tree Collapse file tree 7 files changed +45
-6
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
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
Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 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 ) {
Original file line number Diff line number Diff line change 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 */
You can’t perform that action at this time.
0 commit comments