{% extends 'server_control_panel/base.html' %}

{% load i18n static localcosmos_tags %}

{% block content %}
	<div class="container">
		<h2>{% blocktrans with name=app.name %}Edit {{ name }}{% endblocktrans %}</h2>

		<form action="{% url 'scp:edit_app' app.uid %}" method="POST">{% csrf_token %}
			<div class="row mt-3">
				<div class="col-12">
					{% render_bootstrap_form form %}
				</div>

				{% if success %}
					<div class="col-12">
						<div class="alert alert-success">
							{% trans 'Successfully updated your app.' %}
						</div>
					</div>
				{% endif %}
				
				<div class="col-12">
					<button type="submit" class="btn btn-outline-primary">{% trans 'Save' %}</button>
				</div>
			</div>
		</form>

	</div>
{% endblock %}
