DomainExpiration/app/templates/edit_password.html

37 lines
1.5 KiB
HTML

{% extends "base.html" %}
{% block title %}Edit Password{% endblock %}
{% block content %}
<div class="container">
<h1>Edit Password</h1>
<form method="post">
<div class="form-group">
<label for="item">Item:</label>
<input type="text" name="item" class="form-control" value="{{ password.item }}">
</div>
<div class="form-group">
<label for="username">Username:</label>
<input type="text" name="username" class="form-control" value="{{ password.username }}">
</div>
<div class="form-group">
<label for="password">Password:</label>
<input type="text" name="password" class="form-control" value="{{ password.password }}">
</div>
<div class="form-group">
<label for="ip_address">IP Address:</label>
<input type="text" name="ip_address" class="form-control" value="{{ password.ip_address }}">
</div>
<div class="form-group">
<label for="category_id">Category:</label>
<select name="category_id" class="form-control">
<option value="">Select Category</option>
{% for cat in available_categories %}
<option value="{{ cat.id }}" {% if password.category and password.category.id == cat.id %}selected{% endif %}>{{ cat.name }}</option>
{% endfor %}
</select>
</div>
<button type="submit" class="btn btn-success">Save Changes</button>
<a href="{{ url_for('clients.client_detail', client_id=client_id) }}" class="btn btn-secondary">Cancel</a>
</form>
</div>
{% endblock %}