Commits

George Notaras committed 8da0d30

Improved timeframe browsers.

  • Participants
  • Parent commits 9efd3f7

Comments (0)

Files changed (3)

File src/sysscope/templates/sysscope/base.html

             {% block sysscope_navigation %}{% endblock %}
         </div> <!-- sysscope-navigation -->
         
+        <div class="clear"></div>
+        
         <div id="sysscope-sidebar">
             {% block sysscope_sidebar %}{% endblock %}
         </div> <!-- sysscope-sidebar -->

File src/sysscope/templates/sysscope/nav_timeframe_browser.html

 {% load url from future %}
 {% load sysscope_tags %}
 
-<div>
+<div id="timeframe_browser_nav">
 
     <form id="timeframe-browser-form" action="" method="post">{% csrf_token %}
     
         <input type="hidden" name="current_start" value="{{ current_start }}" />
         
-        <input type="submit" name="backward" value="&laquo;" />
+        <label for="submit_backward" class="">{% trans 'Browse historical data using the selected timeframe' %}:</label>
+        <input id="submit_backward" type="submit" name="backward" value="&laquo;" />
         
-        <select name="selected_timeframe">
+        <select id="id_selected_timeframe" name="selected_timeframe">
             <option value=''>Select Period</option>
             {% for timeframe in timeframe_list %}
                 {% if timeframe == current_timeframe %}
             {% endfor %}
         </select>
         
-        <input type="submit" name="forward" value="&raquo;" />
+        <input id="submit_forward" type="submit" name="forward" value="&raquo;" />
         
     </form>
     

File src/sysscope/templates/sysscope/nav_timeframe_selector.html

+{% load i18n %}
 {% load url from future %}
 {% load sysscope_tags %}
 
-<div>
+<div id="chrono_preset_nav">
     <form id="chrono_preset_form" action="">
-        <select name="graph_chrono" onchange="window.location =
+        <label for="id_graph_chrono" class="">{% trans 'Select timeframe' %}:</label>
+        <select id="id_graph_chrono" name="graph_chrono" onchange="window.location =
             (document.forms.chrono_preset_form.graph_chrono[document.forms.chrono_preset_form.graph_chrono.selectedIndex].value);">
             <option value=''>Select Period</option>
             {% for timeframe in timeframe_list %}