Skip to content

Commit

Permalink
Merge branch 'cli' of github.com:loleg/dribdat into cli
Browse files Browse the repository at this point in the history
  • Loading branch information
loleg committed Nov 28, 2022
2 parents 7706e29 + 0df645e commit aa016d2
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 598 deletions.
3 changes: 0 additions & 3 deletions dribdat/static/css/style.css
Expand Up @@ -1810,9 +1810,6 @@ Instruction page
cursor: pointer;
padding: 0 0 0 2em;
}
.form-project-confirm:hover {
background-color: lightyellow;
}
.projectpost alert {
margin-top: 0.5em;
}
Expand Down
29 changes: 23 additions & 6 deletions dribdat/templates/includes/nav.html
Expand Up @@ -95,17 +95,34 @@
</li>
{% endif %}

<form class="form-inline nav-item" action="{{ url_for('public.about') }}" method="get">
<button class="btn my-2 my-sm-0 {% if active != 'about' %}text-secondary{% endif %}" type="submit">
<li class="nav-item">
<a class="nav-link" id="navSearchButton" href="{{ url_for('public.about') }}">
<i class="fa fa-search" aria-hidden="true"></i>
</button>
<!-- <input class="form-control mr-sm-2" type="search" placeholder="" aria-label="Search" name="q" size=7> -->
</form>
</a>
</li>

</ul>



</div><!-- /.navbar-collapse -->

</nav>

<!-- Popup search results -->
<div class="fade container nav-search" id="navSearch"
tabindex="-1" role="dialog" aria-labelledby="searchLabel" aria-hidden="true">
<div class="profile-projects container-fluid mt-5">
<h5 id="searchLabel">Search dribdat</h5>
<div action="/api/project/search.json" id="search">
<div class="content input-group">
<div class="input-group-prepend">
<span class="input-group-text">Search</span>
</div>
<input type="text" class="form-control" name="q" aria-label="Search term" placeholder="Start typing ..." style="width:20em">
</div>
</div>
<div class="row flex-row flex-nowrap mt-2 mb-2" id="search-results"></div>
<div class="text-center" id="search-matches"><i>Start typing above ...</i></div>
</div>
</div>
17 changes: 0 additions & 17 deletions dribdat/templates/public/about.html
Expand Up @@ -6,23 +6,6 @@

{% block content %}

<div class="container home-search mb-3">
<div class="row" id="api-search">
<div class="profile-projects container-fluid">
<div action="/api/project/search.json" id="search">
<div class="content input-group">
<div class="input-group-prepend">
<span class="input-group-text">Search</span>
</div>
<input type="text" class="form-control" name="q" aria-label="Search term" placeholder="Start typing ..." style="width:20em">
</div>
</div>
<div class="row flex-row flex-nowrap ml-0 mt-1 mb-1 pt-2 pb-2" id="search-results"></div>
<div class="text-center" id="search-matches"></div>
</div>
</div>
</div>

<div class="jumbotron bg-white">
<div class="container">
<div class="row">
Expand Down
6 changes: 0 additions & 6 deletions dribdat/templates/public/projectpost.html
Expand Up @@ -90,12 +90,6 @@ <h5 class="mb-3">
{% endif %}
</div>

<!-- Inline search results (REMOVED)
<div class="profile-projects container-fluid mt-5">
<div class="row flex-row flex-nowrap ml-0 mt-1 mb-1 pt-2 pb-2" id="search-results"></div>
<div class="text-center" id="search-matches"><i>Waiting to make a suggestion ...</i></div>
</div> -->

<center class="mt-3">
<a href="{{ url_for('project.project_view', project_id=project.id) }}"
title="Cancel" class="btn btn-light"
Expand Down

0 comments on commit aa016d2

Please sign in to comment.