This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixed css issues in refund flow
- Loading branch information
1 parent
499cc75
commit 246cb50
Showing
1 changed file
with
22 additions
and
23 deletions.
There are no files selected for viewing
45 changes: 22 additions & 23 deletions
45
ecommerce/templates/oscar/dashboard/partials/search_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,50 @@ | ||
{% load i18n %} | ||
|
||
<div class="table-header"> | ||
<h3><i class="icon-search icon-large"></i>{% trans "Search" as tmsg %}{{ tmsg | force_escape }}</h3> | ||
<h3><i class="fas fa-search"></i> {% trans "Search" %}</h3> | ||
</div> | ||
<div class="well"> | ||
<div class="card card-body bg-light"> | ||
<form action="" method="get" class="form-inline" id="search_form"> | ||
{% for field in form %} | ||
{% if field.id_for_label in exposed_field_ids %} | ||
{% if field.is_hidden %} | ||
{{ field }} | ||
{% else %} | ||
<span class="control-group {% if field.errors %}error{% endif %}"> | ||
<div class="form-group mr-2" {% if field.errors %}error{% endif %}"> | ||
{{ field.label_tag }} | ||
{{ field }} | ||
{% for error in field.errors %} | ||
<ul class="error-block"> | ||
<li>{{ error }}</li> | ||
</ul> | ||
{% endfor %} | ||
</span> | ||
</div> | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
<input type="submit" value="{% trans "Search" as tmsg %}{{ tmsg | force_escape }}" class="btn btn-primary"/> | ||
<a data-toggle="modal" href="#SearchModal">{% trans "Advanced Search" as tmsg %}{{ tmsg | force_escape }}</a> | ||
</form> | ||
</div> | ||
|
||
<div class="modal fade" id="SearchModal"> | ||
<div class="modal fade" data-show="true" id="SearchModal" role="dialog"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal">×</button> | ||
<h3>{% trans "Advanced Search" as tmsg %}{{ tmsg | force_escape }}</h3> | ||
</div> | ||
<form action="" method="get" class="form-horizontal"> | ||
<div class="modal-body"> | ||
<div class="container-fluid"> | ||
{% csrf_token %} | ||
{% include "oscar/partials/form_fields.html" with form=form %} | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h3>{% trans "Advanced Search" %}</h3> | ||
<button type="button" class="close" data-dismiss="modal">×</button> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<a href="#" class="btn btn-default" data-dismiss="modal">{% trans "Close" as tmsg %}{{ tmsg | force_escape }}</a> | ||
<button type="submit" class="btn btn-primary" data-loading-text="{% trans 'Searching...' as tmsg %}{{ tmsg | force_escape }}">{% trans "Search" as tmsg %}{{ tmsg | force_escape }}</button> | ||
</div> | ||
</form> | ||
</div> | ||
<form method="get" class="form-stacked"> | ||
<div class="modal-body"> | ||
<div class="container"> | ||
{% include "oscar/dashboard/partials/form_fields.html" with form=form style=style %} | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<a href="#" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</a> | ||
<button type="submit" class="btn btn-primary" data-loading-text="{% trans 'Searching...' %}">{% trans "Search" %}</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |