merge conflict

This commit is contained in:
alazo 2017-02-20 20:34:38 +01:00
commit 901366a9dd
3 changed files with 31 additions and 0 deletions

View file

@ -47,7 +47,29 @@ class Enseignant(models.Model):
return '{0} {1}'.format(self.nom, self.prenom)
def descr(self):
<<<<<<< HEAD
return '{0} ({1})'.format(self.__str__(), self.email)
=======
return '{0} (<A HREF="{1}">{3}</A>)'.format(self.__str__(), self.email, self.email)
class SVG_Domaine:
compteur = 0
x = 30
y = 10
width = 200
svg = '<rect x="20" y="{0}" rx="5" ry="5" width="60" height="{1}" fill="{3}" stroke="black" stroke-width="2" />'
txt = '<text x="25" y="{0}" style="stroke:#000000;font-size:12;">{1}</text>'
def get_svg(self):
return '{0}{1}'.format(self.svg, self.txt)
def __init__(self, domaine):
SVG_Domaine.compteur += 1
self.svg = self.svg.format(20, 100, settings.DOMAINE_COULEUR[domaine.code])
self.txt = self.txt.format(20, domaine.__str__())
>>>>>>> 52cca0ce67c3fff10578bd13d8a9d4f1c0b77de5
class Domaine(models.Model):

View file

@ -1,5 +1,6 @@
@CHARSET "UTF-8";
#submenu {
width:100%;
background: #79aec8;