Skip to content

Commit

Permalink
Add red astrisks to required form (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweetdevil144 authored Nov 1, 2023
1 parent 023d8e6 commit 8a3d137
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 7 deletions.
14 changes: 14 additions & 0 deletions public/stylesheets/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,17 @@ body.dark-mode main strong,
body.dark-mode main a {
color: var(--dark-mode-fg-color);
}

.label.is-required::after,
.control.is-required::after {
content: "*";
color: red;
display: inline;
font-size: 1.2rem;
}

.control.is-required::after {
position: absolute;
right: 0.2rem;
top: 0;
}
2 changes: 1 addition & 1 deletion views/import.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>
</div>

<div class="control">
<div class="control is-required">
<% if @errors && @errors[:path] %>
<input class="input is-danger" type="text" name="path" value="<%=hattr params[:path] %>">

Expand Down
2 changes: 1 addition & 1 deletion views/masscan.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<form action="/masscan" method="post">
<div class="field">
<label class="label">Targets</label>
<label class="label is-required">Targets</label>
<div class="control">
<% if @errors && @errors[:ips] %>
<input class="input is-danger" type="text" name="ips" placeholder="192.168.1.1" value="<%=hattr params[:ips] %>">
Expand Down
4 changes: 2 additions & 2 deletions views/nmap.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<form action="/nmap" method="post">
<div class="field">
<label class="label">Targets</label>
<label class="label is-required">Targets</label>

<div class="control">
<% if @errors && @errors[:targets] %>
Expand All @@ -18,7 +18,7 @@
</div>

<div class="field">
<label class="label">Ports</label>
<label class="label is-required">Ports</label>

<div class="control">
<% if @errors && @errors[:ports] %>
Expand Down
2 changes: 1 addition & 1 deletion views/recon.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<form id="recon" action="/recon" method="post">
<div class="field">
<label class="label">Scope</label>
<label class="label is-required">Scope</label>

<div class="control">
<% if @errors && @errors[:scope] %>
Expand Down
2 changes: 1 addition & 1 deletion views/repos/install.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<form action="/repos/install" method="post">
<div class="field">
<label class="label">URI</label>
<label class="label is-required">URI</label>

<div class="control">
<% if @errors && @errors[:uri] %>
Expand Down
2 changes: 1 addition & 1 deletion views/spider.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</div>
</div>

<div class="control">
<div class="control is-required">
<% if @errors && @errors[:target] %>
<input class="input is-danger" type="text" name="target" placeholder="example.com OR www.example.com OR https://example.com/" value="<%=hattr params[:target] %>">

Expand Down

0 comments on commit 8a3d137

Please sign in to comment.