This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 953
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from LiGhT1EsS/master
improves whitelist
- Loading branch information
Showing
7 changed files
with
250 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<div class="row clearfix"> | ||
<div class="col-md-12 column"> | ||
<div class="page-header"> | ||
<h3> | ||
Edit White List | ||
<small></small> | ||
</h3> | ||
</div> | ||
</div> | ||
</div> | ||
<form role="form"> | ||
<div class="form-group"> | ||
<label for="project">Project</label> | ||
<select id="project" class="form-control"> | ||
{% for project in data.projects %} | ||
<option value="{{ project.id }}" {% if data.whitelist.project_id == project.id %}selected{% endif %}> | ||
{{ project.id }}-{{ project.name }}-{{ project.repository }}-{{ project.author }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label for="rule">Rule</label> | ||
<select id="rule" class="form-control"> | ||
{% for rule in data.rules %} | ||
<option value="{{ rule.id }}" {% if data.whitelist.rule_id == rule.id %}selected{% endif %}> | ||
{{ rule.id }}-{{ rule.description }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label for="path">Path</label> | ||
<input type="text" class="form-control" id="path" value="{{ data.whitelist.path }}"/> | ||
</div> | ||
<div class="form-group"> | ||
<label for="reason">Reason</label> | ||
<textarea class="form-control" id="reason">{{ data.whitelist.reason }}</textarea> | ||
</div> | ||
<div class="form-group"> | ||
<label for="status">Status</label> | ||
<label class="radio-inline"> | ||
<input type="radio" name="status" id="status" value="1" | ||
{% if data.whitelist.status == 1 %}checked{% endif %}> On | ||
</label> | ||
<label class="radio-inline"> | ||
<input type="radio" name="status" id="status" value="2" | ||
{% if data.whitelist.status == 2 %}checked{% endif %}> Off | ||
</label> | ||
</div> | ||
<div id="edit-whitelist-result" hidden></div> | ||
<button type="button" class="btn btn-success" id="edit-whitelist-button">Save</button> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.