Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S sistempos_finaltask
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mujahid Rofiq
  • sistempos_finaltask
  • Merge requests
  • !100

Merged
Created 1 year ago by Mujahid Rofiq@MujahidRMaintainer

fitur search pada index warehouse

  • Overview 1
  • Commits 1
  • Changes 1

Created by: arneyva

  • Mujahid Rofiq
    Mujahid Rofiq @MujahidR · 1 year ago
    Author Maintainer

    Merged by: arneyva at 2024-04-04 00:54:01 UTC

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • main (base)

and
  • latest version
    42ee3294
    1 commit, 10 months ago

1 file
+ 41
- 2

    Preferences

    File browser
    Compare changes
resources/views/templates/settings/warehouses/index.blade.php
+ 41
- 2
  • View file @ 42ee3294

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
<div class="header-title">
<h4 class="card-title">All Warehouse</h4>
</div>
</div>
<div class="card-header d-flex justify-content-between">
<div class="input-group search-input" style="width: 30%">
<span class="input-group-text d-inline" id="searchIcon">
<svg class="icon-18" width="18" viewBox="0 0 24 24" fill="none"
xmlns="http://www.w3.org/2000/svg">
<circle cx="11.7669" cy="11.7666" r="8.98856" stroke="currentColor" stroke-width="1.5"
stroke-linecap="round" stroke-linejoin="round"></circle>
<path d="M18.0186 18.4851L21.5426 22" stroke="currentColor" stroke-width="1.5"
stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</span>
<input type="search" class="form-control" placeholder="Search...">
</div>
<div class="header-title">
<button type="button" class="btn btn-soft-primary">Filter</button>
<button type="button" class="btn btn-soft-success">PDF</button>
Show 20 lines Show all unchanged lines Show 20 lines
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-secondary"
data-bs-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary">Save changes</button>
</div>
</form>
Show 20 lines Show all unchanged lines Show 20 lines
</div>
</div>
</div>
<div class="card-body p-0">
<div class="table-responsive mt-4">
<table id="basic-table" class="table table-striped mb-0" role="grid">
Show 20 lines Show all unchanged lines Show 20 lines
</div>
</div>
@endsection
@push('script')
<script>
document.addEventListener("DOMContentLoaded", function() {
const searchInput = document.querySelector('.search-input input');
const rows = document.querySelectorAll('#basic-table tbody tr');
searchInput.addEventListener('input', function() {
const searchTerm = this.value.trim().toLowerCase();
rows.forEach(row => {
const nameColumn = row.querySelector('td:first-child').textContent.trim()
.toLowerCase();
const shortNameColumn = row.querySelector('td:nth-child(2)').textContent.trim()
.toLowerCase();
if (nameColumn.includes(searchTerm) || shortNameColumn.includes(searchTerm)) {
row.style.display = '';
} else {
row.style.display = 'none';
}
});
});
});
</script>
@endpush
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Milestone
No milestone
None
None
Time tracking
No estimate or time spent
0
Labels
None
Lock merge request
Unlocked
1
1 participant
Mujahid Rofiq
Reference: MujahidR/sistempos_finaltask!100
Source branch: dev-eth

Menu

Projects Groups Snippets
Help