51 lines
1.9 KiB
HTML
51 lines
1.9 KiB
HTML
{% extends 'administrator/_layout.auth.html' %}
|
|
|
|
{% set title="Billing" %}
|
|
{% set subtitle="Edit Plan" %}
|
|
|
|
{% block content %}
|
|
<form action="{{ url_for('administrator.plan_edit', plan_id=plan_details.id) }}" method="POST">
|
|
<table class="table table-bordered" width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td>ID</td>
|
|
<td><input type="text" name="id" value="{{ plan_details.id }}" disabled /></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td><input type="text" name="name" value="{{ plan_details.name }}" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Price</td>
|
|
<td><input type="text" name="price" value="{{ plan_details.price }}" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Status</td>
|
|
<td>
|
|
<select name="status">
|
|
<option {% if plan_details.status == 'inactive' %}selected{% endif %} >inactive</option>
|
|
<option {% if plan_details.status == 'active' %}selected{% endif %} >active</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Storage (Mb)</td>
|
|
<td><input type="text" name="storage" value="{{ plan_details.storage }}" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td>SWAP (Mb)</td>
|
|
<td><input type="text" name="swap" value="{{ plan_details.swap }}" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Memory (Mb)</td>
|
|
<td><input type="text" name="memory" value="{{ plan_details.memory }}" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="cores">Cores (int)</label></td>
|
|
<td><input type="text" name="cores" id="cores" value="{{ plan_details.cores }}" /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<input type="submit" value="Update" class="button success" />
|
|
</form>
|
|
{% endblock %}
|