Commit 69eefc27 authored by onny's avatar onny
Browse files

clean up and customization

parent 37e42b1a
......@@ -2,7 +2,17 @@ from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Artist(models.Model):
name = models.CharField(max_length=100)
class Project(models.Model):
artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
name = models.CharField(max_length=100)
class Entry(models.Model):
project = models.ForeignKey(Project, on_delete=models.CASCADE)
signatory = models.CharField(max_length=100)
class JobList(models.Model):
jobtitle = models.CharField(max_length=100)
jobdescription = models.TextField(max_length=300)
......
!function(a){a.fn.datepicker.dates.fr={days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],daysShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],daysMin:["d","l","ma","me","j","v","s"],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthsShort:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],today:"Aujourd'hui",clear:"Effacer",weekStart:1,format:"dd/mm/yyyy"}}(jQuery);
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
......@@ -4,10 +4,12 @@ axios.defaults.xsrfHeaderName = "X-CSRFTOKEN"
var demo = new Vue({
el: '#app',
data: {
'apptitle': 'Django Vue.JS Job Board',
'apptitle': 'saaiArt',
'jobs': [],
'jobtitle': '',
'jobdescription': ''
'jobdescription': '',
'artistname': '',
'projectname': ''
},
delimiters: ["[[","]]"],
methods: {
......
......@@ -5,12 +5,7 @@
<meta charset="UTF-8">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
<!-- Optional theme -->
<link rel="stylesheet" href="{% static 'css/bootstrap-theme.min.css' %}">
<!-- <link rel="stylesheet" type="text/css" href="{% static 'css/jquery-ui.css' %}"> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="{% static 'css/jobboard.css' %}">
<title>Django Vue.JS Job Board</title>
......@@ -22,9 +17,7 @@
<div class="container">
<div class="navbar-header text-center">
<div class="navtitle">
<img class="navimage" src="{% static 'media/vue.png' %}">
<span class="navbar-brand" href="/">[[ apptitle ]]</span>
<img class="navimage" src="{% static 'media/djangofavicon.png' %}">
</div>
</div>
</div>
......
......@@ -2,6 +2,22 @@
{% block jobs %}
<div class="container">
<h2>Create an artist</h2>
<form class="form-group col-sm-8 form-horizontal">
<label class="form-label" for="artistname">Job Title</label>
<input class="form-control" id="artistname" v-model="artistname">
<button class="btn" v-on:click="addArtist()">Submit</button>
</form>
<h2>Create a project</h2>
<form class="form-group col-sm-8 form-horizontal">
<label class="form-label" for="projectname">Project name</label>
<input class="form-control" id="projectname" v-model="artistname">
<button class="btn" v-on:click="addProject()">Submit</button>
</form>
<h2>Post a Job</h2>
<form class="form-group col-sm-8 form-horizontal">
<label class="form-label" for="title">Job Title</label>
......@@ -23,7 +39,7 @@
</div>
<div class="col-sm-12">
<p>[[ job.jobdescription ]]</p>
<button class="btn" v-on:click="removeJob([[ index ]])"><span class="glyphicon glyphicon-trash pull-right"></span></button>
<button class="btn" v-on:click="removeJob([[ index ]])">Delete</button>
</div>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment