Exemplo n.º 1
0
class PersonTable(tables.Table):
    id = tables.LinkColumn('entities:person_detail',
                           args=[A('pk')],
                           verbose_name='ID')
    name = tables.LinkColumn('entities:person_detail',
                             args=[A('pk')],
                             verbose_name='Name')
    is_main_person = tables.TemplateColumn(
        "{% for x in record.is_main_person.all %}\
        <a href='{{ x.get_absolute_url }}'>{{ x }} </a>|{% endfor %}",
        orderable=False)
    is_adm_person = tables.TemplateColumn(
        "{% for x in record.is_adm_person.all %}\
        <a href='{{ x.get_absolute_url }}'>{{ x }} </a>|{% endfor %}",
        orderable=False)
    is_related_person = tables.TemplateColumn(
        "{% for x in record.is_related_person.all %}\
        <a href='{{ x.get_absolute_url }}'>{{ x }} </a>|{% endfor %}",
        orderable=False)
    is_other_person = tables.TemplateColumn(
        "{% for x in record.is_other_person.all %}\
        <a href='{{ x.get_absolute_url }}'>{{ x }} </a>|{% endfor %}",
        orderable=False)
    profession = tables.ManyToManyColumn()
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')

    class Meta:
        model = Person
        sequence = (
            'id',
            'written_name',
        )
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 2
0
class SkosLabelTable(tables.Table):
    name = tables.LinkColumn('vocabs:skoslabel_detail', args=[A('pk')])
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')

    class Meta:
        model = SkosLabel
        sequence = ['id', 'name']
        attrs = {"class": "table table-hover table-striped table-condensed"}
Exemplo n.º 3
0
class WallpaintingInventoryTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')

    class Meta:
        model = WallpaintingInventory
        sequence = ('id',)
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 4
0
class Document4DPuzzleIDTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')

    class Meta:
        model = Document4DPuzzleID
        sequence = ('id',)
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 5
0
class ArchiveINFTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')

    class Meta:
        model = ArchiveINF
        sequence = ('id',)
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 6
0
class SkosConceptSchemeTable(tables.Table):
    dc_title = tables.LinkColumn('vocabs:skosconceptscheme_detail',
                                 args=[A('pk')])
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')

    class Meta:
        model = SkosConceptScheme
        sequence = ['id', 'dc_title']
        attrs = {"class": "table table-hover table-striped table-condensed"}
Exemplo n.º 7
0
class Fundinventar4DPuzzleIDTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')
    relatedto = tables.columns.ManyToManyColumn()

    class Meta:
        model = Fundinventar4DPuzzleID
        sequence = ('id',)
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 8
0
class TrpDocumentTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')
    col_list = tables.columns.ManyToManyColumn()

    class Meta:
        model = TrpDocument
        sequence = ('id', )
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 9
0
class FundinventarMaterialprobenTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')
    excavation_object_id = tables.columns.ManyToManyColumn()

    class Meta:
        model = FundinventarMaterialproben
        sequence = ('id',)
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 10
0
class ArchaeologicalObject4DPuzzleIDTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')
    excavation_object_id = tables.columns.ManyToManyColumn()

    class Meta:
        model = ArchaeologicalObject4DPuzzleID
        sequence = ('id',)
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 11
0
class InventorybooksTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')
    find_inventory_number = tables.columns.ManyToManyColumn()

    class Meta:
        model = Inventorybooks
        sequence = ('id',)
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 12
0
class GeophysicsTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')
    excavation_object_id = tables.columns.ManyToManyColumn()

    class Meta:
        model = Geophysics
        sequence = ('id',)
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 13
0
class ThreeDimensionalModelTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')
    excavation_object_id = tables.columns.ManyToManyColumn()
    archaeological_object_id = tables.columns.ManyToManyColumn()

    class Meta:
        model = ThreeDimensionalModel
        sequence = ('id',)
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 14
0
class StratenIDTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')
    area = tables.columns.ManyToManyColumn()
    containing_stratum_id = tables.columns.ManyToManyColumn()

    class Meta:
        model = StratenID
        sequence = ('id',)
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 15
0
class ProtocolsTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')
    document_type = tables.columns.ManyToManyColumn()
    archaeological_object_id = tables.columns.ManyToManyColumn()

    class Meta:
        model = Protocols
        sequence = ('id',)
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 16
0
class SkosConceptTable(tables.Table):
    broader_concept = tables.Column(verbose_name='Broader Term')
    pref_label = tables.LinkColumn('vocabs:skosconcept_detail', args=[A('pk')])
    all_schemes = tables.Column(verbose_name='in SkosScheme', orderable=False)
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')

    class Meta:
        model = SkosConcept
        sequence = [
            'broader_concept', 'pref_label', 'all_schemes', 'namespace'
        ]
        attrs = {"class": "table table-hover table-striped table-condensed"}
Exemplo n.º 17
0
class FundinventarKonvolutnummernTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')
    find_material = tables.columns.ManyToManyColumn()
    excavation_object_id = tables.columns.ManyToManyColumn()
    archaeological_object_id = tables.columns.ManyToManyColumn()

    class Meta:
        model = FundinventarKonvolutnummern
        sequence = ('id',)
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 18
0
class PrisonStationTable(tables.Table):
    name = tables.LinkColumn('detentions:prisonstation_detail',
                             args=[A('pk')],
                             verbose_name='Kriegsgefangenenlager')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')

    class Meta:
        model = PrisonStation
        sequence = (
            'name',
            'station_id',
            'located_in_place',
        )
        attrs = {"class": "table table-responsive table-hover"}
Exemplo n.º 19
0
class FielddrawingTable(tables.Table):

    id = tables.LinkColumn(verbose_name='ID')
    merge = MergeColumn(verbose_name='keep | remove', accessor='pk')
    document_type = tables.columns.ManyToManyColumn()
    creator_metadata = tables.columns.ManyToManyColumn()
    creator_original = tables.columns.ManyToManyColumn()
    original_material = tables.columns.ManyToManyColumn()
    amendment_drawn_by = tables.columns.ManyToManyColumn()
    drawer_monogram = tables.columns.ManyToManyColumn()
    excavation_object_id = tables.columns.ManyToManyColumn()
    archaeological_object_id = tables.columns.ManyToManyColumn()
    excavation_id = tables.columns.ManyToManyColumn()

    class Meta:
        model = Fielddrawing
        sequence = ('id',)
        attrs = {"class": "table table-responsive table-hover"}