Index: appengine/monorail/templates/tracker/issue-grid-controls-top.ezt |
diff --git a/appengine/monorail/templates/tracker/issue-grid-controls-top.ezt b/appengine/monorail/templates/tracker/issue-grid-controls-top.ezt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0887a43206ab57dadc935dd3c1fef6516866722a |
--- /dev/null |
+++ b/appengine/monorail/templates/tracker/issue-grid-controls-top.ezt |
@@ -0,0 +1,55 @@ |
+<div class="list"> |
+<div style="float:right; margin-left:2em; font-size:95%"> |
+ <a class="buttonify capsule_left" href="list?can=[can]&q=[query]&colspec=[format "url"][colspec][end]&groupby=[format "url"][groupby][end]&sort=[format "url"][sortspec][end]&x=[grid_x_attr]&y=[grid_y_attr]&cells=[grid_cell_mode]">List</a><span |
+ class="buttonify capsule_right mode_button_active">Grid</span> |
+</div> |
+ |
+[if-any grid_data] |
+<div class="pagination"> |
+ [is pagination.total_count "1"] |
+ [pagination.total_count] issue shown |
+ [else] |
+ [if-any grid_limited][grid_shown] issues of [end] |
+ [pagination.total_count] issues shown |
+ [end] |
+</div> |
+[end] |
+ |
+ <form id="colspecform" action="list" method="GET" style="display:inline"> |
+ <input type="hidden" name="can" value="[can]"> |
+ <input type="hidden" name="q" value="[query]"> |
+ <input type="hidden" name="colspec" id="colspec" value="[colspec]"> |
+ <input type="hidden" name="sort" value="[sortspec]"> |
+ <input type="hidden" name="groupby" value="[groupby]"> |
+ <input type="hidden" name="mode" value="grid"> |
+<span>Rows:</span> |
+<select name="y" class="drop-down-bub"> |
+ <option value="--" [if-any grid_y_attr][else]selected=selected[end]>None</option> |
+ [for grid_axis_choices] |
+ <option value="[grid_axis_choices]" |
+ [is grid_axis_choices grid_y_attr]selected=selected[end] |
+ >[grid_axis_choices]</option> |
+ [end] |
+</select> |
+ |
+<span style="margin-left:.7em">Cols:</span> |
+<select name="x" class="drop-down-bub"> |
+ <option value="--" [if-any grid_x_attr][else]selected=selected[end]>None</option> |
+ [for grid_axis_choices] |
+ <option value="[grid_axis_choices]" |
+ [is grid_axis_choices grid_x_attr]selected=selected[end] |
+ >[grid_axis_choices]</option> |
+ [end] |
+</select> |
+ |
+<span style="margin-left:.7em">Cells:</span> |
+<select name="cells" class="drop-down-bub"> |
+ <option value="tiles" [is grid_cell_mode "tiles"]selected=selected[end]>Tiles</option> |
+ <option value="ids" [is grid_cell_mode "ids"]selected=selected[end]>IDs</option> |
+ <option value="counts" [is grid_cell_mode "counts"]selected=selected[end]>Counts</option> |
+</select> |
+ |
+<input type="submit" name="nobtn" style="font-size:90%; margin-left:.5em" value="Update"> |
+ |
+</form> |
+</div> |