Formular:ARCHIUM FORM hascher object: Unterschied zwischen den Versionen

Aus Denkmalpflege
Wechseln zu:Navigation, Suche
Zeile 1: Zeile 1:
<!-- ARCHIUM_FORM_hascher_object -->
+
<!-- ARCHIUM_TEMPLATE_hascher_display -->
 
<!-- Version 20200414 -->
 
<!-- Version 20200414 -->
  
<!-- This is a form definition for OBJECT-type pages. It provides input fields for
+
<!-- This template queries the underlying cargo database
    signature, title, description, remark. -->
+
and displays the results in a pleasant way -->
<noinclude>
 
    {{#forminput:form=ARCHIUM_FORM_hascher_object}}
 
</noinclude>
 
 
{{ARCHIUM_HIDE_BEGIN}}
 
{{ARCHIUM_HIDE_BEGIN}}
 +
<!-- load font-awesome files -->
 +
<link href="../fontawesome-free-5.12.1-web/css/all.css" rel="stylesheet">
  
 
<includeonly>
 
<includeonly>
        <!-- MAGIC WORDS -->
+
    <!-- MAGIC WORDS -->
        __NOEDITSECTION__
+
    __NOEDITSECTION__
        __NOTOC__
+
    __NOTOC__
        <!-- EMBED QUERY/DISPLAY TEMPLATE -->
 
        {{{for template|ARCHIUM_TEMPLATE_hascher_display}}}
 
            {{{field|type|mandatory|default=object|hidden}}}
 
        {{{end template}}}
 
 
 
        <!-- WRAP STORE TEMPLATES in div with class ARCHIUM_HIDDEN -->
 
        {{{for template|ARCHIUM_HIDE_BEGIN}}}
 
        {{{end template}}}
 
  
         <!-- DEFINE THAT THIS FORM CREATES A NEW OBJECT -->
+
    <!-- QUERY STUFF AND WRITE RESULTS TO VARIABLES -->
         {{{for template|ARCHIUM_TEMPLATE_hascher_type|label=Typ(Objekt, Literatur, Thema)}}}
+
    <!-- query type -->
             {{{field|type|mandatory|default=object|hidden}}}
+
    {{#vardefine:type|
         {{{end template}}}
+
        {{#switch:
 +
            {{#cargo_query:
 +
                tables    =
 +
                    ARCHIUM_TABLE_hascher_type
 +
                        |fields=ARCHIUM_PROPERTY_hascher_type
 +
                |default    = nicht kategorisiertes Objekt
 +
                |no html
 +
                |where      = "_pageName" = '{{PAGENAME}}'
 +
            }}
 +
            | object        = Denkmalobjekt
 +
            | literature    = Literatur
 +
            | topic        = Thema
 +
        }}
 +
    }}
 +
    <!-- query signature -->
 +
    {{#vardefine:signature|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_signature
 +
                    |fields=ARCHIUM_PROPERTY_hascher_signature
 +
            |default    = keine Signatur angegeben
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
        }}
 +
    }}
 +
    <!-- query title -->
 +
    {{#vardefine:title|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_title
 +
                    |fields=ARCHIUM_PROPERTY_hascher_title
 +
            |default    = kein Titel angegeben
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
         }}
 +
    }}
 +
    <!-- query description -->
 +
    {{#vardefine:description|
 +
         {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_description
 +
                    |fields=ARCHIUM_PROPERTY_hascher_description
 +
            |default    = keine Beschreibung angegeben
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
        }}
 +
    }}
 +
    <!-- query remark -->
 +
    {{#vardefine:remark|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_remark
 +
                    |fields=ARCHIUM_PROPERTY_hascher_remark
 +
            |default    = keine Anmerkungen angegeben
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
        }}
 +
    }}
 +
    <!-- query timeframe -->
 +
    {{#vardefine:timeframe|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_timeframe
 +
                    |fields=
 +
                        ARCHIUM_PROPERTY_hascher_date_from  =   date_from,
 +
                        ARCHIUM_PROPERTY_hascher_date_until =  date_until
 +
            |default    = -
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |named args = yes
 +
            |template  = ARCHIUM_TEMPLATE_format_timeframe
 +
        }}
 +
    }}
 +
    <!-- query date of creation -->
 +
    {{#vardefine:date_of_creation|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_date_of_creation
 +
                    |fields=ARCHIUM_PROPERTY_hascher_date_of_creation
 +
            |default    = -
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
        }}
 +
    }}
 +
    <!-- query creator -->
 +
    {{#vardefine:creator|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_creator
 +
                    |fields=ARCHIUM_PROPERTY_hascher_creator
 +
            |default    = -
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
        }}
 +
    }}
 +
    <!-- query editor -->
 +
    {{#vardefine:editor|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_editor
 +
                    |fields=ARCHIUM_PROPERTY_hascher_editor
 +
            |default    = -
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
        }}
 +
    }}
 +
    <!-- query history -->
 +
    {{#vardefine:history|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_history
 +
                    |fields=ARCHIUM_PROPERTY_hascher_history
 +
            |default    = -
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
        }}
 +
    }}
 +
    <!-- query topic -->
 +
    {{#vardefine:topic|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_topic
 +
                    |fields=ARCHIUM_PROPERTY_hascher_topic
 +
            |default    = -
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
        }}
 +
    }}
 +
    <!-- query category -->
 +
    {{#vardefine:category|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_category
 +
                    |fields=ARCHIUM_PROPERTY_hascher_category
 +
            |default    = -
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
        }}
 +
    }}
 +
    <!-- query sub category -->
 +
    {{#vardefine:sub_category|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_sub_category
 +
                    |fields=ARCHIUM_PROPERTY_hascher_sub_category
 +
            |default    = -
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
        }}
 +
    }}
 +
    <!-- query title image -->
 +
    {{#vardefine:title_image|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_title_image
 +
                    |fields=ARCHIUM_PROPERTY_hascher_title_image
 +
            |default    =
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
        }}
 +
    }}
 +
    <!-- query count -->
 +
    {{#vardefine:count|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_count
 +
                    |fields=ARCHIUM_PROPERTY_hascher_count
 +
            |default    = -
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
        }}
 +
    }}
 +
    <!-- query condition -->
 +
    {{#vardefine:condition|
 +
        {{#cargo_query:
 +
             tables    =
 +
                ARCHIUM_TABLE_hascher_condition
 +
                    |fields=ARCHIUM_PROPERTY_hascher_condition
 +
            |default    = -
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
        }}
 +
    }}
 +
    <!-- query links -->
 +
    {{#vardefine:link|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_link
 +
                    |fields=ARCHIUM_PROPERTY_hascher_link
 +
            |default   = -
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul
 +
        }}
 +
    }}
 +
    <!-- query backlinks -->
 +
    {{#vardefine:backlink|
 +
         {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_link
 +
                    |fields=_pageName
 +
            |default    = -
 +
            |no html
 +
            |where      = "ARCHIUM_PROPERTY_hascher_link" = '{{PAGENAME}}'
 +
            |format    = template
 +
            |template  = ARCHIUM_TEMPLATE_format_ul|test=3
 +
        }}
 +
    }}
 +
    <!-- query attachments -->
 +
    {{#vardefine:attachment|
 +
        {{#cargo_query:
 +
            tables    =
 +
                ARCHIUM_TABLE_hascher_attachment
 +
                    |fields=ARCHIUM_PROPERTY_hascher_attachment
 +
            |default    =
 +
            |no html
 +
            |where      = "_pageName" = '{{PAGENAME}}'
 +
        }}
 +
    }}
 +
    <!-- query all entries which have the same topic -->
 +
    {{#vardefine:topic_list|
 +
        {{#cargo_query:
 +
            tables  =
 +
                ARCHIUM_TABLE_hascher_topic
 +
                    |fields=_pageName
 +
            |default    =
 +
            |where      = "ARCHIUM_PROPERTY_hascher_topic" = 'Industrie'
 +
            |format    = ul
 +
        }}
 +
    }}
 
