Edit form partial to capitalize precedences since it was causing some bugs when searching by precedence.
Refactor MessagesSearch controller to show the message template when the resulting search query (regardless of the kind of query)  returns just one hit.
Bug fix: When the user introduced an invalid hour/date on the form, and then presses the 'Now' button to put the current date and time, the warning style would remain even though the data is valid preventing the form to be submitted.