Skip to content

Commit

Permalink
#253 Icon instead of text link
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbrendel committed Aug 10, 2024
1 parent b488575 commit cdad1f3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
13 changes: 0 additions & 13 deletions app/resources/sass/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1719,19 +1719,6 @@ fieldset .field {
margin-top: 10px;
}

.inventory-item-foac {
position: relative;
margin-top: 10px;
}

.inventory-item-foac a {
color: rgb(50, 125, 185);
}

.inventory-item-foac a:hover {
text-decoration: underline;
}

.inventory-item-location {
position: relative;
display: inline-block;
Expand Down
5 changes: 1 addition & 4 deletions app/views/inventory.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
</div>

<div class="inventory-item-actions">
<a href="javascript:void(0);" onclick="document.getElementById('title-inventory-qr-code').value = '#{{ $inventory->get($i)->get('id') }} ' + document.getElementById('inventory-item-name-{{ $inventory->get($i)->get('id') }}').innerText; window.vue.queryInvQrCode({{ $inventory->get($i)->get('id') }});"><i class="fas fa-qrcode"></i></a>&nbsp;
<a href="javascript:void(0);" onclick="window.vue.editInventoryItem({{ $inventory->get($i)->get('id') }}, 'inventory-item-name-{{ $inventory->get($i)->get('id') }}', '{{ $inventory->get($i)->get('group_ident') }}', 'inventory-item-location-{{ $inventory->get($i)->get('id') }}', 'inventory-item-description-{{ $inventory->get($i)->get('id') }}');"><i class="fas fa-edit"></i></a>
<a href="javascript:void(0);" onclick="window.vue.deleteInventoryItem({{ $inventory->get($i)->get('id') }}, 'inventory-item-{{ $inventory->get($i)->get('id') }}');"><i class="fas fa-times"></i></a>
</div>
Expand Down Expand Up @@ -80,10 +81,6 @@
{{ __('app.last_edited_by', ['name' => UserModel::getNameById($inventory->get($i)->get('last_edited_user')), 'when' => (new Carbon($inventory->get($i)->get('last_edited_date')))->diffForHumans()]) }}
</div>
</div>

<div class="inventory-item-foac">
<a href="javascript:void(0);" onclick="document.getElementById('title-inventory-qr-code').value = '#{{ $inventory->get($i)->get('id') }} ' + document.getElementById('inventory-item-name-{{ $inventory->get($i)->get('id') }}').innerText; window.vue.queryInvQrCode({{ $inventory->get($i)->get('id') }});">{{ __('app.show_qr_code') }}</a>
</div>
</div>
</div>
@endfor
Expand Down
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

0 comments on commit cdad1f3

Please sign in to comment.