Skip to content

Commit 1c6f572

Browse files
committed
HBASE-28832 Styled Actions forms on Table Details page
So that buttons and textfields are displayed properly. Also removes unneeded inline styles.
1 parent 062f4c7 commit 1c6f572

File tree

1 file changed

+79
-80
lines changed
  • hbase-server/src/main/resources/hbase-webapps/master

1 file changed

+79
-80
lines changed

hbase-server/src/main/resources/hbase-webapps/master/table.jsp

Lines changed: 79 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,86 +1229,85 @@
12291229
</table>
12301230

12311231
<% if (!readOnly) { %>
1232-
<p><hr/></p>
1233-
Actions:
1234-
<p>
1235-
<center>
1236-
<table class="table" style="border: 0;" width="95%" >
1237-
<tr>
1238-
<form method="get">
1239-
<input type="hidden" name="action" value="major compact" />
1240-
<input type="hidden" name="name" value="<%= escaped_fqtn %>" />
1241-
<td class="centered">
1242-
<input style="font-size: 12pt; width: 10em" type="submit" value="Major Compact" class="btn" />
1243-
</td>
1244-
<td style="text-align: center;">
1245-
<input type="text" name="key" size="40" placeholder="Row Key (optional)" />
1246-
</td>
1247-
<td>
1248-
This action will force a major compaction of all regions of the table, or,
1249-
if a key is supplied, only the region major containing the
1250-
given key.
1251-
</td>
1252-
</form>
1253-
</tr>
1254-
<tr>
1255-
<form method="get">
1256-
<input type="hidden" name="action" value="compact" />
1257-
<input type="hidden" name="name" value="<%= escaped_fqtn %>" />
1258-
<td class="centered">
1259-
<input style="font-size: 12pt; width: 10em" type="submit" value="Compact" class="btn" />
1260-
</td>
1261-
<td style="text-align: center;">
1262-
<input type="text" name="key" size="40" placeholder="Row Key (optional)" />
1263-
</td>
1264-
<td>
1265-
This action will force a compaction of all regions of the table, or,
1266-
if a key is supplied, only the region containing the
1267-
given key.
1268-
</td>
1269-
</form>
1270-
</tr>
1271-
<tr>
1272-
<form method="get">
1273-
<input type="hidden" name="action" value="split" />
1274-
<input type="hidden" name="name" value="<%= escaped_fqtn %>" />
1275-
<td class="centered">
1276-
<input style="font-size: 12pt; width: 10em" type="submit" value="Split" class="btn" />
1277-
</td>
1278-
<td style="text-align: center;">
1279-
<input type="text" name="key" size="40" placeholder="Row Key (optional)" />
1280-
</td>
1281-
<td>
1282-
This action will force a split of all eligible
1283-
regions of the table, or, if a key is supplied, only the region containing the
1284-
given key. An eligible region is one that does not contain any references to
1285-
other regions. Split requests for noneligible regions will be ignored.
1286-
</td>
1287-
</form>
1288-
</tr>
1289-
<tr>
1290-
<form method="get">
1291-
<input type="hidden" name="action" value="merge" />
1292-
<input type="hidden" name="name" value="<%= escaped_fqtn %>" />
1293-
<td class="centered">
1294-
<input style="font-size: 12pt; width: 10em" type="submit" value="Merge" class="btn" />
1295-
</td>
1296-
<td style="text-align: center;">
1297-
<input type="text" name="left" size="40" placeholder="Region Key (required)" />
1298-
<input type="text" name="right" size="40" placeholder="Region Key (required)" />
1299-
</td>
1300-
<td>
1301-
This action will merge two regions of the table, Merge requests for
1302-
noneligible regions will be ignored.
1303-
</td>
1304-
</form>
1305-
</tr>
1306-
</table>
1307-
</center>
1308-
</p>
1309-
<% } %>
1310-
</div>
1311-
</div>
1232+
1233+
<h2>Actions</h2>
1234+
1235+
<table class="table">
1236+
<tr>
1237+
<form method="get">
1238+
<input type="hidden" name="action" value="major compact" />
1239+
<input type="hidden" name="name" value="<%= escaped_fqtn %>" />
1240+
<td class="centered">
1241+
<input type="submit" value="Major Compact" class="btn btn-secondary" />
1242+
</td>
1243+
<td style="text-align: center;">
1244+
<input type="text" class="form-control" name="key" size="40" placeholder="Row Key (optional)" />
1245+
</td>
1246+
<td>
1247+
This action will force a major compaction of all regions of the table, or,
1248+
if a key is supplied, only the region major containing the
1249+
given key.
1250+
</td>
1251+
</form>
1252+
</tr>
1253+
<tr>
1254+
<form method="get">
1255+
<input type="hidden" name="action" value="compact" />
1256+
<input type="hidden" name="name" value="<%= escaped_fqtn %>" />
1257+
<td class="centered">
1258+
<input type="submit" value="Compact" class="btn btn-secondary" />
1259+
</td>
1260+
<td style="text-align: center;">
1261+
<input type="text" class="form-control" name="key" size="40" placeholder="Row Key (optional)" />
1262+
</td>
1263+
<td>
1264+
This action will force a compaction of all regions of the table, or,
1265+
if a key is supplied, only the region containing the
1266+
given key.
1267+
</td>
1268+
</form>
1269+
</tr>
1270+
<tr>
1271+
<form method="get">
1272+
<input type="hidden" name="action" value="split" />
1273+
<input type="hidden" name="name" value="<%= escaped_fqtn %>" />
1274+
<td class="centered">
1275+
<input type="submit" value="Split" class="btn btn-secondary" />
1276+
</td>
1277+
<td style="text-align: center;">
1278+
<input type="text" class="form-control" name="key" size="40" placeholder="Row Key (optional)" />
1279+
</td>
1280+
<td>
1281+
This action will force a split of all eligible
1282+
regions of the table, or, if a key is supplied, only the region containing the
1283+
given key. An eligible region is one that does not contain any references to
1284+
other regions. Split requests for noneligible regions will be ignored.
1285+
</td>
1286+
</form>
1287+
</tr>
1288+
<tr>
1289+
<form method="get">
1290+
<input type="hidden" name="action" value="merge" />
1291+
<input type="hidden" name="name" value="<%= escaped_fqtn %>" />
1292+
<td class="centered">
1293+
<input type="submit" value="Merge" class="btn btn-secondary" />
1294+
</td>
1295+
<td style="text-align: center;">
1296+
<input type="text" class="form-control mb-2" name="left" size="40" required="required" placeholder="Region Key (required)" />
1297+
<input type="text" class="form-control" name="right" size="40" required="required" placeholder="Region Key (required)" />
1298+
</td>
1299+
<td>
1300+
This action will merge two regions of the table, Merge requests for
1301+
noneligible regions will be ignored.
1302+
</td>
1303+
</form>
1304+
</tr>
1305+
</table>
1306+
1307+
1308+
<% } %>
1309+
</div><!--/.row -->
1310+
</div> <!--/.container-fluid -->
13121311
<% }
13131312
} catch(TableNotFoundException e) { %>
13141313
<div class="container-fluid content">

0 commit comments

Comments
 (0)