- Introduction of PARTNER_RAG retriever, PARTNER_RAG_SPECIALIST and linked Agent and Task, to support documentation inquiries in the management app (eveai_app)
- Addition of a tenant_partner_services view to show partner services from the viewpoint of a tenant - Addition of domain model diagrams - Addition of license_periods views and form
This commit is contained in:
@@ -5,6 +5,8 @@ from wtforms import (StringField, PasswordField, BooleanField, SubmitField, Emai
|
||||
from wtforms.validators import DataRequired, Length, Email, NumberRange, Optional, ValidationError, InputRequired
|
||||
import pytz
|
||||
|
||||
from common.models.entitlements import PeriodStatus
|
||||
|
||||
|
||||
class LicenseTierForm(FlaskForm):
|
||||
name = StringField('Name', validators=[DataRequired(), Length(max=50)])
|
||||
@@ -76,3 +78,14 @@ class LicenseForm(FlaskForm):
|
||||
validators=[DataRequired(), NumberRange(min=0)],
|
||||
default=0)
|
||||
|
||||
|
||||
class EditPeriodForm(FlaskForm):
|
||||
period_start = DateField('Period Start', id='form-control datepicker', validators=[DataRequired()])
|
||||
period_end = DateField('Period End', id='form-control datepicker', validators=[DataRequired()])
|
||||
status = SelectField('Status', choices=[], validators=[DataRequired()])
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(EditPeriodForm, self).__init__(*args, **kwargs)
|
||||
self.status.choices = [(item.name, item.value) for item in PeriodStatus]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user