Skip to content

Commit

Permalink
added help text for search format, string 'rfc' to search placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Christian Rudolph committed Jun 29, 2017
1 parent 5b68c7e commit 4f70fbc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions csinfo/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,9 @@ fieldset[disabled] .btn-custom.active {
border-color: #d35400;
}

.help-text {
margin-top: 5%;
background-color: #eee;
border-color: #b9b9b9;
color: #555;
}
2 changes: 1 addition & 1 deletion directory/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class MainSearchForm(forms.Form):
widget=forms.TextInput(
attrs={
'class': 'form-control input-lg',
'placeholder': 'cipher, algorithm, vulnerability...',
'placeholder': 'cipher, algorithm, rfc, vulnerability...',
}
),
)
Expand Down
5 changes: 5 additions & 0 deletions directory/templates/directory/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ <h1 class="title-heading">Search this site</h1>
</form>
</div><!-- end end input -->
</div><!-- end column -->
<div class="col-md-6 col-md-offset-3" align="center">
<div class="alert alert-info help-text" role="alert">
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> When searching for complete cipher suite names please use IANA format, e.g. "<a href="/search/?q=TLS_DHE_DSS_WITH_AES_256_CBC_SHA">TLS_DHE_DSS_WITH_AES_256_CBC_SHA</a>".
</div>
</div><!-- end column -->
</div><!-- end row -->

{% endblock content %}

0 comments on commit 4f70fbc

Please sign in to comment.