Example #1
0
    def __init__(self,
                 allow_edit=True,
                 res_short_id=None,
                 element_id=None,
                 element_name=None,
                 *args,
                 **kwargs):

        # the order in which the model fields are listed for the FieldSet
        # is the order these fields will be displayed
        file_type = kwargs.pop('file_type', False)
        form_field_names = [
            'projection', 'datum', 'projection_string', 'units', 'northlimit',
            'westlimit', 'southlimit', 'eastlimit'
        ]
        crispy_form_fields = get_crispy_form_fields(form_field_names,
                                                    file_type=file_type)
        layout = Layout(*crispy_form_fields)

        super(OriginalCoverageFormHelper,
              self).__init__(allow_edit,
                             res_short_id,
                             element_id,
                             element_name,
                             layout,
                             element_name_label='Spatial Reference',
                             *args,
                             **kwargs)
Example #2
0
    def __init__(self,
                 allow_edit=True,
                 res_short_id=None,
                 element_id=None,
                 element_name=None,
                 *args,
                 **kwargs):

        # the order in which the model fields are listed for the FieldSet is the
        # order these fields will be displayed
        form_field_names = [
            'rows', 'columns', 'cellSizeXValue', 'cellSizeYValue',
            'cellDataType'
        ]
        crispy_form_fields = get_crispy_form_fields(form_field_names)
        layout = Layout(*crispy_form_fields)

        super(CellInfoFormHelper,
              self).__init__(allow_edit,
                             res_short_id,
                             element_id,
                             element_name,
                             layout,
                             element_name_label='Cell Information',
                             *args,
                             **kwargs)
Example #3
0
    def __init__(self,
                 allow_edit=True,
                 res_short_id=None,
                 element_id=None,
                 element_name=None,
                 *args,
                 **kwargs):

        # The layout below orders how each filed from the Form will be displayed in the frontend
        file_type = kwargs.pop('file_type', False)
        form_field_names = [
            'projection', 'datum', 'projection_string_type',
            'projection_string_text', 'units', 'northlimit', 'eastlimit',
            'southlimit', 'westlimit'
        ]
        crispy_form_fields = get_crispy_form_fields(form_field_names,
                                                    file_type=file_type)
        layout = Layout(*crispy_form_fields)

        super(OriginalCoverageFormHelper,
              self).__init__(allow_edit,
                             res_short_id,
                             element_id,
                             element_name,
                             layout,
                             element_name_label='Spatial Reference',
                             *args,
                             **kwargs)
Example #4
0
    def __init__(self, res_short_id=None, element_id=None, element_name=None,  *args, **kwargs):

        # the order in which the model fields are listed for the FieldSet is the
        # order these fields will be displayed
        form_field_names = ['name', 'variableName', 'variableUnit', 'noDataValue', 'maximumValue',
                            'minimumValue', 'method', 'comment']
        crispy_form_fields = get_crispy_form_fields(form_field_names)
        layout = Layout(*crispy_form_fields)

        super(BandInfoFormHelper, self).__init__(res_short_id, element_id,
                                                 element_name, layout, *args, **kwargs)
Example #5
0
    def __init__(self, res_short_id=None, element_id=None, element_name=None,  *args, **kwargs):

        # the order in which the model fields are listed for the FieldSet is the
        # order these fields will be displayed
        form_field_names = ['name', 'variableName', 'variableUnit', 'noDataValue', 'maximumValue',
                            'minimumValue', 'method', 'comment']
        crispy_form_fields = get_crispy_form_fields(form_field_names)
        layout = Layout(*crispy_form_fields)

        super(BandInfoFormHelper, self).__init__(res_short_id, element_id,
                                                 element_name, layout, *args, **kwargs)
Example #6
0
    def __init__(self, allow_edit=True, res_short_id=None, element_id=None,
                 element_name=None, *args, **kwargs):
        # the order in which the model fields are listed for the FieldSet
        # is the order these fields will be displayed
        file_type = kwargs.pop('file_type', False)
        form_field_names = ['geometryType', 'featureCount']
        crispy_form_fields = get_crispy_form_fields(form_field_names, file_type=file_type)
        layout = Layout(*crispy_form_fields)

        super(GeometryInformationFormHelper, self) \
            .__init__(allow_edit, res_short_id, element_id, element_name,
                      layout, element_name_label='Geometry Information',
                      *args, **kwargs)
Example #7
0
    def __init__(self, allow_edit=True, res_short_id=None, element_id=None,
                 element_name=None, *args, **kwargs):

        # the order in which the model fields are listed for the FieldSet is the
        # order these fields will be displayed
        form_field_names = ['rows', 'columns', 'cellSizeXValue', 'cellSizeYValue', 'cellDataType']
        crispy_form_fields = get_crispy_form_fields(form_field_names)
        layout = Layout(*crispy_form_fields)

        super(CellInfoFormHelper, self).__init__(allow_edit, res_short_id,
                                                 element_id, element_name, layout,
                                                 element_name_label='Cell Information',
                                                 *args, **kwargs)
Example #8
0
    def __init__(self, allow_edit=True, res_short_id=None, element_id=None, element_name=None,
                 *args, **kwargs):

        # The layout below orders how each filed from the Form will be displayed in the frontend
        file_type = kwargs.pop('file_type', False)
        form_field_names = ['projection', 'datum', 'projection_string_type',
                            'projection_string_text', 'units', 'northlimit', 'eastlimit',
                            'southlimit', 'westlimit']
        crispy_form_fields = get_crispy_form_fields(form_field_names, file_type=file_type)
        layout = Layout(*crispy_form_fields)

        super(OriginalCoverageFormHelper, self).__init__(allow_edit, res_short_id, element_id,
                                                         element_name, layout,
                                                         element_name_label='Spatial Reference',
                                                         *args, **kwargs)
Example #9
0
    def __init__(self, allow_edit=True, res_short_id=None, element_id=None, element_name=None,
                 *args, **kwargs):

        # the order in which the model fields are listed for the FieldSet
        # is the order these fields will be displayed
        file_type = kwargs.pop('file_type', False)
        form_field_names = ['projection', 'datum', 'projection_string', 'units', 'northlimit',
                            'westlimit', 'southlimit', 'eastlimit']
        crispy_form_fields = get_crispy_form_fields(form_field_names, file_type=file_type)
        layout = Layout(*crispy_form_fields)

        super(OriginalCoverageFormHelper, self).__init__(allow_edit, res_short_id,
                                                         element_id, element_name, layout,
                                                         element_name_label='Spatial Reference',
                                                         *args, **kwargs)