Commit 76b42f79 authored by LETORT Sebastien's avatar LETORT Sebastien

Add divs in the template to center the display, and add alternative text for old browser.

parent daa9f1c4
Pipeline #103512 passed with stages
in 8 minutes and 38 seconds
...@@ -7,52 +7,55 @@ ...@@ -7,52 +7,55 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="container">
<div class="allgo-page">
{% if show_form == False %} {% if show_form == False %}
<p class="container">You do not have access to any Webapp, so nothing to ask for.</p> <p>You do not have access to any Webapp, so nothing to ask for.</p>
{% else %} {% else %}
<form id="metrics_form" onsubmit="return draw_plots()"> <form id="metrics_form" onsubmit="return draw_plots()">
<input type="hidden" id="token" name="token" value="{{token}}"> <input type="hidden" id="token" name="token" value="{{token}}">
<fieldset> <fieldset>
<label for="app">App</label> <label for="app">App</label>
<select id="app"> <select id="app">
{% for app in apps %} {% for app in apps %}
<option value="{{app.id}}">{{ app.name }}</option> <option value="{{app.id}}">{{ app.name }}</option>
{% endfor %} {% endfor %}
</select> </select>
<!-- <label for="from">From</label>
<label for="chart">chart</label> <input id="from" type="date" min="2015-01-01" />
<select id="chart">
<option value="per_user">#jobs per user</option>
<option value="launched">#jobs running</option>
<option value="per_res">#jobs by state and period</option>
</select>
-->
<label for="from">From</label> <label for="to">To</label>
<input id="from" type="date" min="2015-01-01" /> <input id="to" type="date" />
<label for="to">To</label> <label for="step">group by</label>
<input id="to" type="date" /> <select id="step">
<option>year</option>
<label for="step">group by</label> <option>month</option>
<select id="step">
<option>year</option>
<option>month</option>
<!-- <!--
<option>week</option> <option>week</option>
--> -->
<option>day</option> <option>day</option>
<!-- <!--
<option>hour</option> <option>hour</option>
--> -->
</select> </select>
</fieldset> </fieldset>
<input type="submit" /> <input type="submit" />
<canvas id="created_plot" width="400px" height="200px"></canvas>
<canvas id="per_user_plot" width="400px" height="200px"></canvas> <canvas id="created_plot" width="400px" height="200px">
<canvas id="per_state_plot" width="400px" height="200px"></canvas> Sorry, your browser doesn't support the &lt;canvas&gt; element.
</form> Here, the # of jobs created for the selected app.
</canvas>
<canvas id="per_user_plot" width="400px" height="200px">
Sorry, your browser doesn't support the &lt;canvas&gt; element
Here, the # of jobs created per user for the selected app.
</canvas>
<canvas id="per_state_plot" width="400px" height="200px">
Sorry, your browser doesn't support the &lt;canvas&gt; element
Here, the # of jobs created per state for the selected app.
</canvas>
</form>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment