示例#1
0
 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)
示例#2
0
    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,))
示例#3
0
文件: groups.py 项目: truthadjustr/h
    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, ))
示例#4
0
    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,)
        )