def __init__(self, group, request): self.group = group self.request = request self.schema = schemas.group_schema().bind(request=self.request) self.form = request.create_form(self.schema, buttons=(_('Save'),), use_inline_editing=True)
def __init__(self, request): self.request = request self.schema = schemas.group_schema(autofocus_name=True).bind( request=self.request) submit = deform.Button(title=_('Create a new group'), css_class='primary-action-btn ' 'group-form__submit-btn ' 'js-create-group-create-btn') self.form = request.create_form(self.schema, css_class='group-form__form', buttons=(submit,))
def __init__(self, request): self.request = request self.schema = schemas.group_schema(autofocus_name=True).bind( request=self.request) submit = deform.Button(title=_('Create a new group'), css_class='primary-action-btn ' 'group-form__submit-btn ' 'js-create-group-create-btn') self.form = request.create_form(self.schema, css_class='group-form__form', buttons=(submit, ))
def __init__(self, request): self.request = request self.schema = schemas.group_schema(autofocus_name=True).bind( request=self.request ) submit = deform.Button( title=_("Create group"), css_class="primary-action-btn " "group-form__submit-btn " "js-create-group-create-btn", ) self.form = request.create_form( self.schema, css_class="group-form__form", buttons=(submit,) )