Transfer: Difference between revisions
From SemanticOrganization
(Created page with "{{Generator |template-id=TR |form-titles=Umbuchung |form-page-name=Umbuchung |form-unique-number=Yes |template-fields={{Generator-field |field-id=sender |field-property-id=SE...") |
No edit summary |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Semorg-generator | ||
|template-id=TR | |template-id=TR | ||
|form- | |page-name= | ||
|entity-name= | |||
|form-add-button-text= | |||
|form-page-name=Umbuchung | |form-page-name=Umbuchung | ||
|form-unique-number=Yes | |form-unique-number=Yes | ||
|template-fields={{ | |placeholder= | ||
| | |custom-overview-list= | ||
| | |display-title= | ||
| | |display-title-message= | ||
| | |rows= | ||
| | |form-template= | ||
}}{{ | |list-headers= | ||
| | |template-fields={{semorg-generator-field | ||
| | |id=sender | ||
| | |property-id=SE | ||
| | |name=Von | ||
| | |prefix= | ||
}}{{ | |type=wpg | ||
| | |suffix= | ||
| | |fields= | ||
| | |parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name | ||
| | |help= | ||
| | }}{{semorg-generator-field | ||
| | |id=recipient | ||
}}{{ | |property-id=RE | ||
| | |name=An | ||
| | |prefix= | ||
| | |type=wpg | ||
| | |suffix= | ||
| | |fields= | ||
}}{{ | |parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name | ||
|field-id= | |help= | ||
|field-property-id= | }}{{semorg-generator-field | ||
|field-name= | |id=amount | ||
|field-type=txt | |property-id=AM | ||
|field-parameters=input type=textarea | |name=Betrag | ||
|prefix= | |||
|type=num | |||
|suffix=€ | |||
|fields= | |||
|parameters=size=10 | |||
|help= | |||
}}{{semorg-generator-field | |||
|id=date | |||
|property-id=DA | |||
|name=Datum | |||
|prefix= | |||
|type=dat | |||
|suffix= | |||
|fields= | |||
|parameters=input type=datepicker,size=10 | |||
|help= | |||
}}{{semorg-generator-field | |||
|id=year | |||
|property-id=YE | |||
|name=Year | |||
|prefix= | |||
|type=num | |||
|suffix= | |||
|fields= | |||
|parameters= | |||
|help= | |||
}}{{semorg-generator-field | |||
|id=details | |||
|property-id=DE | |||
|name=Anmerkungen | |||
|prefix= | |||
|type=txt | |||
|suffix= | |||
|fields= | |||
|parameters=input type=textarea,autogrow,rows=1,cols=60 | |||
|help= | |||
}}{{semorg-generator-field | |||
|id=subject | |||
|property-id=SU | |||
|name=Betreff | |||
|prefix= | |||
|type=txt | |||
|suffix= | |||
|fields= | |||
|parameters= | |||
|help= | |||
}}{{semorg-generator-field | |||
|id=list | |||
|property-id=LI | |||
|name=Liste | |||
|prefix= | |||
|type=wpg | |||
|suffix= | |||
|fields= | |||
|parameters= | |||
|help= | |||
}}{{semorg-generator-field | |||
|id=listed | |||
|property-id=LD | |||
|name=gelistet? | |||
|prefix= | |||
|type=boo | |||
|suffix= | |||
|fields= | |||
|parameters= | |||
|help= | |||
}}{{semorg-generator-field | |||
|id=type | |||
|property-id=TY | |||
|name=Typ | |||
|prefix= | |||
|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 | |||
}} | }} |
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" ], ] ];