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,8 +7,10 @@
{% endblock %}
{% block content %}
<div class="container">
<div class="allgo-page">
{% 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 %}
<form id="metrics_form" onsubmit="return draw_plots()">
<input type="hidden" id="token" name="token" value="{{token}}">
......@@ -20,15 +22,6 @@
{% endfor %}
</select>
<!--
<label for="chart">chart</label>
<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>
<input id="from" type="date" min="2015-01-01" />
......@@ -49,9 +42,19 @@
</select>
</fieldset>
<input type="submit" />
<canvas id="created_plot" width="400px" height="200px"></canvas>
<canvas id="per_user_plot" width="400px" height="200px"></canvas>
<canvas id="per_state_plot" width="400px" height="200px"></canvas>
<canvas id="created_plot" width="400px" height="200px">
Sorry, your browser doesn't support the &lt;canvas&gt; element.
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 %}
{% 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