Skip to content

Commit

Permalink
replace blade or keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
sohelamin committed Dec 16, 2018
1 parent 75407c1 commit 82f8b17
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/stubs/views/html/form-fields/form-field.blade.stub
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<input class="form-control" name="%%itemName%%" type="%%fieldType%%" id="%%itemName%%" value="{{ $%%crudNameSingular%%->%%itemName%% or ''}}" %%required%%>
<input class="form-control" name="%%itemName%%" type="%%fieldType%%" id="%%itemName%%" value="{{ isset($%%crudNameSingular%%->%%itemName%%) ? $%%crudNameSingular%%->%%itemName%% : ''}}" %%required%%>
2 changes: 1 addition & 1 deletion src/stubs/views/html/form-fields/input-field.blade.stub
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<input class="form-control" name="%%itemName%%" type="%%fieldType%%" id="%%itemName%%" value="{{ $%%crudNameSingular%%->%%itemName%% or ''}}" %%required%%>
<input class="form-control" name="%%itemName%%" type="%%fieldType%%" id="%%itemName%%" value="{{ isset($%%crudNameSingular%%->%%itemName%%) ? $%%crudNameSingular%%->%%itemName%% : ''}}" %%required%%>
2 changes: 1 addition & 1 deletion src/stubs/views/html/form-fields/textarea-field.blade.stub
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<textarea class="form-control" rows="5" name="%%itemName%%" type="%%fieldType%%" id="%%itemName%%" %%required%%>{{ $%%crudNameSingular%%->%%itemName%% or ''}}</textarea>
<textarea class="form-control" rows="5" name="%%itemName%%" type="%%fieldType%%" id="%%itemName%%" %%required%%>{{ isset($%%crudNameSingular%%->%%itemName%%) ? $%%crudNameSingular%%->%%itemName%% : ''}}</textarea>
2 changes: 1 addition & 1 deletion src/stubs/views/html/index.blade.stub
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<tbody>
@foreach($%%crudName%% as $item)
<tr>
<td>{{ $loop->iteration or $item->%%primaryKey%% }}</td>
<td>{{ ++$i }}</td>
%%formBodyHtml%%
<td>
<a href="{{ url('/%%routeGroup%%%%viewName%%/' . $item->%%primaryKey%%) }}" title="View %%modelName%%"><button class="btn btn-info btn-sm"><i class="fa fa-eye" aria-hidden="true"></i> View</button></a>
Expand Down
2 changes: 1 addition & 1 deletion src/stubs/views/laravelcollective/index.blade.stub
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<tbody>
@foreach($%%crudName%% as $item)
<tr>
<td>{{ $loop->iteration or $item->%%primaryKey%% }}</td>
<td>{{ ++$i }}</td>
%%formBodyHtml%%
<td>
<a href="{{ url('/%%routeGroup%%%%viewName%%/' . $item->%%primaryKey%%) }}" title="View %%modelName%%"><button class="btn btn-info btn-sm"><i class="fa fa-eye" aria-hidden="true"></i> View</button></a>
Expand Down

0 comments on commit 82f8b17

Please sign in to comment.