1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Moved admin/common/form.html to project templates

This commit is contained in:
Real-Gecko 2020-06-16 18:04:37 +06:00
parent d9785e397b
commit 1a3cc36ada
3 changed files with 7 additions and 3 deletions

View file

@ -1,29 +0,0 @@
{% extends "base.html" %}
{% load bootstrap4 %}
{% load icons %}
{% load i18n %}
{% block title %}{% trans "User" %}{% endblock %}
{% block content %}
<div class="row">
<div class="col-lg-12">
<h2 class="page-header">{{ title }}</h2>
</div>
</div>
{% bootstrap_messages %}
<div class="row">
<div class="thumbnail col-sm-10 offset-1">
<form id="create-update" action="" method="post">
{% csrf_token %}
{% bootstrap_form form layout='horizontal' %}
</form>
<div class="form-group float-right">
<a class="btn btn-primary" href="javascript:history.back()">{% icon 'times' %} {% trans "Cancel" %}</a>
<button type="submit" form="create-update" class="btn btn-success">
{% icon 'check' %} {% trans "Save" %}
</button>
</div>
</div>
</div>
{% endblock content %}

View file

@ -33,7 +33,7 @@ def group_create(request):
return render(
request,
'admin/common/form.html',
'common/form.html',
{
'form': form,
'title': _('Create Group'),
@ -51,7 +51,7 @@ def group_update(request, pk):
return render(
request,
'admin/common/form.html',
'common/form.html',
{
'form': form,
'title': _('Update Group'),