Skip to content

Commit

Permalink
[VIRTS-2188] Change Rule action to a dropdown selection instead of te…
Browse files Browse the repository at this point in the history
…xtbox (#2157)

* make "action:" under the rules modal a dropdown with the only valid options

* remove 1px dotted var for action select element

Co-authored-by: Chris Lenk <clenk@users.noreply.github.com>
  • Loading branch information
emmanvg and clenk authored May 17, 2021
1 parent 394852a commit 515b4ba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions static/css/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,14 @@
.ability-viewer select {
width: 30%;
}
.ttp-template #action {
width: 100%;
margin-top: 0px;
height: 20px;
padding-top: 0px;
padding-bottom: 0px;
border-radius: 0px;
}
.ttp-template input {
height: 20px;
width: 50%;
Expand Down
7 changes: 6 additions & 1 deletion templates/sources.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ <h3 id="relationship-name"></h3>
</tr>
<tr>
<td><b>action:</b></td>
<td><input id="action" contenteditable="false" spellcheck="false"></td>
<td>
<select id="action">
<option value="ALLOW" selected="selected">ALLOW</option>
<option value="DENY">DENY</option>
</select>
</td>
<td></td>
</tr>
</table>
Expand Down

0 comments on commit 515b4ba

Please sign in to comment.