diff --git a/buildServer/api/templates/login.html b/buildServer/api/templates/login.html new file mode 100644 index 0000000..dca87dd --- /dev/null +++ b/buildServer/api/templates/login.html @@ -0,0 +1,97 @@ + + + + + + Login + + + + +
+

Login

+ {% if error_message %} +
{{ error_message }}
+ {% endif %} +
+ {% csrf_token %} +
+ + +
+
+ + +
+ +
+ +
+ + diff --git a/buildServer/api/templates/register.html b/buildServer/api/templates/register.html new file mode 100644 index 0000000..2789eca --- /dev/null +++ b/buildServer/api/templates/register.html @@ -0,0 +1,16 @@ + + + + + Register + + +

Register

+
+ {% csrf_token %} + {{ form.as_p }} + +
+

Already have an account? Login here.

+ + diff --git a/buildServer/api/views.py b/buildServer/api/views.py index 9442d15..ec7296b 100644 --- a/buildServer/api/views.py +++ b/buildServer/api/views.py @@ -154,4 +154,4 @@ def run(request): @login_required def fetch_giturl(request): - return render(request, 'fetch_giturl.html') \ No newline at end of file + return render(request, 'fetch_giturl.html') diff --git a/buildServer/buildServer/urls.py b/buildServer/buildServer/urls.py index d432147..c92a0a4 100644 --- a/buildServer/buildServer/urls.py +++ b/buildServer/buildServer/urls.py @@ -23,4 +23,7 @@ path('admin/', admin.site.urls), path('', views.home_page), path('api/', include('api.urls')), + path('deployments/', views.deploy_page), + path('deployments/new-deploy/',views.new_deploy), + ] diff --git a/buildServer/buildServer/views.py b/buildServer/buildServer/views.py index d6df4fc..ba126fc 100644 --- a/buildServer/buildServer/views.py +++ b/buildServer/buildServer/views.py @@ -5,4 +5,8 @@ def home_page(request): return render(request, 'home.html') +def deploy_page(request): + return render(request, 'Deployments.html') +def new_deploy(request): + return render(request,'new_deploy.html') \ No newline at end of file diff --git a/buildServer/templates/Deployments.html b/buildServer/templates/Deployments.html new file mode 100644 index 0000000..611888d --- /dev/null +++ b/buildServer/templates/Deployments.html @@ -0,0 +1,73 @@ + + + + + + ContainerOps + + + + + + + +
+
+

ContainerOps

+ +
+
+ + +
+

Your Deployments

+
+ + Deploy new project + +
+ + + + + + + + diff --git a/buildServer/templates/home.html b/buildServer/templates/home.html index 4ec3886..01c46f0 100644 --- a/buildServer/templates/home.html +++ b/buildServer/templates/home.html @@ -1,48 +1,52 @@ -{% extends 'layout.html'%} - -{% block title%} - Hello -{%endblock%} - -{% block navbar %} - - {% comment %} Have the logout button only when you have logged in {% endcomment %} - {%if user.is_authenticated%} - - - - | - - - - - | - - - - {%else%} - - - - - | - - - - - | - - - {%endif%} - -{%endblock%} - -{%block content%} - {%if user.is_authenticated%} - - Hii {{user.username}}! - - {%else%} - Hello - {%endif%} -{% endblock %} \ No newline at end of file + + + + + + ContainerOps + + + + + + + + + + +
+
+

Welcome to ContainerOps

+

Deploy your GitHub projects with ease. Enter your GitHub URL below to get started.

+ + + + + +
+
+ + + + + diff --git a/buildServer/templates/login.html b/buildServer/templates/login.html index a0e3fd3..529c53d 100644 --- a/buildServer/templates/login.html +++ b/buildServer/templates/login.html @@ -1,20 +1,93 @@ -{% extends 'layout.html'%} -{% load static %} - -{% block title%} - Login -{%endblock%} - - - -{%block content%} - -
Login
-
- {% csrf_token %} - {{form.as_p}} - - -
- -{% endblock %} \ No newline at end of file + + + + + + ContainerOps Login + + + + +
+

Login to ContainerOps

+

Enter your credentials or use GitHub OAuth

+
+
+ + +
+
+ + +
+ +
OR CONTINUE WITH
+ +

Don't have an account? Sign up

+
+
+ + \ No newline at end of file diff --git a/buildServer/templates/new_deploy.html b/buildServer/templates/new_deploy.html new file mode 100644 index 0000000..c0a1a76 --- /dev/null +++ b/buildServer/templates/new_deploy.html @@ -0,0 +1,100 @@ + + + + + + ContainerOps + + + + + +
+
+

ContainerOps

+ +
+
+ + +
+

Select a Repository to Deploy

+ + +
+ +
+ + +
+

Your Deployments

+ +
+
+ + + + + + +