Transfer: Difference between revisions
From SemanticOrganization
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Semorg-generator | {{Semorg-generator | ||
|template-id=TR | |template-id=TR | ||
|page-name= | |||
|entity-name= | |||
|form-add-button-text= | |||
|form-page-name=Umbuchung | |form-page-name=Umbuchung | ||
|form-unique-number=Yes | |form-unique-number=Yes | ||
|placeholder= | |||
|custom-overview-list= | |||
|display-title= | |||
|display-title-message= | |||
|rows= | |||
|form-template= | |||
|list-headers= | |||
|template-fields={{semorg-generator-field | |template-fields={{semorg-generator-field | ||
|id=sender | |id=sender | ||
|property-id=SE | |property-id=SE | ||
|name=Von | |name=Von | ||
|prefix= | |||
|type=wpg | |type=wpg | ||
|suffix= | |||
|fields= | |||
|parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name | |parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name | ||
|help= | |||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=recipient | |id=recipient | ||
|property-id=RE | |property-id=RE | ||
|name=An | |name=An | ||
|prefix= | |||
|type=wpg | |type=wpg | ||
|suffix= | |||
|fields= | |||
|parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name | |parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name | ||
|help= | |||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=amount | |id=amount | ||
|property-id=AM | |property-id=AM | ||
|name=Betrag | |name=Betrag | ||
|prefix= | |||
|type=num | |type=num | ||
|suffix=€ | |suffix=€ | ||
|fields= | |||
|parameters=size=10 | |parameters=size=10 | ||
|help= | |||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=date | |id=date | ||
|property-id=DA | |property-id=DA | ||
|name=Datum | |name=Datum | ||
|prefix= | |||
|type=dat | |type=dat | ||
|suffix= | |||
|fields= | |||
|parameters=input type=datepicker,size=10 | |parameters=input type=datepicker,size=10 | ||
|help= | |||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=year | |id=year | ||
|property-id=YE | |property-id=YE | ||
|name=Year | |name=Year | ||
|prefix= | |||
|type=num | |type=num | ||
|suffix= | |||
|fields= | |||
|parameters= | |||
|help= | |||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=details | |id=details | ||
|property-id=DE | |property-id=DE | ||
|name=Anmerkungen | |name=Anmerkungen | ||
|prefix= | |||
|type=txt | |type=txt | ||
|suffix= | |||
|fields= | |||
|parameters=input type=textarea,autogrow,rows=1,cols=60 | |parameters=input type=textarea,autogrow,rows=1,cols=60 | ||
|help= | |||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=subject | |id=subject | ||
|property-id=SU | |property-id=SU | ||
|name=Betreff | |name=Betreff | ||
|prefix= | |||
|type=txt | |type=txt | ||
|suffix= | |||
|fields= | |||
|parameters= | |||
|help= | |||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=list | |id=list | ||
|property-id=LI | |property-id=LI | ||
|name=Liste | |name=Liste | ||
|prefix= | |||
|type=wpg | |type=wpg | ||
|suffix= | |||
|fields= | |||
|parameters= | |||
|help= | |||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=listed | |id=listed | ||
|property-id=LD | |property-id=LD | ||
|name=gelistet? | |name=gelistet? | ||
|prefix= | |||
|type=boo | |type=boo | ||
|suffix= | |||
|fields= | |||
|parameters= | |||
|help= | |||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=type | |id=type | ||
|property-id=TY | |property-id=TY | ||
|name=Typ | |name=Typ | ||
|prefix= | |||
|type=txt | |type=txt | ||
|suffix= | |||
|fields= | |||
|parameters= | |||
|help= | |||
}}{{semorg-generator-field | |||
|id=note | |||
|property-id=NO | |||
|name=Note | |||
|prefix= | |||
|type=txt | |||
|suffix= | |||
|fields= | |||
|parameters=input type=textarea,rows=1,cols=60,autogrow | |||
|help= | |||
}} | }} | ||
|form-titles=Umbuchung | |form-titles=Umbuchung | ||
}} | }} |
Latest revision as of 08:50, 8 July 2020
Messages
"semorg-transfer-template": "semorg-transfer", "semorg-transfer-category": "semorg-transfer", "semorg-transfer-form": "semorg-transfer", "semorg-form-transfer-create-title": "Create Umbuchung", "semorg-form-transfer-edit-title": "Edit Umbuchung", "semorg-form-transfer-page-name": "Umbuchung", "semorg-form-transfer-template": "", "semorg-form-transfer-rows": "amount, recipient, date, sender, list, year, details, listed, subject, note, type", "semorg-list-transfer-headers": "transfer-amount, transfer-recipient, transfer-date, transfer-sender, transfer-list, transfer-year, transfer-details, transfer-listed, transfer-subject, transfer-note, transfer-type", "semorg-field-transfer-amount-name": "Betrag", "semorg-field-transfer-amount-parameters": "size=10", "semorg-field-transfer-amount-suffix": "€", "semorg-field-transfer-date-name": "Datum", "semorg-field-transfer-date-parameters": "input type=datepicker|size=10", "semorg-field-transfer-details-name": "Anmerkungen", "semorg-field-transfer-details-parameters": "input type=textarea|autogrow|rows=1|cols=60", "semorg-field-transfer-list-name": "Liste", "semorg-field-transfer-list-parameters": "", "semorg-field-transfer-listed-name": "gelistet?", "semorg-field-transfer-listed-parameters": "", "semorg-field-transfer-note-name": "Note", "semorg-field-transfer-note-parameters": "input type=textarea|rows=1|cols=60|autogrow", "semorg-field-transfer-recipient-name": "An", "semorg-field-transfer-recipient-parameters": "input type=combobox|values from category=semorg-person-user|mapping property=Semorg-person-name", "semorg-field-transfer-sender-name": "Von", "semorg-field-transfer-sender-parameters": "input type=combobox|values from category=semorg-person-user|mapping property=Semorg-person-name", "semorg-field-transfer-subject-name": "Betreff", "semorg-field-transfer-subject-parameters": "", "semorg-field-transfer-type-name": "Typ", "semorg-field-transfer-type-parameters": "", "semorg-field-transfer-year-name": "Year", "semorg-field-transfer-year-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-transfer-create-title}} |edit title={{int:semorg-form-transfer-edit-title}}<span class="d-none">: <page name></span> |page name={{int:semorg-form-transfer-page-name}}/<unique number;start=1> }}} {{semorg-form-template|transfer}} {{semorg-form-standard-inputs}} </includeonly>
as embedded:
Use this code, if this is not meant to be a standalone feature but rather a supplement that should be embedded in other forms. Add this line to a form definition that includes a field with the parameter holds template
. The second parameter of the semorg-form-template-embed
call should be the target field, specified with <feature>[<field>]
(e.g. meeting-group[files]
or {{int:semorg-meeting-group-template}}[files]
to respect template customization).
{{semorg-form-template-embed|transfer|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-transfer-category}}]]{{#semorg-set:transfer |amount={{{amount|}}} |recipient={{{recipient|}}} |date={{{date|}}} |sender={{{sender|}}} |list={{{list|}}} |year={{{year|}}} |details={{{details|}}} |listed={{{listed|}}} |subject={{{subject|}}} |note={{{note|}}} |type={{{type|}}} }}{{#semorg-detail:transfer}}{{#semorg-table:transfer |amount={{{amount|}}} |recipient={{{recipient|}}} |date={{{date|}}} |sender={{{sender|}}} |list={{{list|}}} |year={{{year|}}} |details={{{details|}}} |listed={{{listed|}}} |subject={{{subject|}}} |note={{{note|}}} |type={{{type|}}} }}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{amount|}}}</td> <td>{{{recipient|}}}</td> <td>{{{date|}}}</td> <td>{{{sender|}}}</td> <td>{{{list|}}}</td> <td>{{{year|}}}</td> <td>{{{details|}}}</td> <td>{{{listed|}}}</td> <td>{{{subject|}}}</td> <td>{{{note|}}}</td> <td>{{{type|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-transfer-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:transfer |heading={{int:semorg-transfer-page-name}} |formlink={{#semorg-formlink:transfer}} |links={{{links|}}} |query={{{query|}}} |sort={{{sort|}}} |order={{{order|}}} |limit={{{limit|}}} |filter links={{{filter links|}}} |filters={{{filters|}}} |category={{{category|}}} |headers={{{headers|}}} |row template={{{row template|}}} |tableclass={{{tableclass|}}} |title={{{title|}}} |sums={{{sums|}}} |csv={{{csv|}}} |default={{{default|}}} |returnto={{{returnto|}}} |help={{{help|}}} }}</includeonly>
Overview Page
[[]]
{{semorg-transfer-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['transfer'] = [ "id" => "TR","fields" => ["amount" => [ "id" => "AM","type" => "num" ],"recipient" => [ "id" => "RE","type" => "wpg" ],"date" => [ "id" => "DA","type" => "dat" ],"sender" => [ "id" => "SE","type" => "wpg" ],"list" => [ "id" => "LI","type" => "wpg" ],"year" => [ "id" => "YE","type" => "num" ],"details" => [ "id" => "DE","type" => "txt" ],"listed" => [ "id" => "LD","type" => "boo" ],"subject" => [ "id" => "SU","type" => "txt" ],"note" => [ "id" => "NO","type" => "txt" ],"type" => [ "id" => "TY","type" => "txt" ], ] ];