{{ARCHIUM_HIDE_END}}
 
{{ARCHIUM_HIDE_END}}
 
+
<div class="archium-background-{{#var:type}}">
    <div class="archium-background-Denkmalobjekt">
+
    <!-- HEADER-CONTAINER -->
        <div class="archium-grid-container-base archium-grid-container-header">
+
    <div class="archium-grid-container-base archium-grid-container-header">
            <div class="archium-grid-item-header" style="grid-column: 1 / span 3">
+
        <div class="archium-grid-item-header" style="grid-column: 1 / span 3">
                <h3>Denkmalobjekt</h3>
+
            <h3>Denkmalobjekt</h3>
            </div>
+
        </div>
            <div class="archium-grid-item-header" style="grid-column: 4 / span 3">
+
        <div class="archium-grid-item-header" style="grid-column: 4 / span 3">
 +
            <div class="archium-overview">
 +
                <h3><i class="fas fa-list"></i> Übersicht</h3>
 +
                {{ARCHIUM_TEMPLATE_test}}
 
             </div>
 
             </div>
 
         </div>
 
         </div>
        <!-- DEFINE FORM FIELDS -->
+
    </div>
        <div class="archium-grid-container-base archium-grid-container-identity">
+
    <!-- IDENTITY-CONTAINER -->
             <h3><i class="far fa-id-card"></i> Identifizierung</h3>
+
    <div class="archium-grid-container-base archium-grid-container-identity">
            <div class="archium-grid-item" style="grid-column: 1 / span 1";>
+
        <div style = "grid-column: 1 / span 3;">
                <h4>Objekttyp:</h4>
+
             <h3><i class="fas fa-id-card"></i> Identifizierung</h3>
                <p>{{#var:type}}</p>
+
        </div>
            </div>
+
        <div class="archium-grid-item" style="grid-column: 1 / span 1";>
            <div class="archium-grid-item" style="grid-column: 2 / span 1";>
+
            <h4>Objekttyp:</h4>
                <!-- define signature input field -->
+
            <p>{{#var:type}}</p>
                {{{for template|ARCHIUM_TEMPLATE_hascher_signature|label=Signatur(Objekt)}}}
+
        </div>
                    {{{field|signature
+
        <div class="archium-grid-item" style="grid-column: 2 / span 1";>
                        |mandatory
+
            <h4>Signatur:</h4>
                        |unique
+
            <p>{{#var:signature}}</p>
                        |input type=combobox
+
        </div>
                        |default={{PAGENAME}}
+
        <div class="archium-grid-item" style="grid-column: 3 / span 1";>
                        |placeholder=Pflichteintrag
+
            <h4>Titel:</h4>
                        |cargo table=ARCHIUM_TABLE_hascher_signature
+
            <p>{{#var:title}}</p>
                        |cargo field=ARCHIUM_PROPERTY_hascher_signature
+
        </div>
                    }}}
+
        <div class="archium-grid-item" style="grid-column: 4 / span 3; grid-row: 2 / span 2";>
                {{{end template}}}
+
            <h4>Titelbild:</h4>
            </div>
+
            <p>[[File:{{#var:title_image}}]]</p>
            <div class="archium-grid-item" style="grid-column: 3 / span 1";>
+
        </div>
                <!-- define title input field -->
+
        <div class="archium-grid-item" style="grid-column: 1 / span 1";>
                {{{for template|ARCHIUM_TEMPLATE_hascher_title|label=Titel(Objekt)}}}
+
            <h4>Erstellungsdatum:</h4>
                    {{{field|title
+
            <p>{{#var:date_of_creation}}</p>
                        |mandatory
+
        </div>
                        |input type=combobox
+
        <div class="archium-grid-item" style="grid-column: 2 / span 2;">
                        |default={{PAGENAME}}
+
            <h4>Laufzeiten:</h4>
                        |placeholder=Pflichteintrag
+
            <p>{{#var:timeframe}}</p>
                        |cargo table=ARCHIUM_TABLE_hascher_title
 
                        |cargo field=ARCHIUM_PROPERTY_hascher_title
 
                    }}}
 
                {{{end template}}}
 
            </div>
 
            <div class="archium-grid-item" style="grid-column: 4 / span 3; grid-row: 2 / span 2";>
 
                <!-- define title image input field -->
 
                {{{for template|ARCHIUM_TEMPLATE_hascher_title_image|label=Titelbild(Objekt)}}}
 
                    {{{field|title_image
 
                        |uploadable
 
                        |image preview
 
                        |default filename={{PAGENAME}}.jpeg
 
                    }}}
 
                {{{end template}}}
 
            </div>
 
            <div class="archium-grid-item" style="grid-column: 1 / span 1";>
 
                <!-- define date of creation input fields -->
 
                {{{for template|ARCHIUM_TEMPLATE_hascher_date_of_creation|label=Erstellungsdatum(Objekt)}}}
 
                    {{{field|date_of_creation
 
                        |mandatory
 
                        |input type=date
 
                        |default=now
 
                    }}}
 
                {{{end template}}}
 
            </div>
 
            <div class="archium-grid-item" style="grid-column: 2 / span 2;">
 
                <!-- define timeframe input fields -->
 
                {{{for template|ARCHIUM_TEMPLATE_hascher_timeframe|multiple|label=Zeiten(Objekt)}}}
 
                    <p>von: {{{field|date_from
 
                        |input type=date
 
                        |default=now}}}</p>
 
                    <p>bis: {{{field|date_until
 
                        |input type=date}}}</p>
 
                {{{end template}}}
 
            </div>
 
 
         </div>
 
         </div>
        <div class="archium-grid-container-base archium-grid-container-provenance">
+
    </div>
 +
    <!-- PROVENANCE-CONTAINER -->
 +
    <div class="archium-grid-container-base archium-grid-container-provenance">
 +
        <div style = "grid-column: 1 / span 3;">
 
             <h3><i class="fas fa-route"></i> Provenienz</h3>
 
             <h3><i class="fas fa-route"></i> Provenienz</h3>
            <div class="archium-grid-item" style="grid-column: 1;">
 
                <!-- define creator input fields -->
 
                {{{for template|ARCHIUM_TEMPLATE_hascher_creator|label=Ersteller(Objekt)}}}
 
                    {{{field|creator
 
                        |mandatory
 
                        |input type=combobox
 
                        |default=Michael Hascher
 
                        |placeholder=Pflichteintrag
 
                        |cargo table=ARCHIUM_TABLE_hascher_creator
 
                        |cargo field=ARCHIUM_PROPERTY_hascher_creator
 
                    }}}
 
                {{{end template}}}
 
            </div>
 
            <div class="archium-grid-item" style="grid-column: 2;">
 
                <!-- define editor input fields -->
 
                {{{for template|ARCHIUM_TEMPLATE_hascher_editor|multiple|minimum instances=1|label=Bearbeiter(Objekt)}}}
 
                    {{{field|editor
 
                        |mandatory
 
                        |input type=combobox
 
                        |default=Michael Hascher
 
                        |placeholder=Pflichteintrag
 
                        |cargo table=ARCHIUM_TABLE_hascher_editor
 
                        |cargo field=ARCHIUM_PROPERTY_hascher_editor
 
                    }}}
 
                {{{end template}}}
 
            </div>
 
            <div class="archium-grid-item" style="grid-column: 3;">
 
                <!-- define history input fields -->
 
                {{{for template|ARCHIUM_TEMPLATE_hascher_history|label=Bestandsgeschichte(Objekt)}}}
 
                    {{{field|history
 
                        |input type=textarea with autocomplete
 
                        |default=
 
                        |placeholder=Bestandsgeschichte
 
                        |cargo table=ARCHIUM_TABLE_hascher_history
 
                        |cargo field=ARCHIUM_PROPERTY_hascher_history
 
                    }}}
 
                {{{end template}}}
 
            </div>
 
 
         </div>
 
         </div>
         <div class="archium-grid-container-base archium-grid-container-contents">
+
         <div class="archium-grid-item" style="grid-column: 1;">
 +
            <h4>Ersteller:</h4>
 +
            <p>{{#var:creator}}</p>
 +
        </div>
 +
        <div class="archium-grid-item" style="grid-column: 2;">
 +
            <h4>Bearbeiter:</h4>
 +
            <p>{{#var:editor}}</p>
 +
        </div>
 +
        <div class="archium-grid-item" style="grid-column: 3;">
 +
            <h4>Bestandsgeschichte:</h4>
 +
            <p>{{#var:history}}</p>
 +
        </div>
 +
    </div>
 +
    <!-- CONTENTS-CONTAINER -->
 +
    <div class="archium-grid-container-base archium-grid-container-contents">
 +
        <div style = "grid-column: 1 / span 3;">
 
             <h3><i class="fas fa-box-open"></i> Inhalt</h3>
 
             <h3><i class="fas fa-box-open"></i> Inhalt</h3>
            <div class="archium-grid-item" style="grid-column: 1 / span 2;">
 
                <!-- define topic input field -->
 
                {{{for template|ARCHIUM_TEMPLATE_hascher_topic|label=Thema(Objekt)}}}
 
                    {{{field|topic
 
                        |mandatory
 
                        |input type=combobox
 
                        |default=
 
                        |placeholder=Pflichteintrag
 
                        |cargo table=ARCHIUM_TABLE_hascher_topic
 
                        |cargo field=ARCHIUM_PROPERTY_hascher_topic
 
                    }}}
 
                {{{end template}}}
 
            </div>
 
            <div class="archium-grid-item" style="grid-column: 3 / span 2;">
 
                <!-- define category input field -->
 
                {{{for template|ARCHIUM_TEMPLATE_hascher_category|label=Kategorie(Objekt)}}}
 
                    {{{field|category
 
                        |mandatory
 
                        |input type=combobox
 
                        |default=
 
                        |cargo table=ARCHIUM_TABLE_hascher_category
 
                        |cargo field=ARCHIUM_PROPERTY_hascher_category
 
                    }}}
 
                {{{end template}}}
 
            </div>
 
            <div class="archium-grid-item" style="grid-column: 5 / span 2;">
 
                <!-- define sub category input field -->
 
                {{{for template|ARCHIUM_TEMPLATE_hascher_sub_category|label=Unterkategorie(Objekt)}}}
 
                    {{{field|sub_category
 
                        |input type=combobox
 
                        |default=
 
                        |cargo table=ARCHIUM_TABLE_hascher_sub_category
 
                        |cargo field=ARCHIUM_PROPERTY_hascher_sub_category
 
                    }}}
 
                {{{end template}}}
 
            </div>
 
            <div class="archium-grid-item" style="grid-column: 1 / span 3;">
 
                <!-- define description input field -->
 
                {{{for template|ARCHIUM_TEMPLATE_hascher_description|label=Beschreibung(Objekt)}}}
 
                    {{{field|description
 
                        |input type=textarea with autocomplete
 
                        |default={{PAGENAME}}
 
                        |placeholder=Beschreibung
 
                        |cargo table=ARCHIUM_TABLE_hascher_description
 
                        |cargo field=ARCHIUM_PROPERTY_hascher_description}}}
 
                {{{end template}}}
 
            </div>
 
            <div class="archium-grid-item" style="grid-column: 4 / span 3;">
 
                <!-- define remark input field -->
 
                {{{for template|ARCHIUM_TEMPLATE_hascher_remark|multiple|label=Anmerkungen(Objekt)}}}
 
                    {{{field|remark
 
                        |input type=textarea with autocomplete
 
                        |default={{PAGENAME}}
 
                        |placeholder=Anmerkung
 
                        |cargo table=ARCHIUM_TABLE_hascher_remark
 
                        |cargo field=ARCHIUM_PROPERTY_hascher_remark
 
                    }}}
 
                {{{end template}}}
 
            </div>
 
            <div class="archium-grid-item">3</div>
 
            <div class="archium-grid-item">4</div>
 
 
         </div>
 
         </div>
         <div class="archium-grid-container-base archium-grid-container-status">
+
         <div class="archium-grid-item" style="grid-column: 1 / span 2;">
             <h3><i class="far fa-chart-bar"></i> Objektstatus</h3>
+
            <h4>Thema:</h4>
            <div class="archium-grid-item" style="grid-column: 1 / span 3;">
+
            <p>{{#var:topic}}</p>
                <!-- define count input field -->
+
        </div>
                {{{for template|ARCHIUM_TEMPLATE_hascher_count|label=Anzahl(Objekt)}}}
+
        <div class="archium-grid-item" style="grid-column: 3 / span 2;">
                    {{{field|count
+
             <h4>Kategorie:</h4>
                        |mandatory
+
            <p>{{#var:category}}</p>
                        |input type=combobox
+
        </div>
                        |default=1
+
        <div class="archium-grid-item" style="grid-column: 5 / span 2;">
                        |placeholder=Anzahl
+
            <h4>Unterkategorie:</h4>
                        |cargo table=ARCHIUM_TABLE_hascher_count
+
            <p>{{#var:sub_category}}</p>
                        |cargo field=ARCHIUM_PROPERTY_hascher_count
+
        </div>
                    }}}
+
        <div class="archium-grid-item" style="grid-column: 1 / span 3;">
                {{{end template}}}
+
            <h4>Beschreibung:</h4>
            </div>
+
            <p>{{#var:description}}</p>
            <div class="archium-grid-item" style="grid-column: 4 / span 3;">
+
        </div>
                <!-- define count input field -->
+
        <div class="archium-grid-item" style="grid-column: 4 / span 3;">
                {{{for template|ARCHIUM_TEMPLATE_hascher_condition|label=Zustand(Objekt)}}}
+
            <h4>Anmerkungen:</h4>
                    {{{field|condition
+
            <p>{{#var:remark}}</p>
                        |mandatory
+
        </div>
                        |input type=textarea with autocomplete
+
    </div>
                        |default=
+
    <!-- STATUS-CONTAINER -->
                        |placeholder=Zustand
+
    <div class="archium-grid-container-base archium-grid-container-status">
                        |cargo table=ARCHIUM_TABLE_hascher_condition
+
        <div style = "grid-column: 1 / span 3;">
                        |cargo field=ARCHIUM_PROPERTY_hascher_condition
+
            <h3><i class="fas fa-chart-bar"></i> Objektstatus</h3>
                    }}}
+
        </div>
                {{{end template}}}
+
        <div class="archium-grid-item" style="grid-column: 1 / span 3;">
            </div>
+
            <h4>Anzahl:</h4>
 +
            <p>{{#var:count}}</p>
 +
        </div>
 +
        <div class="archium-grid-item" style="grid-column: 4 / span 3;">
 +
            <h4>Zustand:</h4>
 +
            <p>{{#var:condition}}</p>
 +
        </div>
 +
    </div>
 +
    <!-- LINKS-CONTAINER -->
 +
    <div class="archium-grid-container-base archium-grid-container-links">
 +
        <div style = "grid-column: 1 / span 3;">
 +
            <h3><i class="fas fa-link"></i> Verbindungen</h3>
 +
        </div>
 +
        <div class="archium-grid-item" style="grid-column: 1 / span 3;">
 +
            <h4>Explizite Verknüpfungen:</h4>
 +
            <p>{{#var:link}}</p>
 +
        </div>
 +
        <div class="archium-grid-item" style="grid-column: 4 / span 3;">
 +
            <h4>Rückverweise:</h4>
 +
            <p>{{#var:backlink}}</p>
 
         </div>
 
         </div>
         <div class="archium-grid-container-base archium-grid-container-links">
+
         <div class="archium-grid-item" style="grid-column: 1 / span 2;">
             <h3><i class="fas fa-link"></i> Verbindung</h3>
+
             <h4>Themenliste:</h4>
             <div class="archium-grid-item" style="grid-column: 1 / span 3;">
+
             <div class = "dropdown-content">
                 <!-- define count input field -->
+
                 <p>{{#var:topic_list}}</p>
                {{{for template|ARCHIUM_TEMPLATE_hascher_link|multiple|label=Verknüpfungen(Objekt)}}}
 
                    {{{field|link
 
                        |input type=combobox
 
                        |default=
 
                        |placeholder=Verknüpfung
 
                        |cargo table=ARCHIUM_TABLE_hascher_signature
 
                        |cargo field=ARCHIUM_PROPERTY_hascher_signature
 
                    }}}
 
                {{{end template}}}
 
 
             </div>
 
             </div>
            <div class="archium-grid-item">2</div>
 
            <div class="archium-grid-item">3</div>
 
            <div class="archium-grid-item">4</div>
 
 
         </div>
 
         </div>
         <div class="archium-grid-container-base archium-grid-container-attachments">
+
         <div class="archium-grid-item">3</div>
 +
        <div class="archium-grid-item">4</div>
 +
    </div>
 +
    <!-- ATTACHMENTS-CONTAINER -->
 +
    <div class="archium-grid-container-base archium-grid-container-attachments">
 +
        <div style = "grid-column: 1 / span 3;">
 
             <h3><i class="fas fa-paperclip"></i> Anhänge</h3>
 
             <h3><i class="fas fa-paperclip"></i> Anhänge</h3>
            <div class="archium-grid-item" style="grid-column: 1 / span 6";>
+
        </div>
                <!-- define attachment input field -->
+
        <div class="archium-grid-item" style="grid-column: 1 / span 6;">
                {{{for template|ARCHIUM_TEMPLATE_hascher_attachment|multiple|label=Titelbild(Objekt)}}}
+
            <h4>Dateien:</h4>
                    {{{field|attachment
+
            <p>[[File:{{#var:attachment}}]]</p>
                        |uploadable
 
                    }}}
 
                {{{end template}}}
 
            </div>
 
 
         </div>
 
         </div>
 
     </div>
 
     </div>
<!-- WRAP STORE TEMPLATES in div with class ARCHIUM_HIDDEN -->
+
</div>
{{{for template|ARCHIUM_HIDE_END}}}
+
<nowiki/>
{{{end template}}}
 
 
</includeonly>
 
</includeonly>
 
+
<!--  -->
 
<noinclude>
 
<noinclude>
 
     <!-- CALL HOOKS -->
 
     <!-- CALL HOOKS -->
 
     {{ARCHIUM_TEMPLATE_hook|ARCHIUM_hascher}}
 
     {{ARCHIUM_TEMPLATE_hook|ARCHIUM_hascher}}
 
+
    <!--  -->
 +
    <!--  -->
 
     <!-- LICENSE NOTE -->
 
     <!-- LICENSE NOTE -->
     <!-- https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data
+
     <!-- https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data -->
     Distributed under the terms of GNU General Public License,
+
     <!-- Distributed under the terms of GNU General Public License, version 2 (GPL-2.0), https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -->
    version 2 (GPL-2.0), https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -->
 
 
</noinclude>
 
</noinclude>

Version vom 14. April 2020, 09:38 Uhr


<link href="../fontawesome-free-5.12.1-web/css/all.css" rel="stylesheet">