django-orchestra/orchestra/apps/saas/services/gitlab.py

21 lines
619 B
Python
Raw Normal View History

2014-09-26 19:21:09 +00:00
from django import forms
from django.utils.translation import ugettext_lazy as _
2014-09-28 12:28:57 +00:00
from orchestra.forms import PluginDataForm
2014-09-26 19:21:09 +00:00
2014-09-28 12:28:57 +00:00
from .options import SoftwareService
2014-09-26 19:21:09 +00:00
2014-09-28 12:28:57 +00:00
class GitLabForm(PluginDataForm):
username = forms.CharField(label=_("Username"), max_length=64)
password = forms.CharField(label=_("Password"), max_length=64)
2014-09-26 19:21:09 +00:00
project_name = forms.CharField(label=_("Project name"), max_length=64)
2014-09-28 12:28:57 +00:00
email = forms.EmailField(label=_("Email"))
2014-09-26 19:21:09 +00:00
class GitLabService(SoftwareService):
verbose_name = "GitLab"
form = GitLabForm
2014-09-26 21:24:23 +00:00
description_field = 'project_name'
2014-10-11 12:43:08 +00:00
icon = 'saas/icons/gitlab.png'