Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form select #20

Merged
merged 4 commits into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions src/Adapter/Http/Web/Templates/_form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@
<div class="col">
<div class="form-group">
<label for="npiType">NPI Type</label>
<input type="text" name="npiType" value="{{ searchParamsOrEmpty.npiType }}" class="form-control" id="npiType" >
{# <input type="text" name="npiType" value="{{ searchParamsOrEmpty.npiType }}" class="form-control" id="npiType" >#}
<select name="npiType" id="npiType" class="form-select">
<option value="">Any</option>
<option {{ (searchParamsOrEmpty.npiType == 'NPI-1') ? 'selected' : '' }} value="NPI-1"> Individual</option>
<option {{ (searchParamsOrEmpty.npiType == 'NPI-2') ? 'selected' : '' }} value="NPI-2"> Organization</option>
</select>
</div>
</div>
<div class="col">
Expand Down Expand Up @@ -96,14 +101,24 @@
<div class="col">
<div class="form-group">
<label for="addressType">Address Type</label>
<input type="text" name="addressType" value="{{ searchParamsOrEmpty.addressType }}" class="form-control" id="addressType" >
{# <input type="text" name="addressType" value="{{ searchParamsOrEmpty.addressType }}" class="form-control" id="addressType" >#}
<select name="addressType" id="addressType" class="form-select">
<option value="">Any</option>
<option {{ (searchParamsOrEmpty.addressType == 'PRIMARY') ? 'selected' : '' }} value="PRIMARY"> Primary Location</option>
<option {{ (searchParamsOrEmpty.addressType == 'SECONDARY') ? 'selected' : '' }} value="SECONDARY"> Secondary Location</option>
</select>
</div>
</div>
</div>

<div class="form-group my-3">
<button id=sendSearchForm type="submit" class="btn btn-info" title="Search">
Search
</button>
<div class="row justify-content-center">
<div class="form-group col-2 my-3">
<button id=sendSearchForm type="submit" class="btn btn-info" title="Search">
Search
</button>
<button type="reset" class="btn btn-warning" title="Reset">
Reset
</button>
</div>
</div>
</form>
4 changes: 2 additions & 2 deletions src/Adapter/Http/Web/Templates/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{% extends 'base-layout-tbs-5.html.twig' %}

{% block main %}
<div class="row col-11 my-5">
<div class="row my-5">
{{ include('_form.html.twig') }}
</div>
<div class="row col-11 my-5 p-1">
<div class="row my-5">
<div class="card">
<div class="table-responsive">
<table class=" table table-striped table-hover">
Expand Down